Skip to main content
All docs
V24.2

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

GalleryControl.CalcGallerySize(Int32, Int32) Method

Calculates the optimal size of a GalleryControl that has the given number of columns and rows.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public Size CalcGallerySize(
    int row,
    int column
)

#Parameters

Name Type Description
row Int32

The number of GalleryControl rows.

column Int32

The number of GalleryControl columns.

#Returns

Type Description
Size

The optimal GalleryControl size.

See Also