TreeStyleConstants

Composite visual style of a TreeView, encoding a 3-bit combination of which elements appear: plus-minus buttons, treelines, and picture icons. The labels are always shown.

Used by TreeView.Style. Default: tvwTreelinesPlusMinusPictureText.

The composite decoding:

Style Buttons Lines Icons Labels
tvwTextOnly — — — yes
tvwPictureText — — yes yes
tvwPlusMinusText yes — — yes
tvwPlusMinusPictureText yes — yes yes
tvwTreelinesText — yes — yes
tvwTreelinesPictureText — yes yes yes
tvwTreelinesPlusMinusText yes yes — yes
tvwTreelinesPlusMinusPictureText yes yes yes yes
Eight TreeViews of the same nodes, one in each Style: the four tvwTreelines styles draw dotted lines between the nodes, the four PlusMinus styles draw a button beside each node that has children, and all eight draw the nodes' pictures

Note BETA 1045

A TreeView with an ImageList draws its nodes’ pictures in every Style: the four styles without Picture in their name show them too, as the picture shows, and the nodes’ text starts after them.

The enum’s underlying values are 0–7, matching the order in the table.

Member Value
tvwTextOnly 0
tvwPictureText 1
tvwPlusMinusText 2
tvwPlusMinusPictureText 3
tvwTreelinesText 4
tvwTreelinesPictureText 5
tvwTreelinesPlusMinusText 6
tvwTreelinesPlusMinusPictureText 7

See Also