Visual Basic: Windows Controls

LineStyle Property (TreeView Control)

See Also    Example    Applies To

Returns or sets the style of lines displayed between Node objects.

Syntax

object.LineStyle [ = number]

The LineStyle property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number A value or constant that specifies the line style as shown in Settings.

Settings

The settings for number are:

Constant Value Description
tvwTreeLines 0 (Default) Tree lines. Displays lines between Node siblings and their parent Node.
tvwRootLines 1 Root Lines. In addition to displaying lines between Node siblings and their parent Node, also displays lines between the root nodes.

Remarks

You must set the Style property to a style that includes tree lines.