IDimensionCombo.AdjustDroppedListWidth

Syntax

AdjustDroppedListWidth([MaxWidth: Integer = -1;][MinWidth: Integer = -1]);

Parameters

MaxWidth - maximum available width of a drop-down list.

MinWidth - minimum available width of a drop-down list.

Description

The AdjustDroppedListWidth method adjusts width of a drop-down list of the component considering the MinWidth and the MaxWidth constraints, as well as the data displayed in the component.

Comments

The width is adjusted considering expander, checkbox, icon and state icon, elements text being available. If columns are displayed in the component, the width of all columns is considered. Calling the method changes value of the DroppedListWidth property.

NOTE. Actual width of the drop-down list is set considering constraints that are applied to value of the DroppedListWidth property.

See also:

IDimensionCombo