Back to Devexpress

TdxGalleryControl.AutoSizeMode Property

vcl-dxgallerycontrol-dot-tdxgallerycontrol.md

latest1.7 KB
Original Source

TdxGalleryControl.AutoSizeMode Property

Specifies the gallery’s auto-size mode.

Declaration

delphi
property AutoSizeMode; default asNone;

Property Value

TypeDefault
TdxAutoSizeModeasNone

Remarks

You can choose one of the following size modes.

ValueDescription
asAutoHeightSpecifies whether the gallery’s height is automatically adjusted to completely display its content vertically. If the gallery’s OptionsView.ColumnCount property is set to 0 then the gallery’s height will be automatically adjusted depending upon established Width of the gallery control.
asAutoSizeSpecifies whether gallery is resized to display its entire contents.
asAutoWidthSpecifies whether the gallery’s width is automatically adjusted to completely display its content horizontally.
asNoneThe gallery’s size is not automatically adjusted and specified by its Width and Height properties. The gallery will display a vertical scrollbar if required.

The following images demonstrate this property’s effect on a control’s appearance.

AutoSizeMode = asNoneAutoSizeMode = asAutoWidth

The default value of the AutoSizeMode property is asNone.

See Also

TdxGalleryControl Class

TdxGalleryControl Members

dxGalleryControl Unit