ClassListLevel
Defines formatting for a single level within a list, including numbering style, text format, alignment, and paragraph properties.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Lists
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public sealed class ListLevel
Inheritance: objectListLevel
Properties
Alignment
Gets or sets the horizontal alignment of the numbering text within the list level's numbering area.
Declaration
public Alignment Alignment { get; set; }
Property Value
The alignment.
CharacterProperties
Gets the character formatting applied to the numbering text for this level, including font, size, and color.
Declaration
public CharacterProperties CharacterProperties { get; }
Property Value
The character properties.
Document
Gets the document containing this list level, accessed through the owner list.
Declaration
public RadFlowDocument Document { get; }
Property Value
The document.
IsLegal
Gets or sets whether all inherited level numbers in this level's format should be displayed as decimal regardless of their defined numbering style.
NumberTextFormat
Gets or sets the text template for numbering display, where placeholders like %1, %2 are replaced with actual level numbers.
Declaration
public string NumberTextFormat { get; set; }
Property Value
The number text format.
NumberingStyle
Gets or sets the numbering format applied to this level, such as Decimal, UpperRoman, LowerLetter, or Bullet.
Declaration
public NumberingStyle NumberingStyle { get; set; }
Property Value
The numbering style.
ParagraphProperties
Gets the paragraph formatting applied to list items at this level, including indentation and spacing.
Declaration
public ParagraphProperties ParagraphProperties { get; }
Property Value
The paragraph properties.
RestartAfterLevel
Gets or sets the level that must occur to restart numbering for this level; -1 (default) restarts after the previous level, or specify 0-8 for a specific level.
Declaration
public int RestartAfterLevel { get; set; }
Property Value
The restart after level.
Exceptions
value is less then -1 and greater then 8.
StartIndex
Gets or sets the starting number used for the first occurrence of this list level, which must be zero or greater.
Declaration
public int StartIndex { get; set; }
Property Value
The start index.
Exceptions
value is less than 0.
Methods
Clone(List)
Creates a deep copy of this list level associated with the specified owner list, copying all formatting and properties.