GalleryControlGallery.Orientation Property

Gets or sets the gallery's orientation.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(Orientation.Vertical)]
public Orientation Orientation { get; set; }
<DXCategory("Behavior")>
<DefaultValue(Orientation.Vertical)>
Public Property Orientation As Orientation

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