Tab Cells and Row Types

Tab Cells and Row Types

The tab settings for a shape's text are accessible from a program by section, row, and cell index. In Microsoft® Visio®, you can display and change tab settings by clicking Text on the Format menu, and then clicking Tabs or by using the Tabs section in the ShapeSheet® window.

Section index

Row index

Cell index

visSectionTab

visRowTab + i

0 ... 180

The Tabs section contains a row for each set of tabs defined for the shape. Each row contains three cells for each tab stop defined in that row, up to 60 tab stops. Cells for the entire row are indexed starting with zero (0).

  • The number of tab stops in a row is stored in cell visTabStopCount.
  • The position of the jth tab stop (j>0) is stored in cell ((j-1)*3) + visTabPos.
  • The alignment of the jth tab stop is stored in cell ((j-1)*3) + visTabAlign.

Tab stop

Index

Description

 

0

Number of active tabs in the row

1

1

Position of the first tab

1

2

Alignment code for the first tab

1

3

Reserved

2

4

Position of the second tab

2

5

Alignment code for the second tab

2

6

Reserved

60

178

Position of the 60th tab

60

179

Alignment code for the 60th tab

60

180

Reserved

The number of tabs that can be set depends on the tab row type. You can change the row type by setting the Shape object's RowType property for the tab section and row to one of the row tag constants in the following table.

Constant

Description

visTagTab0

Zero tab stops

visTagTab2

Zero, one, or two tab stops

visTagTab10

Zero to 10 tab stops

visTagTab60

Zero to 60 tab stops