title | keywords | f1_keywords | ms.prod | api_name | ms.assetid | ms.date | ||
---|---|---|---|---|---|---|---|---|
TabStop.Leader Property (Publisher) |
vbapb10.chm5636101 |
|
publisher |
|
a788bdc8-8ab3-fcd3-931a-a5b83db93991 |
06/08/2017 |
Sets or returns a PbTabLeaderType constant that represents the leader character for a tab stop. Read/write.
expression. Leader
_expression_A variable that represents a TabStop object.
PbTabLeaderType
The Leader property value can be one of the PbTabLeaderType constants declared in the Microsoft Publisher type library.
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