Class
ListLevel

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:

cs-api-definition
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

cs-api-definition
public Alignment Alignment { get; set; }

Property Value

Alignment

The alignment.

CharacterProperties

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

Declaration

cs-api-definition
public CharacterProperties CharacterProperties { get; }

Property Value

CharacterProperties

The character properties.

Document

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

Declaration

cs-api-definition
public RadFlowDocument Document { get; }

Property Value

RadFlowDocument

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.

Declaration

cs-api-definition
public bool IsLegal { get; set; }

Property Value

bool

The is legal.

NumberTextFormat

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

Declaration

cs-api-definition
public string NumberTextFormat { get; set; }

Property Value

string

The number text format.

NumberingStyle

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

Declaration

cs-api-definition
public NumberingStyle NumberingStyle { get; set; }

Property Value

NumberingStyle

The numbering style.

ParagraphProperties

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

Declaration

cs-api-definition
public ParagraphProperties ParagraphProperties { get; }

Property Value

ParagraphProperties

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

cs-api-definition
public int RestartAfterLevel { get; set; }

Property Value

int

The restart after level.

Exceptions

ArgumentOutOfRangeException

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

cs-api-definition
public int StartIndex { get; set; }

Property Value

int

The start index.

Exceptions

ArgumentOutOfRangeException

value is less than 0.

StyleId

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

Declaration

cs-api-definition
public string StyleId { get; set; }

Property Value

string

The name of the style.

Methods

Clone(List)

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

Declaration

cs-api-definition
public ListLevel Clone(List ownerList)

Parameters

ownerList

List

The owner list.

Returns

ListLevel