New to Telerik UI for WPFStart a free 30-day trial

Represents the style and formatting for a specific level in a multi-level list.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ListLevelStyle : INotifyPropertyChanged

Inheritance: objectListLevelStyle

Implements: INotifyPropertyChanged

Constructors

C#
public ListLevelStyle()
C#
public ListLevelStyle(ListLevelStyle source)
Parameters:sourceListLevelStyle

Properties

FontFamily

FontFamily

Gets or sets the font family for the list level style.

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

The font family applied to the list level style. This property determines the typeface used for the text in the list item.

FontWeight

FontWeight

Gets or sets the font weight of the list level style.

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

A value indicating the font weight for the list level style, which can be used to define how bold or light the text appears.

Gets or sets the foreground color for the list level style.

C#
public Color ForeColor { get; set; }
Property Value:

A Color that represents the foreground color of the list level style.

Represents the hanging indent style for a list level in a document model.

C#
[XamlSerializable]
public double HangingIndent { get; set; }

Gets or sets the indentation of the list level style.

C#
[XamlSerializable]
public double Indent { get; set; }

Gets or sets the level text for the list level style.

C#
[XamlSerializable]
public string LevelText { get; set; }
Property Value:

A string representing the text format for the list item level. The format can include numeric or alphabetical indicators, along with any additional formatting required by the list style.

Represents the numbering format for a specific list level style in the Telerik document model.

C#
[XamlSerializable]
public ListNumberingFormat NumberingFormat { get; set; }

Gets the span properties for the list level style.

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

The span properties that define the styling for the list level.

Gets or sets the starting index for the list level style.

C#
[XamlSerializable]
public int StartingIndex { get; set; }
Property Value:

The starting index of the list level style. The default value is 0.

Gets or sets the name of the style for the list level.

C#
[XamlSerializable]
public string StyleName { get; set; }
Property Value:

A string representing the name of the list level style.

Methods

Determines whether the specified object is equal to the current ListLevelStyle instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current instance.

Returns:

bool

True if the specified object is equal to the current instance; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for the current instance of the ListLevelStyle class. This method is typically used in hashing algorithms and data structures such as hash tables.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current ListLevelStyle instance, represented as an integer.

Overrides: object.GetHashCode()

C#
protected virtual void OnPropertyValueChanged(string propertyName, object oldValue, object newValue)
Parameters:propertyNamestringoldValueobjectnewValueobject

Events

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged