Aspose::Words::Saving::CssSavingArgs class

CssSavingArgs class

Provides data for the CssSaving() event. To learn more, visit the Save a Document documentation article.

class CssSavingArgs : public System::Object

Methods

MethodDescription
get_CssStream() constAllows to specify the stream where the CSS information will be saved to.
get_Document() constGets the document object that is currently being saved.
get_IsExportNeeded() constAllows to specify whether the CSS will be exported to file and embedded to HTML document. Default is true. When this property is false, the CSS information will not be saved to a CSS file and will not be embedded to HTML document.
get_KeepCssStreamOpen() constSpecifies whether Aspose.Words should keep the stream open or close it after saving an CSS information.
GetType() const override
Is(const System::TypeInfo&) const override
set_CssStream(const System::SharedPtr<System::IO::Stream>&)Setter for Aspose::Words::Saving::CssSavingArgs::get_CssStream.
set_CssStream(std::basic_ostream<CharType, Traits>&)
set_IsExportNeeded(bool)Allows to specify whether the CSS will be exported to file and embedded to HTML document. Default is true. When this property is false, the CSS information will not be saved to a CSS file and will not be embedded to HTML document.
set_KeepCssStreamOpen(bool)Setter for Aspose::Words::Saving::CssSavingArgs::get_KeepCssStreamOpen.
static Type()

Remarks

By default, when Aspose.Words saves a document to HTML, it saves CSS information inline (as a value of the style attribute on every element).

CssSavingArgs allows to save CSS information into file by providing your own stream object.

To save CSS into stream, use the CssStream property.

To suppress saving CSS into a file and embedding to HTML document use the IsExportNeeded property.

See Also