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

TcxControlOptionsView Class

Contains common settings for customizing an editing control’s appearance.

#Declaration

Delphi
TcxControlOptionsView = class(
    TcxControlOptions
)

#Remarks

The TcxControlOptionsView class contains appearance settings that are common to all Developer Express controls that support in-place editing (for instance, the TreeList).

The TcxControlOptionsView class provides settings that allow you to customize the editing control’s appearance. TcxControl descendants inherit their view options from TcxControlOptionsView to implement control-specific options. Each editing control has the OptionsView property that exposes a TcxControlOptionsView descendant.

The TcxControlOptionsView class provides options that are common to all editing controls. These options include various settings for data cells and scrollbars:

  • CellAutoHeight – Determines whether the cell height (while the width is fixed) is automatically calculated to accommodate its contents;

  • CellEndEllipsis – Determines whether the cell text is clipped with the ellipsis if it does not fit into the cell’s area;

  • CellTextMaxLineCount – Determines the maximum number of text lines within a data cell if the CellAutoHeight property is True;

  • ScrollBars and NavigatorOffset – Control the visibility and position of scrollbars.

The text line height (and, as a result, the cell height) is calculated according to the font size and the cell style applied to the control. These settings can be changed by modifying the TcxCustomControlStyles.Content property. When custom drawing a cell, you should manually adjust the cell size.

See Also