Skip to main content

TcxCustomControlStyles.Content Property

Represents an editing control’s content style.

Declaration

property Content: TcxStyle index ecs_Content read; write;

Property Value

Type
TcxStyle

Remarks

The Content property allows you to define the content style (text font and text color, background image or background color) for the editing control. In data representation controls, such as TreeList, the content style is applied to cells that display data.

Here is a remark for the controls that support in-place editors (TreeList):

As an in-place editor has its own painter, it is painted by its own means. Additionally, the in-place editor painter is aware of the control’s content style. So it paints an editor according to all style settings (text font and color and background color) except the background bitmap when an editor is active.

You can custom paint the content via the OnGetContentStyle event. This event is fired when the editing control content is about to be painted. You can pass the custom style as its AStyle parameter and the content will be painted according to the passed style settings.

See Also