Skip to main content

TdxCustomWheelPickerProperties.LineCount Property

Controls the number of simultaneously displayed items in each wheel.

Declaration

property LineCount: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

Wheel items are horizontally arranged into lines, the number of which is limited by the LineCount property value. The editor displays the specified number of lines only if its height is sufficient to fit all of them. Since the selected item is always centered within its wheel, even property values result in displaying partially visible items at the top and bottom wheel edges. These items are considered one line.

The images in the following table illustrate how a wheel picker editor displays wheel items when the LineCount property is set to 3, 4, or 5.

Property

Value

Example

3

4

5

A property value of 0 indicates that the number of lines is determined based on the editor’s AutoSize property value. If the AutoSize property is set to True, three lines of items is displayed (as if the LineCount property is set to 3). Otherwise, the number of lines is limited only by the editor’s height.

The default value of the LineCount property is 0.

See Also