Style

Overview

Style is a class in Aspose.Words FOSS for .NET. Inherits from: IParaAttrSource, IRunAttrSource.

Represents a single built-in or user-defined style.

This class provides 2 methods for working with Style objects in .NET programs. Available methods include: Equals, Remove. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Aliases, AutomaticallyUpdate, BaseStyleName, BuiltIn, Document, Font, and 15 more.

Properties

NameTypeAccessDescription
NamestringRead/WriteGets or sets the name of the style.
StyleIdentifierStyleIdentifierReadGets the locale independent style identifier for a built-in style.
Aliasesstring[]ReadGets all aliases of this style.
IsHeadingboolReadTrue when the style is one of the built-in Heading styles.
TypeStyleTypeReadGets the style type (paragraph or character).
DocumentDocumentBaseReadGets the owner document.
LinkedStyleNamestringRead/WriteGets/sets the name of the Style linked to this one.
BaseStyleNamestringRead/WriteGets/sets the name of the style this style is based on.
NextParagraphStyleNamestringRead/WriteGets/sets the name of the style to be applied automatically to a new paragraph inserted after a paragraph formatted with the specified style.
BuiltInboolReadTrue if this style is one of the built-in styles in MS Word.
FontFontReadGets the character formatting of the style.
ParagraphFormatParagraphFormatReadGets the paragraph formatting of the style.
SemiHiddenboolRead/WriteGets/sets whether the style hides from the Styles gallery and from the Styles task pane.
UnhideWhenUsedboolRead/WriteGets/sets whether the style used in the current document unhides from the Styles gallery and from the Styles task pane.
PriorityintRead/WriteGets/sets the integer value that represents the priority for sorting the styles in the Styles task pane.
ListListReadGets the list that defines formatting of this list style.
ListFormatListFormatReadProvides access to the list formatting properties of a paragraph style.
IsQuickStyleboolRead/WriteSpecifies whether this style is shown in the Quick Style gallery inside MS Word UI.
AutomaticallyUpdateboolRead/WriteSpecifies whether this style is automatically redefined based on the appropriate value.
LockedboolRead/WriteSpecifies whether this style is locked.
StylesStyleCollectionReadGets the collection of styles this style belongs to.

Methods

SignatureDescription
Remove()Removes the specified style from the document.
Equals(style: Style)Compares with the specified style.

See Also