API Reference
WordListLevel
Represents a single level within a list and provides access to numbering and indentation settings.
Inheritance
- Object
- WordListLevel
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method WordListLevel.SetStartNumberingValue
- Property WordListNumbering.Levels
Accepted by parameters
- Method WordListNumbering.AddLevel
Constructors
public WordListLevel(WordListLevelKind simplifiedListNumbers) #Adds the level using custom simplified list number.
Parameters
- simplifiedListNumbers OfficeIMO.Word.WordListLevelKind
Exceptions
ArgumentOutOfRangeException
Methods
public WordListLevel SetStartNumberingValue(Int32 value) #WordListLevelSets the starting number for this level.
Parameters
- value System.Int32
- The starting number.
Returns
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");
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Int32 LevelIndex { get; } #Gets the zero-based list level index.
public Int32 StartNumberingValue { get; set; } #Gets or sets the start numbering value.
public Int32 IndentationLeft { get; set; } #Gets or sets the text indentation (left indentation) in twentieths of a point.
public Double IndentationLeftCentimeters { get; set; } #Gets or sets the text indentation (left indentation) in centimeters.
public Int32 IndentationHanging { get; set; } #Gets or sets the number position (hanging indentation) in twentieths of a point.
public Double IndentationHangingCentimeters { get; set; } #Gets or sets the number position (hanging indentation) in centimeters.
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.