Skip to main content

TcxCustomEdit.Styles Property

Provides access to all styles that define editor appearance in different states.

Declaration

property Styles[AState: TcxContainerStateItem]: TcxCustomEditStyle read; write;

Property Value

Type Description
TcxCustomEditStyle

Stores editor state style settings.

Remarks

Every style accessible through the Styles property corresponds to different editor states. Pass the required state as the AState parameter to access corresponding style settings:

AState Value Style Property[1] Description
csNormal Style Stores base editor appearance settings.
csActive StyleFocused Stores editor appearance settings when the editor has focus.
csDisabled StyleDisabled Stores appearance settings of the editor when it is disabled.
csHotTrack StyleHot Stores appearance settings of the editor when it is hot-tracked if the Style.HotTrack property is set to True.
csReadOnly StyleReadOnly Stores appearance settings of the editor in read-only mode if the Style.ReadOnly property is set to True.

Refer to the TcxEditStyle class description for detailed information on all available editor appearance settings.

Tip

To apply the same style settings to multiple editors, you can use a TcxEditStyleController component. If you need to apply the same style settings to all editors in your application, you can use a TcxDefaultEditStyleController component.

Footnotes
  1. This column lists corresponding editor style properties declared in the TcxCustomEdit class.

See Also