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

Represents an object whose style name and property changes are synchronized with a document stylesheet.

Definition

Namespace:Telerik.WinForms.Documents.Model.Styles

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public interface IElementWithStyle

Properties

Gets or sets the resolved style associated with this object.

C#
StyleDefinition Style { get; set; }

Gets or sets the style name used to resolve the associated style in the document.

C#
string StyleName { get; set; }

Methods

Notifies the object that its associated style has been removed from the document.

C#
void OnStyleRemovedFromDocument()

Notifies the object that the name of its associated style changed.

C#
void StyleNameChanged()

Notifies the object after the corresponding changing notification.

C#
void StylePropertyChanged(object sender, StylePropertyChangeEventArgs args)
Parameters:senderobject

The style whose property changed.

argsStylePropertyChangeEventArgs

The property definition and its old and new values.

Notifies the object after the effective value changes but before the corresponding changed notification.

C#
void StylePropertyChanging(object sender, StylePropertyChangeEventArgs args)
Parameters:senderobject

The style whose property is changing.

argsStylePropertyChangeEventArgs

The property definition and its old and new effective values; the new value is already applied.