officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tabinfo.md
Gets or sets the alignment type, specifying how any text after the tab will be lined up.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public TabAlignmentType Alignment { get; set; }
Public Property Alignment As TabAlignmentType
| Type | Description |
|---|---|
| TabAlignmentType |
A TabAlignmentType enumeration member.
|
Available values:
| Name | Description |
|---|---|
| Left |
The left edge of text after the tab will be lined up with the tab stop.
| | Center |
The center of the text after the tab will be lined up with the tab stop.
| | Right |
The right edge of text after the tab will be lined up with the tab stop.
| | Decimal |
If the text after the tab is a number with a decimal point, the decimal point is lined up with the tab stop.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Alignment 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.
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/PageLayout.cs#L57
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
tab1.Leader = TabLeaderType.MiddleDots;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/PageLayoutActions.cs#L57
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
tab1.Leader = TabLeaderType.MiddleDots;
word-document-api-examples/CS/CodeExamples/PageLayoutActions.cs#L101
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
tab1.Leader = TabLeaderType.MiddleDots;
winforms-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L79
TabInfo tbi = new TabInfo();
tbi.Alignment = TabAlignmentType.Center;
tbi.Position = Units.InchesToDocumentsF(1.5f);
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/PageLayout.vb#L52
tab1.Position = 2.5F
tab1.Alignment = DevExpress.XtraRichEdit.API.Native.TabAlignmentType.Left
tab1.Leader = DevExpress.XtraRichEdit.API.Native.TabLeaderType.MiddleDots
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/PageLayoutActions.vb#L45
tab1.Position = 2.5F
tab1.Alignment = TabAlignmentType.Left
tab1.Leader = TabLeaderType.MiddleDots
word-document-api-examples/VB/CodeExamples/PageLayoutActions.vb#L85
tab1.Position = 2.5F
tab1.Alignment = DevExpress.XtraRichEdit.API.Native.TabAlignmentType.Left
tab1.Leader = DevExpress.XtraRichEdit.API.Native.TabLeaderType.MiddleDots
winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L75
Dim tbi As New TabInfo()
tbi.Alignment = TabAlignmentType.Center
tbi.Position = Units.InchesToDocumentsF(1.5F)
See Also