Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordListNumbering

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
0eef6a5756b9 with working tree changes

Provides helper methods to manage numbering definitions for lists within a document. Levels can be added or removed and the numbering updated to match the Open XML specification.

Inheritance

  • object
  • WordListNumbering

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public WordListLevel AddLevel(WordListLevel wordListLevel) #

Adds the level using custom simplified list number.

Parameters

wordListLevel OfficeIMO.Word.WordListLevel required
The word list level.
public static WordListNumbering CreateNumberingDefinition(WordDocument document) #

Creates a new numbering definition within the specified document.

Parameters

document OfficeIMO.Word.WordDocument required
The parent document.
public static WordListNumbering? GetNumberingDefinition(WordDocument document, int abstractNumberId) #

Retrieves a numbering definition from the document by its identifier.

Parameters

document OfficeIMO.Word.WordDocument required
The parent document.
abstractNumberId int required
The abstract numbering identifier.

Returns

WordListNumbering? The WordListNumbering if found; otherwise, null.
public void RemoveAllLevels() #

Removes all levels to reset the numbering and start from scratch.

Properties

public List<WordListLevel> Levels { get; } #

Gets all numbering levels defined in the underlying AbstractNum element.

public int AbstractNumberId { get; } #

Gets the abstract numbering identifier.