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 |
| |
Horizontal |
|
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.