Share via


TabStops2.Add Method

Adds a new tab stop to the specified TabStops2 object.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function Add ( _
    Type As MsoTabStopType, _
    Position As Single _
) As TabStop2
'Usage
Dim instance As TabStops2
Dim Type As MsoTabStopType
Dim Position As Single
Dim returnValue As TabStop2

returnValue = instance.Add(Type, Position)
TabStop2 Add(
    MsoTabStopType Type,
    float Position
)

Parameters

  • Position
    Type: System.Single

    The horizontal position of the new tab stop relative to the left edge of the text frame. Numeric values are evaluated in points; strings are evaluated in the units specified and can be in any measurement unit supported by the Microsoft Office product.

Return Value

Type: Microsoft.Office.Core.TabStop2
TabStop2

Remarks

Examples of MsoTabStopType types include msoTabStopCenter, msoTabStopLeft, and msoTabStopRight.

See Also

Reference

TabStops2 Interface

TabStops2 Members

Microsoft.Office.Core Namespace