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)
Usage
Dim Position As Single
Dim Alignment As Object
Dim Leader As Object
Dim returnValue As TabStop
Dim tabStops1 As TabStops
returnValue = tabStops1.Add(Position, Alignment, Leader)
Syntax
Function Add( _
<InAttribute()> ByVal Position As Single, _
<InAttribute()> Optional ByRef Alignment As Object, _
<InAttribute()> Optional ByRef Leader As Object _
) As TabStop
TabStop Add(
[In] float Position,
[In, Optional] ref object Alignment,
[In, Optional] ref object Leader
);
public: TabStop^ Add(
Single Position,
&Object^ Alignment,
&Object^ Leader
);
public TabStop Add(
/*in*/float Position,
/*in*/System.Object Alignment,
/*in*/System.Object Leader
);
function Add(
Position : float,
Alignment : Object,
Leader : Object
) : TabStop;
Parameters
- Position
Required Single. The position of the tab stop (in points) relative to the left margin.
- Alignment
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
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
TabStops Interface
Microsoft.Office.Interop.Word Namespace