This property returns and sets the types of graphic, such as images, text, plus/minus, and lines, and text that appear for each Node object in a TreeView control.
object.Style [= number]
Constant |
Setting |
Description |
tvwTextOnly | 0 | Text only |
tvwPictureText | 1 | Image and text |
tvwPlusMinusText | 2 | Plus/minus and text |
tvwPicturePlusText | 3 | Plus/minus, image, and text |
tvwTreelinesText | 4 | Lines and text |
tvwTreelinesPictureText | 5 | Lines, image, and text |
tvwTreelinesPlusMinusText | 6 | Lines, plus/minus, and text |
tvwTreelinesPlusMinusPictureText | 7 (default) | Lines, plus/minus, image, and text |
If the Style property is set to a value that includes lines, the LineStyle property determines the appearance of the lines. If the Style property is set to a value that does not include lines, the LineStyle property will be ignored.
To display plus/minus characters on the root nodes, you must set the property LineStyle to 1 and Style to 6 or higher.