Back to Devexpress

TdxToggleSwitchStateIndicator Class

vcl-dxtoggleswitch-5d3658d0.md

latest1.7 KB
Original Source

TdxToggleSwitchStateIndicator Class

Contains settings of the checked state indicator for toggle switch editors (TdxToggleSwitch and TdxDBToggleSwitch).

Declaration

delphi
TdxToggleSwitchStateIndicator = class(
    TPersistent
)

Remarks

This class introduces properties that allow you to do the following:

  • Specify how a toggle switch editor indicates its checked state in addition to a thumb (Kind);

  • Provide custom text labels and images for the checked and unchecked (also called On and Off) states (OnText, OnGlyph, OffText, and OffGlyph);

  • Specify the display position of the selected indicator – outside or inside the switch (Position).

A TdxToggleSwitchStateIndicator object is referenced by a toggle switch editor’s Properties.StateIndicator property.

Inheritance

TObject TPersistent TdxToggleSwitchStateIndicator

See Also

TdxToggleSwitchStateIndicator Members

dxToggleSwitch Unit