New to Telerik Document Processing? Start a free 30-day trial

Defines formatting for a single level within a list, including numbering style, text format, alignment, and paragraph properties.

Definition

Namespace:Telerik.Documents.Flow.Model.Lists

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public sealed class ListLevel

Inheritance: objectListLevel

Properties

Gets or sets the horizontal alignment of the numbering text within the list level's numbering area.

C#
public Alignment Alignment { get; set; }
Property Value:

The alignment.

Gets the character formatting applied to the numbering text for this level, including font, size, and color.

C#
public CharacterProperties CharacterProperties { get; }
Property Value:

The character properties.

Gets the document containing this list level, accessed through the owner list.

C#
public RadFlowDocument Document { get; }
Property Value:

The document.

Gets or sets whether all inherited level numbers in this level's format should be displayed as decimal regardless of their defined numbering style.

C#
public bool IsLegal { get; set; }
Property Value:

The is legal.

Gets or sets the numbering format applied to this level, such as Decimal, UpperRoman, LowerLetter, or Bullet.

C#
public NumberingStyle NumberingStyle { get; set; }
Property Value:

The numbering style.

Gets or sets the text template for numbering display, where placeholders like %1, %2 are replaced with actual level numbers.

C#
public string NumberTextFormat { get; set; }
Property Value:

The number text format.

Gets the paragraph formatting applied to list items at this level, including indentation and spacing.

C#
public ParagraphProperties ParagraphProperties { get; }
Property Value:

The paragraph properties.

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.

C#
public int RestartAfterLevel { get; set; }
Property Value:

The restart after level.

Exceptions: ArgumentOutOfRangeException

value is less then -1 and greater then 8.

Gets or sets the starting number used for the first occurrence of this list level, which must be zero or greater.

C#
public int StartIndex { get; set; }
Property Value:

The start index.

Exceptions: ArgumentOutOfRangeException

value is less than 0.

Gets or sets the identifier of a paragraph style linked to this level; setting this value updates the style's list references.

C#
public string StyleId { get; set; }
Property Value:

The name of the style.

Methods

Creates a deep copy of this list level associated with the specified owner list, copying all formatting and properties.

C#
public ListLevel Clone(List ownerList)
Parameters:ownerListList

The owner list.

Returns:

ListLevel