This documentation is archived and is not being maintained.

Visual Basic: Windows Controls

Visual Studio 6.0

Indentation Property

See Also    Example    Applies To

Returns or sets the width of the indentation of objects in a control.


object.Indentation[ = number]

The Indentation property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number An numeric expression specifying the width that each object is indented.


For the ImageCombo control and ComboItem object, each indent is equal to 10 pixels.

If you change the Indentation property at run time, the TreeView is redrawn to reflect the new width. The property value cannot be negative.