Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordListLevel

OfficeIMO.Word

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

Represents a single level within a list and provides access to numbering and indentation settings.

Inheritance

  • object
  • WordListLevel

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.

Accepted by parameters 1

Constructors

public WordListLevel(WordListLevelKind simplifiedListNumbers) #

Adds the level using custom simplified list number.

Parameters

simplifiedListNumbers OfficeIMO.Word.WordListLevelKind required

Exceptions

  • ArgumentOutOfRangeException

Methods

public void Remove() #

Removes this level from the list.

public WordListLevel SetStartNumberingValue(int value) #

Sets the starting number for this level.

Parameters

value int required
The starting number.

Returns

WordListLevel The current WordListLevel instance.

Examples

WordList list = document.AddCustomList();
WordListLevel level = new WordListLevel(WordListLevelKind.Decimal)
    .SetStartNumberingValue(3);

list.Numbering.AddLevel(level);
list.AddItem("Starts at three");

Properties

public int LevelIndex { get; } #

Gets the zero-based list level index.

public int StartNumberingValue { get; set; } #

Gets or sets the start numbering value.

public WordNumberFormat NumberFormat { get; set; } #

Gets or sets the numbering format of this list level.

public OfficeLength IndentationLeft { get; set; } #

Gets or sets the physical text indentation for this level.

public OfficeLength IndentationHanging { get; set; } #

Gets or sets the physical number position for this level.

public string LevelText { get; set; } #

Gets or sets the level text.

public WordListLevelAlignment LevelJustification { get; set; } #

Gets or sets the level justification.

public WordListLevelSuffix LevelSuffix { get; set; } #

Gets or sets the suffix placed after the numbering marker.