Class TwoStatesButtonWidget
Represents a widget that can be in one of two states: ON or OFF, such as checkboxes and radio buttons.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Annotations
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public abstract class TwoStatesButtonWidget : Widget<ButtonAppearanceCharacteristics>, IFixedDocumentElement, IInstanceIdOwner, IContextClonable<Annotation>, IStructuralElement
Properties
OffStateContent
Represents the content source displayed when the widget is in its OFF state. This content has higher priority than widget appearance characteristics and text properties and is displayed by default when opening the document in PDF viewers.
Declaration
public AnnotationContentSource OffStateContent { get; }
Property Value
AnnotationContentSource
The annotation content source for the OFF state appearance. |
OnStateContent
Represents the content source displayed when the widget is in its ON state. This content has higher priority than widget appearance characteristics and text properties and is displayed by default when opening the document in PDF viewers.
Declaration
public AnnotationContentSource OnStateContent { get; }
Property Value
AnnotationContentSource
The annotation content source for the ON state appearance. |
WidgetContentType
Gets the widget content type, which is always TwoStatesContent for two-state button widgets.
Declaration
public override sealed WidgetContentType WidgetContentType { get; }
Property Value
WidgetContentType
Returns TwoStatesContent. |
Overrides
Methods
RecalculateContent()
Recalculates the widget's AnnotationContentSource content based on widget text properties and dynamic appearance characteristics.
Declaration
public override sealed void RecalculateContent()