|
|
|
SftTreeItems.SelectStyle Property |
Defines the display style of selected items when the tree control has the input focus.
Syntax
VB.NET |
Style = object.SelectStyle As SftTreeSelectStyleConstants |
||
VB |
Style = object.SelectStyle As SftTreeSelectStyleConstants |
||
C#.NET |
SftTreeSelectStyleConstants Style = object.SelectStyle; |
||
VC++ |
enum SftTreeSelectStyleConstants Style = object->SelectStyle;
|
||
C |
HRESULT object->get_SelectStyle(enum SftTreeSelectStyleConstants* Style); |
||
Delphi |
Style := object.SelectStyle : TOleEnum; |
||
VB.NET |
object.SelectStyle = Style As SftTreeSelectStyleConstants |
||
VB |
object.SelectStyle = Style As SftTreeSelectStyleConstants |
||
C#.NET |
SftTreeSelectStyleConstants object.SelectStyle = Style; |
||
VC++ |
enum SftTreeSelectStyleConstants object->SelectStyle = Style;
|
||
C |
HRESULT object->put_SelectStyle(enum SftTreeSelectStyleConstants Style); |
||
Delphi |
object.SelectStyle := Style : TOleEnum; |
object
A SftTreeItems object.
Style
Defines the display style of selected items when the tree control has the input focus.
Style |
Value |
Description |
0 |
The entire item is highlighted. A selected item is drawn using the colors specified using the color properties Items.SelectForeColor, Items.SelectBackColor, Column.SelectForeColor, Column.SelectBackColor, Cell.SelectForeColor and Cell.SelectBackColor. |
|
1 |
Only cells are highlighted. A selected item is drawn using the colors specified using the color properties Items.ForeColor, Items.BackColor, Column.SelectForeColor, Column.SelectBackColor, Cell.SelectForeColor and Cell.SelectBackColor. |
|
2 |
Only the first displayed cell is highlighted. The first displayed cell is drawn using the colors specified using the color properties Items.SelectForeColor, Items.SelectBackColor, Column.SelectForeColor, Column.SelectBackColor, Cell.SelectForeColor and Cell.SelectBackColor. The text's background color extends a few pixels around the text, not necessarily to the top and bottom of the cell. |
|
3 |
Highlights the entire current cell only. The current cell is always the cell in the first displayed column of the selected item(s). The current cell is drawn using the colors specified using the color properties Items.SelectForeColor, Items.SelectBackColor, Column.SelectForeColor, Column.SelectBackColor, Cell.SelectForeColor and Cell.SelectBackColor. |
|
4 |
Only the first displayed cell is highlighted. The first displayed cell is drawn using the colors specified using the color properties Items.SelectForeColor, Items.SelectBackColor, Column.SelectForeColor, Column.SelectBackColor, Cell.SelectForeColor and Cell.SelectBackColor. The text's background color extends to the top and bottom of the cell. |
Comments
The SelectStyle property defines the display style of selected items when the tree control has the input focus.
The Items.NoFocusStyle property is used to change the appearance of selected items in a tree control that does not have the input focus.
The Items.SelectStyle and Items.NoFocusStyle properties work in conjunction with the Items.OutlineStyle property to determine the exact appearance of selected items. The highlighted portion of an item is rendered using the outline style defined by the Items.OutlineStyle property.
The Items.SelectionArea property defines the area where selection changes occur.
See Also SftTreeItems Object | Object Hierarchy