API Reference
Class
HeadingStyleMapper
Provides helper methods for mapping between heading levels and paragraph styles.
Inheritance
- Object
- HeadingStyleMapper
Methods
public static WordParagraphStyles GetHeadingStyleForLevel(Int32 level) #Returns:
WordParagraphStylesReturns the corresponding paragraph style for the specified heading level.
Parameters
- level System.Int32
- Heading level starting at 1.
Returns
The matching WordParagraphStyles value.
public static Int32 GetLevelForHeadingStyle(WordParagraphStyles style) #Returns:
Int32Resolves the heading level for the provided paragraph style.
Parameters
- style OfficeIMO.Word.WordParagraphStyles
- Paragraph style to evaluate.
Returns
The heading level or 0 when the style is not a heading.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object