Interface IElementWithStyle
Represents an element that has style properties in the document model.
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
StyleDefinition
The style applied to the element. |
StyleName
Gets or sets the style name for the element.
Declaration
string StyleName { get; set; }
Property Value
System.String
The name of 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
System.Object
sender
The source of the event. |
StylePropertyChangeEventArgs
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
System.Object
sender
The source of the event. |
StylePropertyChangeEventArgs
args
The event data containing information about the style property change. |