TabStopsNum Method

Returns the number of tab stops in the specified text block.

Applies to: TextBlock object

Syntax

[[Let] countRet = ] object.TabStopsNum ()

The TabStopsNum method syntax has these parts:

Part Description
object Required. An expression that returns a TextBlock object.
countRet Optional. A Long type variable.

Remarks

If the text block doesn't contain any tab stops, the method returns 0.

Example

This example demonstrates using the TabStopsNum method. It assumes that the active page already contains the Shape with ID1, which has text, and probably one or more tab stops.

Dim s as Shape
s = thisDoc.ActivePage.ShapeByID(1)
' Display the number of tab stops. trace s.TextBlock.TabStopsNum()

 

See Also

AddTabStop method, RemoveTabStop method, TabStop method