GalleryControlGallery.ContentHorzAlignment Property

Gets or sets the horizontal alignment of gallery items relative to the right edge (for vertically oriented galleries). For horizontally oriented galleries, this property specifies the vertical alignment of gallery items relative to the top edge.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v20.2.dll

Declaration

[DXCategory("Layout")]
[DefaultValue(HorzAlignment.Default)]
public HorzAlignment ContentHorzAlignment { get; set; }
<DXCategory("Layout")>
<DefaultValue(HorzAlignment.Default)>
Public Property ContentHorzAlignment As HorzAlignment

Property Value

Type Default Description
HorzAlignment

Default

A HorzAlignment value that specifies the horizontal or vertical alignment of gallery items.

Remarks

The gallery's default orientation is vertical. In this case, the ContentHorzAlignment property specifies the horizontal alignment of gallery items relative to the right edge.

When changing the gallery's orientation to horizontal via the GalleryControlGallery.Orientation property, the meaning of the ContentHorzAlignment property is swapped as well. In this instance, the ContentHorzAlignment property specifies the vertical alignment of gallery items relative to the top edge.

See Also