Back to DOM
StyleValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the category of a document style.
Remarks
Used by to indicate whether a style applies to a paragraph, a run of characters, a table, or a numbering scheme. Consumers use this value to determine where the style can be applied. BuiltInStyle.Type
Examples
csharp
1// 1. Paragraph style
2var style = new BuiltInStyle { StyleId = "BodyText", Type = StyleValues.Paragraph };
3
csharp
1// 2. Character style
2var style = new BuiltInStyle { StyleId = "Emphasis", Type = StyleValues.Character };
3
csharp
1// 3. Table style
2var style = new BuiltInStyle { StyleId = "GridTable", Type = StyleValues.Table };
3
csharp
1// 4. Numbering style
2var style = new BuiltInStyle { StyleId = "Numbering", Type = StyleValues.Numbering };
3