.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

TabInfo Class

A tab stop.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.2.Core.dll

Declaration

[ComVisible(true)]
public class TabInfo
<ComVisible(True)>
Public Class TabInfo
[ComVisible(true)]
public class TabInfo
<ComVisible(True)>
Public Class TabInfo
[ComVisible(true)]
public class TabInfo
<ComVisible(True)>
Public Class TabInfo

Remarks

Use the ParagraphPropertiesWithTabs.BeginUpdateTabs method to get access to the collection of TabInfo objects for the current paragraph and specify their alignment type via the TabInfo.Alignment property.

Note

To specify default tab stop width, use the Document.DefaultTabWidth property.

Examples

This code snippet sets the document measurement Document.Unit to inches and specifies tab stops. Tab stops are set and updated for the current paragraph only (see the Paragraph.BeginUpdateTabs parameter).

document.Unit = DevExpress.Office.DocumentUnit.Inch;
TabInfoCollection tabs = document.Paragraphs[0].BeginUpdateTabs(true);
DevExpress.XtraRichEdit.API.Native.TabInfo tab1 = new DevExpress.XtraRichEdit.API.Native.TabInfo();
// Sets tab stop at 2.5 inch.
tab1.Position = 2.5f;
tab1.Alignment = TabAlignmentType.Left;
tab1.Leader = TabLeaderType.MiddleDots;
tabs.Add(tab1);
DevExpress.XtraRichEdit.API.Native.TabInfo tab2 = new DevExpress.XtraRichEdit.API.Native.TabInfo();
tab2.Position = 5.5f;
tab2.Alignment = TabAlignmentType.Decimal;
tab2.Leader = TabLeaderType.EqualSign;
tabs.Add(tab2);
document.Paragraphs[0].EndUpdateTabs(tabs);

Inheritance

Object
TabInfo
See Also