Skip to main content
A newer version of this page is available. .
.NET Standard 2.0+

ParagraphPropertiesWithTabs.BeginUpdateTabs(Boolean) Method

Starts modifying tab stops in a paragraph.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

TabInfoCollection BeginUpdateTabs(
    bool onlyOwnTabs
)

Parameters

Name Type Description
onlyOwnTabs Boolean

true to get tab stops set for the current paragraph only, disregarding style; otherwise, if set to false, merges tab stops which are set for the paragraph style and for the individual paragraph.

Returns

Type Description
TabInfoCollection

A TabInfoCollection object containing information about tab stops.

Remarks

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
Dim tabs As TabInfoCollection = document.Paragraphs(0).BeginUpdateTabs(True)
Dim tab1 As 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)
Dim tab2 As 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)

The following code snippets (auto-collected from DevExpress Examples) contain references to the BeginUpdateTabs(Boolean) method.

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.

See Also