Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
60 lines (35 loc) · 1.35 KB

tabstop-leader-property-publisher.md

File metadata and controls

60 lines (35 loc) · 1.35 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
TabStop.Leader Property (Publisher)
vbapb10.chm5636101
vbapb10.chm5636101
publisher
Publisher.TabStop.Leader
a788bdc8-8ab3-fcd3-931a-a5b83db93991
06/08/2017

TabStop.Leader Property (Publisher)

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