Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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