Version

AddTab Method

Adds a tab to the collection.
Syntax
'Declaration
 
Public Sub AddTab( _
   ByVal position As Extent, _
   Optional ByVal alignment As TabStopAlignment, _
   Optional ByVal leader As TabStopLeader _
) 
public void AddTab( 
   Extent position,
   TabStopAlignment alignment,
   TabStopLeader leader
)

Parameters

position
The position of the tab.
alignment
The alignment of text with respect to the tab's position
leader
The character that leads the tab stop.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionif collection is read only.
Remarks

Note: all tab stops in the collection are ordered via their ascending positions. When a new tab stop is added it is automatically slotted appropriately. If another tab stop was already at that position, the old tab stop is replaced by the one that was added. Therefore, there can never be 2 tab stops with the same position in the collection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also