Class
TwoStatesButtonWidget

Base for two‑state widgets (ON/OFF) such as checkboxes and radio buttons, providing appearance for each state.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Annotations

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public abstract class TwoStatesButtonWidget : Widget<ButtonAppearanceCharacteristics>, IFixedDocumentElement, IStructuralElement

Inheritance: objectFixedDocumentElementBaseAnnotationContentAnnotationBaseWidgetWidget<ButtonAppearanceCharacteristics>TwoStatesButtonWidget

Derived Classes: RadioButtonWidget

Implements: IFixedDocumentElementIStructuralElement

Inherited Members Widget<ButtonAppearanceCharacteristics>.AppearanceCharacteristicsWidget.HighlightingModeWidget.TextPropertiesWidget.FieldWidget.TypeWidget.ActionsContentAnnotationBase.EnsureContentIsUpToDate()Annotation.RectAnnotation.BorderAnnotation.IsPrintableAnnotation.StructureTagFixedDocumentElementBase.Parent

Properties

OffStateContent

Gets the appearance content used when the widget is in the OFF state; this typically overrides viewer‑generated visuals.

Declaration

cs-api-definition
public AnnotationContentSource OffStateContent { get; }

Property Value

AnnotationContentSource

The OFF‑state content source.

OnStateContent

Gets the appearance content used when the widget is in the ON state; this typically overrides viewer‑generated visuals.

Declaration

cs-api-definition
public AnnotationContentSource OnStateContent { get; }

Property Value

AnnotationContentSource

The ON‑state content source.

WidgetContentType

Returns the two‑states widget content type.

Declaration

cs-api-definition
public override sealed WidgetContentType WidgetContentType { get; }

Property Value

WidgetContentType

TwoStatesContent.

Overrides Widget.WidgetContentType

Methods

RecalculateContent()

Recalculates the widget's AnnotationContentSource content based on widget text properties and dynamic appearance characteristics.

Declaration

cs-api-definition
public override sealed void RecalculateContent()

Overrides ContentAnnotationBase.RecalculateContent()