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

Defines the state and template contract for a UI control that represents a structured document tag.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public interface IContentControl

Methods

Gets the template element name used for the control's content body.

C#
string GetBodyElementName()
Returns:

string

The required body element name used by the control template.

Gets the state currently backing the control; the content-control hit-test layer uses it to update hover state.

C#
ContentControlState GetCurrentState()
Returns:

ContentControlState

The current state, or null if no state has been applied.

Applies the initial document state when the UI control is created.

C#
void Initialize(ContentControlState state)
Parameters:stateContentControlState

The structured-document-tag state to display.

Replaces the state driving the control's current presentation.

C#
void UpdateState(ContentControlState state)
Parameters:stateContentControlState

The latest structured-document-tag state.