Skip to main content

GalleryControlGallery.Orientation Property

Gets or sets the gallery’s orientation.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(Orientation.Vertical)]
[DXCategory("Behavior")]
public Orientation Orientation { get; set; }

Property Value

Type Default Description
Orientation Vertical

An Orientation value that specifies the gallery’s orientation.

Remarks

The following table describes the differences between the vertically and horizontally oriented galleries:

Orientation

Image

Description

Vertical

Gallery_VertOrientation

  • Items in groups are arranged across then down.
  • A vertical scroll bar is used.
  • Group captions are horizontally oriented.

Horizontal

Gallery_HorzOrientation

  • Items in groups are arranged down then across.
  • A horizontal scroll bar is used.
  • Group captions are vertically oriented.

The GalleryControlGallery class provides a number of members that control the visual positions of its elements (for instance, BaseGallery.FirstItemVertAlignment, BaseGallery.FirstItemVertIndent, BaseGallery.LastItemVertAlignment, BaseGallery.LastItemVertIndent and GalleryControlGallery.ContentHorzAlignment). All these properties define values that are relative to the vertically oriented gallery. When the gallery gets horizontally oriented, the meaning of these properties is transposed as well.

See Also