Share via


IndentSize Property

Home Page (Objects)OverviewFAQReference

Applies to: TextDocument object

Gets or sets the number of columns in one indent.

Syntax

object**.IndentSize** [=value]

Parameters

object

An expression that evaluates to a TextDocument object.

value

A Long that sets the value of the IndentSize property.

Remarks

The IndentSize property has the Long type.

When you press TAB, you create an indent equal to the size specified by the IndentSize property. Within that indent are tabs equal to the size specified by the TabSize property.

If the indent size is not a multiple of the tab size, each indent consists of space characters as well as tab characters. For example, if the indent size is seven and the tab size is three, pressing TAB at an indent location inserts two tab characters (each three spaces wide) and one space character (one space wide).

Example

The following example sets the indent size to five columns in the active document:

ActiveDocument.IndentSize = 5

See Also   Tabify method, Untabify method.