.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

TabInfo.Leader Property

Gets or sets the tab leader style, i.e. the symbol used as a tab leader.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.1.Core.dll


public TabLeaderType Leader { get; set; }

Property Value

Type Description

A TabLeaderType enumeration member specifying tab leader style.


The Leader property specifies the character which shall be used to fill in the space created by a tab which ends at this tab stop. This character shall be repeated as required to completely fill the tab spacing generated by the tab character.

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;
DevExpress.XtraRichEdit.API.Native.TabInfo tab2 = new DevExpress.XtraRichEdit.API.Native.TabInfo();
tab2.Position = 5.5f;
tab2.Alignment = TabAlignmentType.Decimal;
tab2.Leader = TabLeaderType.EqualSign;
See Also