New to Telerik UI for WinForms? Start a free 30-day trial

Defines the marker, indentation, and text formatting for one level of a list.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ListLevelStyle : INotifyPropertyChanged

Inheritance: objectListLevelStyle

Implements: INotifyPropertyChanged

Constructors

Initializes a list level with the default hanging-indent value.

C#
public ListLevelStyle()

Copies the numbering, indentation, and span formatting values from another list level. The source level's StyleName is not copied.

C#
public ListLevelStyle(ListLevelStyle source)
Parameters:sourceListLevelStyle

The level whose formatting values are copied.

Properties

Gets or sets the font family used for the list marker.

C#
public FontFamily FontFamily { get; set; }

Gets or sets the font weight used for the list marker.

C#
public FontWeight FontWeight { get; set; }

Gets or sets the foreground color used for the list marker.

C#
public Color ForeColor { get; set; }

Gets or sets the hanging-indent value for this list level. The default constructor initializes it to the document's indentation step, and DOCX numbering import and export map it to w:ind/@hanging.

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

Gets or sets the horizontal indentation for this list level.

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

Gets or sets the marker template. Numbered-list placeholders such as {0} are replaced with the corresponding level number; text outside placeholders supplies the marker's punctuation.

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

Gets or sets whether this level uses a bullet marker or a numbered marker, and the number format when applicable.

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

Gets or sets the span formatting values associated with this level, including the marker's font and color.

C#
public SpanProperties SpanProperties { get; set; }

Gets or sets the first number used for this level when list numbering starts.

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

Gets or sets the paragraph-style name associated with this level in DOCX numbering definitions. DOCX import and export map this value to w:pStyle.

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

Methods

Compares the numbering, indentation, and span formatting values; StyleName is not included.

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

The object to compare with this list level.

Returns:

bool

true if the compared formatting values match; otherwise, false.

Overrides: object.Equals(object)

Computes a hash code from the numbering format, marker template, starting index, and span formatting.

C#
public override int GetHashCode()
Returns:

int

A hash code for this list level.

Overrides: object.GetHashCode()

Raises the list-level change event and the PropertyChanged notification for a changed value.

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

The name of the changed property.

oldValueobject

The value before the change.

newValueobject

The value after the change.

Events

Occurs when a numbering or formatting property of this level changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged