Table of contents
TOC
Collapse the table of content
Expand the table of content

TabStop.Leader Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Sets or returns a PbTabLeaderType constant that represents the leader character for a tab stop. Read/write.

Syntax

expression. Leader

_expression_A variable that represents a TabStop object.

Return Value

PbTabLeaderType

Remarks

The Leader property value can be one of the PbTabLeaderType constants declared in the Microsoft Publisher type library.

Example

This example changes the leader tab character of the selected paragraphs to dashes. This example assumes that the selected paragraph contains at least one tab stop.

Sub SetLeaderTab() 
 Selection.TextRange.ParagraphFormat _ 
 .Tabs(1).Leader = pbTabLeaderDashes 
End Sub

This example changes the leader tab character of the first paragraph in the specified text range to an underline. This example assumes that the specified paragraph contains at least one tab stop.

Sub SetNewTabLeader() 
 ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange.Paragraphs(1) _ 
 .ParagraphFormat.Tabs(1).Leader = pbTabLeaderLine 
End Sub
© 2018 Microsoft