Class Style
Defines reusable character, paragraph, and list formatting.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class Style
Properties
Aliases
Gets all aliases of this style. If style has no aliases then empty array of string is returned.
Declaration
public string[] Aliases { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
BaseStyleName
Gets/sets the name of the style this style is based on.
Declaration
public string BaseStyleName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
BuiltIn
True if this style is one of the built-in styles in MS Word.
Declaration
public bool BuiltIn { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Document
Gets the document that owns this style.
Declaration
public DocumentBase Document { get; }
Property Value
| Type | Description |
|---|---|
| DocumentBase |
Font
Gets or sets the character formatting associated with this style.
Declaration
public Font Font { get; set; }
Property Value
| Type | Description |
|---|---|
| Font |
Id
Gets or sets the Open XML style identifier.
Declaration
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsHeading
True when the style is one of the built-in Heading styles.
Declaration
public bool IsHeading { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsQuickStyle
Specifies whether this style is shown in the Quick Style gallery inside MS Word UI.
Declaration
public bool IsQuickStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LinkedStyleName
Gets the name of the style linked to this style, if any.
Declaration
public string LinkedStyleName { get; }
Property Value
| Type | Description |
|---|---|
| string |
List
Gets the list definition associated with this style.
Declaration
public List List { get; }
Property Value
| Type | Description |
|---|---|
| List |
Name
Gets or sets the style display name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StyleType
Gets or sets the category of this style.
Declaration
public StyleType StyleType { get; set; }
Property Value
| Type | Description |
|---|---|
| StyleType |