Back to Devexpress

TextAlignment Enum

corelibraries-devexpress-dot-xtraprinting-48020a7b.md

latest3.8 KB
Original Source

TextAlignment Enum

Specifies the positioning of text within a control.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[ResourceFinder(typeof(ResFinder))]
public enum TextAlignment
vb
<ResourceFinder(GetType(ResFinder))>
Public Enum TextAlignment

Members

NameDescription
TopLeft

The text is vertically aligned at the top, and horizontally aligned on the left.

| | TopCenter |

The text is vertically aligned at the top, and horizontally aligned at the center.

| | TopRight |

The text is vertically aligned at the top, and horizontally aligned on the right.

| | MiddleLeft |

The text is vertically aligned in the middle, and horizontally aligned on the left.

| | MiddleCenter |

The text is vertically aligned in the middle, and horizontally aligned at the center.

| | MiddleRight |

The text is vertically aligned in the middle, and horizontally aligned on the right.

| | BottomLeft |

The text is vertically aligned at the bottom, and horizontally aligned on the left.

| | BottomCenter |

The text is vertically aligned at the bottom, and horizontally aligned at the center.

| | BottomRight |

The text is vertically aligned at the bottom, and horizontally aligned on the right.

| | TopJustify |

The text is vertically aligned at the top, and horizontally justified.

This mode is ignored in Silverlight applications.

| | MiddleJustify |

The text is vertically aligned in the middle, and horizontally justified.

This mode is ignored in Silverlight applications.

| | BottomJustify |

The text is vertically aligned at the bottom, and horizontally justified.

This mode is ignored in Silverlight applications.

|

The following properties accept/return TextAlignment values:

Show 12 items

LibraryRelated API Members
Cross-Platform Class LibraryBarCodeBrick.Alignment
BrickStyle.TextAlignment
IBarCodeData.Alignment
BlazorDocumentExportElementStyle.TextAlignment
.NET Reporting ToolsSubreportBase.TextAlignment
XRBarCode.Alignment
XRBarCode.TextAlignment
XRCharacterComb.TextAlignment
XRCheckBox.TextAlignment
XRControl.TextAlignment
XRControlStyle.TextAlignment
XRTableOfContentsTitle.TextAlignment

Remarks

The TextAlignment determines how the text is positioned relative to the control edges.

When alignment Justify is used, all lines but the last line of the paragraph are aligned. Thus, if the paragraph consists of one line, the output is identical to the Left alignment.

See Also

DevExpress.XtraPrinting Namespace