ListStyleData
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:
public class ListStyleData : INotifyPropertyChanged
Inheritance: objectListStyleData
Implements:
Constructors
Creates preview data for the specified list style and subscribes to its formatting changes.
public ListStyleData(ListStyle listStyle, RadRichTextEditor snapshotRichTextBox)
The list style to expose and render.
snapshotRichTextBoxRadRichTextEditorThe 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.
public WriteableBitmap Image { get; set; }
Gets the source list style whose levels are rendered in the preview and applied by the list gallery.
public ListStyle ListStyle { get; }
Gets the current StyleLink value; changes to it are reported through PropertyChanged.
public string ListStyleName { get; }
Methods
Subscribes to changes in the list style's levels and linked style name.
public void AttachEvents()
Stops listening for list-level and linked-style changes.
public void DetachEvents()
Raises PropertyChanged for the specified property.
protected virtual void OnPropertyChanged(string propertyName)
The name of the property that changed.
Renders the list style in the preview editor and updates Image.
public void UpdateSnapshotImage()
Events
Occurs when the preview image or linked style name changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: