OfficeIMO

API Reference

Class

HeadingStyleMapper

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers static

Provides helper methods for mapping between heading levels and paragraph styles.

Inheritance

  • Object
  • HeadingStyleMapper

Methods

public static WordParagraphStyles GetHeadingStyleForLevel(Int32 level) #
Returns: WordParagraphStyles

Returns the corresponding paragraph style for the specified heading level.

Parameters

level System.Int32 requiredposition: 0
Heading level starting at 1.

Returns

The matching WordParagraphStyles value.

public static Int32 GetLevelForHeadingStyle(WordParagraphStyles style) #
Returns: Int32

Resolves the heading level for the provided paragraph style.

Parameters

style OfficeIMO.Word.WordParagraphStyles requiredposition: 0
Paragraph style to evaluate.

Returns

The heading level or 0 when the style is not a heading.