Back to Devexpress

GalleryControlGallery.Orientation Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-gallerycontrolgallery-4292052f.md

latest3.5 KB
Original Source

GalleryControlGallery.Orientation Property

Gets or sets the gallery’s orientation.

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
OrientationVertical

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

|

|

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

| |

Horizontal

|

|

  • 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

FirstItemVertAlignment

FirstItemVertIndent

LastItemVertAlignment

LastItemVertIndent

ContentHorzAlignment

GalleryControlGallery Class

GalleryControlGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace