Shape.HorizontalAlignment Property
Gets or sets how the shape is positioned horizontally.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
ShapeHorizontalAlignment | A ShapeHorizontalAlignment enumeration member that specifies the shape’s horizontal position. |
Available values:
Name | Description |
---|---|
None | The shape is positioned explicitly via the Shape.Offset property relative to its Shape.RelativeHorizontalPosition. |
Left | The shape is left-aligned relative to its Shape.RelativeHorizontalPosition. |
Center | The shape is centered relative to its Shape.RelativeHorizontalPosition. |
Right | The shape is right-aligned relative to its Shape.RelativeHorizontalPosition. |
Inside | Not in use. |
Outside | Not in use. |
Remarks
The shape can be positioned horizontally relative to the area specified by the Shape.RelativeHorizontalPosition. If the alignment is set to ShapeHorizontalAlignment.None, the shape is positioned at a distance explicitly specified in the Shape.Offset property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the HorizontalAlignment property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.