API Reference
WordListStyles
Provides access to the built-in list styles and helper methods for working with numbering definitions.
Inheritance
- Object
- WordListStyles
Methods
public static Numbering CreateDefaultNumberingDefinitions(WordprocessingDocument document, out Int32 bulletNumberId, out Int32 orderedNumberId) #NumberingCreates numbering definitions for basic bulleted and numbered lists.
Parameters
- document DocumentFormat.OpenXml.Packaging.WordprocessingDocument
- The document to base the numbering definitions on.
- bulletNumberId System.Int32@
- Returns the numbering identifier for bullets.
- orderedNumberId System.Int32@
- Returns the numbering identifier for ordered lists.
Returns
A Numbering instance containing the definitions.
CreateNewAbstractNum() #Creates the new abstract number.
GenerateNsidValue() #Generates a unique NSID value using a GUID
public static AbstractNum GetStyle(WordListStyle style) #AbstractNumRetrieves the abstract numbering definition for the specified built-in list style.
Parameters
- style OfficeIMO.Word.WordListStyle
- The list style to retrieve.
Returns
The corresponding AbstractNum definition.
InitializeAbstractNumberId(DocumentFormat.OpenXml.Packaging.WordprocessingDocument document) #Initializes the abstract number identifier, starting from the highest value currently in use It makes sure that the next abstract number identifier is unique
Parameters
- document DocumentFormat.OpenXml.Packaging.WordprocessingDocument
- The document.
public static WordListStyle MatchStyle(AbstractNum abstractNum) #WordListStyleAttempts to match an AbstractNum to one of the built-in list styles.
Parameters
- abstractNum DocumentFormat.OpenXml.Wordprocessing.AbstractNum
- The abstract numbering definition to compare.
Returns
The matching WordListStyle or Custom when no match is found.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Fields
nextAbstractNumberId #The next abstract number identifier stored to be used when creating new abstract numbers