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

Exposes a list style and the preview image used to represent it in the multilevel-list gallery.

Definition

Namespace:Telerik.WinForms.Controls.RichTextBoxUI.Dialogs.Styles

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ListStyleData : INotifyPropertyChanged

Inheritance: objectListStyleData

Implements: INotifyPropertyChanged

Constructors

Creates preview data for the specified list style and subscribes to its formatting changes.

C#
public ListStyleData(ListStyle listStyle, RadRichTextEditor snapshotRichTextBox)
Parameters:listStyleListStyle

The list style to expose and render.

snapshotRichTextBoxRadRichTextEditor

The editor used to render list-style previews.

Properties

Gets or sets the rendered preview image. If no image has been generated, the getter creates one.

C#
public WriteableBitmap Image { get; set; }

Gets the source list style whose levels are rendered in the preview and applied by the list gallery.

C#
public ListStyle ListStyle { get; }

Gets the current StyleLink value; changes to it are reported through PropertyChanged.

C#
public string ListStyleName { get; }

Methods

Subscribes to changes in the list style's levels and linked style name.

C#
public void AttachEvents()

Stops listening for list-level and linked-style changes.

C#
public void DetachEvents()

Raises PropertyChanged for the specified property.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

The name of the property that changed.

Renders the list style in the preview editor and updates Image.

C#
public void UpdateSnapshotImage()

Events

Occurs when the preview image or linked style name changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged