New to Telerik Document ProcessingStart a free 30-day trial

Dynamic Appearance Properties

Updated on Jun 3, 2026

Some widgets visualize variable content, which must be dynamically reconstructed after each field value change. To define the way this content is evaluated, all widgets provide two types of properties – VariableTextProperties defining the text-specific properties, and DynamicAppearanceCharacteristics defining the geometry-specific properties.

VariableTextProperties Class

The VariableTextProperties class is used by Widget annotations to specify the properties needed for the dynamic construction of widget text. An instance of this class can also be found in the FormField class, providing an easy way to ensure that all widgets created from this field use similar text properties.

The following table lists the available properties:

PropertyDescription
HorizontalAlignmentGets or sets the text horizontal alignment.
CharacterSpacingGets or sets the character spacing.
WordSpacingGets or sets the word spacing.
HorizontalScalingGets or sets the text horizontal scaling.
FontGets or sets the font.
FontSizeGets or sets the font size. If zero, the size is automatically calculated to fit the available space in the widget annotation rectangle.
TextRiseGets or sets the text rise.
RenderingModeGets or sets the text rendering mode.
FillGets or sets the text fill color.
StrokeGets or sets the text stroke color.
StrokeThicknessGets or sets the text stroke thickness.
StrokeLineCapGets or sets the text stroke line cap.
StrokeLineJoinGets or sets the text stroke line join.
StrokeDashArrayGets or sets the text stroke dash array.
StrokeDashOffsetGets or sets the text stroke dash offset.
MilterLimitGets or sets the text miter limit.

In .NET Standard/.NET (Target OS: None) environments, fonts beyond the 14 standard ones require a FontsProvider implementation to be resolved correctly.

DynamicAppearanceCharacteristics Class

The DynamicAppearanceCharacteristics class is used by VariableContentWidget and SignatureWidget classes to specify the dynamic construction of widget geometry representation. It provides the following properties:

PropertyDescription
RotationGets or sets the rotation of the widget content.
BorderColorGets or sets the color of the Widget rectangle border. If null, no border is drawn. Takes effect only when an AnnotationBorder is set to the widget's Border property.
BackgroundGets or sets the color of the Widget rectangle background. If null, no background is drawn.

ButtonAppearanceCharacteristics Class

The ButtonAppearanceCharacteristics class inherits DynamicAppearanceCharacteristics and is used by TwoStateButtonWidget and RadioButtonWidget for dynamically constructing button appearances. It adds the following property to its parent class implementation:

PropertyDescription
NormalCaptionThe text drawn when the mouse is not interacting with the button.

PushButtonAppearanceCharacteristics Class

The PushButtonAppearanceCharacteristics class inherits ButtonAppearanceCharacteristics and is used by PushButtonWidget for dynamically constructing button appearances. It adds the following properties to its parent class implementation:

PropertyDescription
MouseOverCaptionThe text drawn when the mouse is over the button.
MouseDownCaptionThe text drawn when the mouse is pressed on the button.
NormalIconSourceFormSource used for drawing a button icon when the mouse is not interacting with the widget.
MouseOverIconFormSource used for drawing a button icon when the mouse is over the widget.
MouseDownIconFormSource used for drawing a button icon when the mouse is pressed on the widget.
IconAndCaptionPositionSpecifies how to position the button icon relative to the button caption.
IconFitOptionsProvides options specifying how to position and whether or how to scale the icon within the available space in the annotation rectangle.

See Also