Skip to main content

TcxControlOptionsView Class

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

Declaration

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