Interface
IElementWithStyle

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:

cs-api-definition
public interface IElementWithStyle

Properties

Style

Gets or sets the style of the element.

Declaration

cs-api-definition
StyleDefinition Style { get; set; }

Property Value

StyleDefinition

The style applied to the element.

StyleName

Gets or sets the style name for the element.

Declaration

cs-api-definition
string StyleName { get; set; }

Property Value

string

The name of the style applied to the element.

Methods

OnStyleRemovedFromDocument()

Invoked when a style is removed from the document.

Declaration

cs-api-definition
void OnStyleRemovedFromDocument()

StyleNameChanged()

Occurs when the style name of the element changes.

Declaration

cs-api-definition
void StyleNameChanged()

StylePropertyChanged(object, StylePropertyChangeEventArgs)

Occurs when a style property changes on the element.

Declaration

cs-api-definition
void StylePropertyChanged(object sender, StylePropertyChangeEventArgs args)

Parameters

sender

object

The source of the event.

args

StylePropertyChangeEventArgs

An instance of StylePropertyChangeEventArgs that contains the event data.

StylePropertyChanging(object, StylePropertyChangeEventArgs)

Occurs when the style property of an element is changing.

Declaration

cs-api-definition
void StylePropertyChanging(object sender, StylePropertyChangeEventArgs args)

Parameters

sender

object

The source of the event.

args

StylePropertyChangeEventArgs

The event data containing information about the style property change.