officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tabinfo-8ac2f129.md
Gets or sets the position of the tab stop.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public float Position { get; set; }
Public Property Position As Single
| Type | Description |
|---|---|
| Single |
A number representing the distance from the left edge of the text area, measured in units specified by the Document.Unit property.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Position 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#L56
// Sets tab stop at 2.5 inch.
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/PageLayoutActions.cs#L56
// Sets tab stop at 2.5 inch
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
word-document-api-examples/CS/CodeExamples/PageLayoutActions.cs#L100
// Specify the tab stop settings.
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
winforms-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L80
tbi.Alignment = TabAlignmentType.Center;
tbi.Position = Units.InchesToDocumentsF(1.5f);
tbiColl.Add(tbi);
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/PageLayout.vb#L51
' Sets tab stop at 2.5 inch.
tab1.Position = 2.5F
tab1.Alignment = DevExpress.XtraRichEdit.API.Native.TabAlignmentType.Left
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/PageLayoutActions.vb#L44
' Sets tab stop at 2.5 inch
tab1.Position = 2.5F
tab1.Alignment = TabAlignmentType.Left
word-document-api-examples/VB/CodeExamples/PageLayoutActions.vb#L84
' Specify the tab stop settings.
tab1.Position = 2.5F
tab1.Alignment = DevExpress.XtraRichEdit.API.Native.TabAlignmentType.Left
winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L76
tbi.Alignment = TabAlignmentType.Center
tbi.Position = Units.InchesToDocumentsF(1.5F)
tbiColl.Add(tbi)
See Also