Visual Basic: Windows Controls

Indentation Property

See Also    Example    Applies To

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

Syntax

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.

Remarks

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.