Back to Devexpress

TabInfo.Alignment Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tabinfo.md

latest5.3 KB
Original Source

TabInfo.Alignment Property

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

Declaration

csharp
public TabAlignmentType Alignment { get; set; }
vb
Public Property Alignment As TabAlignmentType

Property Value

TypeDescription
TabAlignmentType

A TabAlignmentType enumeration member.

|

Available values:

NameDescription
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

csharp
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
tab1.Leader = TabLeaderType.MiddleDots;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/PageLayoutActions.cs#L57

csharp
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
tab1.Leader = TabLeaderType.MiddleDots;

word-document-api-examples/CS/CodeExamples/PageLayoutActions.cs#L101

csharp
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
tab1.Leader = TabLeaderType.MiddleDots;

winforms-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L79

csharp
TabInfo tbi = new TabInfo();
tbi.Alignment = TabAlignmentType.Center;
tbi.Position = Units.InchesToDocumentsF(1.5f);

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/PageLayout.vb#L52

vb
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

vb
tab1.Position = 2.5F
tab1.Alignment = TabAlignmentType.Left
tab1.Leader = TabLeaderType.MiddleDots

word-document-api-examples/VB/CodeExamples/PageLayoutActions.vb#L85

vb
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

vb
Dim tbi As New TabInfo()
tbi.Alignment = TabAlignmentType.Center
tbi.Position = Units.InchesToDocumentsF(1.5F)

See Also

BeginUpdateTabs(Boolean)

TabInfo Class

TabInfo Members

DevExpress.XtraRichEdit.API.Native Namespace