InterfaceIElementWithStyle
Represents an element that has style properties in the document model.
Definition
Namespace:Telerik.Windows.Documents.Model.Styles
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public interface IElementWithStyle
Properties
Style
Gets or sets the style of the element.
Declaration
StyleDefinition Style { get; set; }
Property Value
The style applied to the element.
Methods
OnStyleRemovedFromDocument()
Invoked when a style is removed from the document.
Declaration
void OnStyleRemovedFromDocument()
StyleNameChanged()
Occurs when the style name of the element changes.
Declaration
void StyleNameChanged()
StylePropertyChanged(object, StylePropertyChangeEventArgs)
Occurs when a style property changes on the element.
Declaration
void StylePropertyChanged(object sender, StylePropertyChangeEventArgs args)
Parameters
sender
The source of the event.
args
An instance of StylePropertyChangeEventArgs that contains the event data.
StylePropertyChanging(object, StylePropertyChangeEventArgs)
Occurs when the style property of an element is changing.
Declaration
void StylePropertyChanging(object sender, StylePropertyChangeEventArgs args)
Parameters
sender
The source of the event.
args
The event data containing information about the style property change.