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

TdxGalleryControl.AutoSizeMode Property

Specifies the gallery’s auto-size mode.

#Declaration

Delphi
property AutoSizeMode; default asNone;

#Property Value

Type Default
TdxAutoSizeMode asNone

#Remarks

You can choose one of the following size modes.

Value Description
asAutoHeight Specifies 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.
asAutoSize Specifies whether gallery is resized to display its entire contents.
asAutoWidth Specifies whether the gallery’s width is automatically adjusted to completely display its content horizontally.
asNone The 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 = asNone AutoSizeMode = asAutoWidth

The default value of the AutoSizeMode property is asNone.

See Also