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

TcxCustomEditStyle Class

The base class for editor style setting classes.

#Declaration

Delphi
TcxCustomEditStyle = class(
    TcxContainerStyle
)

#Remarks

Style settings define editor appearance in base and additional states (read-only, hot-tracked, disabled, etc.)

#Main API Members

The list below outlines key members of the TcxCustomEditStyle class. These settings allow you to customize editor appearance in different states.

#Style Appearance Settings

Color | BorderColor | TransparentBorder
Specify background and border colors.
Edges | BorderStyle
Allow you to hide or display individual borders (left, right, top, and bottom) and switch between available line styles.
Font | TextColor | TextStyle
Allow you to customize text appearance settings.
LookAndFeel
Provide access to look & feel settings. You can use this property to apply a skin to an editor and/or its different states.
Shadow
Specifies if the shadow effect is enabled.
BaseStyle
Provides access to the base style used as the source of default settings in the current style. This property returns nil (in Delphi) or nullptr (in C++Builder) if the current style is a base style.
HotTrack | ReadOnly

Specify if corresponding child styles are enabled for hot-tracked and read-only editor states.

Note

HotTrack and ReadOnly properties are in effect only if the current style defines base editor appearance settings (that is, the State property returns cxNormal).

State
Returns the editor state associated with the current style.

#General-Purpose API Members

ActiveStyleController | StyleController

Provide access to the parent style controller.

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.

AssignedValues
Allows you to track the state of individual style settings and reset them.
BeginUpdate | EndUpdate
Allow you to avoid excessive redraw operations during batch style setting changes.
RestoreDefaults
Restores default appearance settings.

#Terminal TcxCustomEditStyle Class Descendant

Do not use the TcxCustomEditStyle class directly. Use the TcxEditStyle class instead.

See Also