TabStops.Add Method
Returns a TabStop object that represents a custom tab stop added to a document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Add ( _
Position As Single, _
ByRef Alignment As Object, _
ByRef Leader As Object _
) As TabStop
'Usage
Dim instance As TabStops
Dim Position As Single
Dim Alignment As Object
Dim Leader As Object
Dim returnValue As TabStop
returnValue = instance.Add(Position, Alignment, _
Leader)
TabStop Add(
float Position,
ref Object Alignment,
ref Object Leader
)
Parameters
- Position
Type: System.Single
Required Single. The position of the tab stop (in points) relative to the left margin.
- Alignment
Type: System.Object%
Optional Object. The alignment of the tab stop. Can be one of the following WdTabAlignment constants: wdAlignTabBar, wdAlignTabCenter, wdAlignTabDecimal, wdAlignTabLeft, wdAlignTabList, or wdAlignTabRight. If this argument is omitted, wdAlignTabLeft is used.
- Leader
Type: System.Object%
Optional Object. The type of leader for the tab stop. Can be one of the following WdTabLeader constants: wdTabLeaderDashes, wdTabLeaderDots, wdTabLeaderHeavy, wdTabLeaderLines, wdTabLeaderMiddleDot, or wdTabLeaderSpaces. If this argument is omitted, wdTabLeaderSpaces is used.
Return Value
Type: Microsoft.Office.Interop.Word.TabStop