Back to Devexpress

TabInfo.Position Property

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

latest4.7 KB
Original Source

TabInfo.Position Property

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

Declaration

csharp
public float Position { get; set; }
vb
Public Property Position As Single

Property Value

TypeDescription
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

csharp
// 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

csharp
// Sets tab stop at 2.5 inch
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;

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

csharp
// 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

csharp
tbi.Alignment = TabAlignmentType.Center;
tbi.Position = Units.InchesToDocumentsF(1.5f);
tbiColl.Add(tbi);

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

vb
' 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

vb
' Sets tab stop at 2.5 inch
tab1.Position = 2.5F
tab1.Alignment = TabAlignmentType.Left

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

vb
' 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

vb
tbi.Alignment = TabAlignmentType.Center
tbi.Position = Units.InchesToDocumentsF(1.5F)
tbiColl.Add(tbi)

See Also

BeginUpdateTabs(Boolean)

TabInfo Class

TabInfo Members

DevExpress.XtraRichEdit.API.Native Namespace