|
|
|
SftTreeItems.SelectionArea Property |
Defines the area where selection changes occur.
Syntax
VB.NET |
Area = object.SelectionArea As SftTreeSelectionAreaConstants |
||
VB |
Area = object.SelectionArea As SftTreeSelectionAreaConstants |
||
C#.NET |
SftTreeSelectionAreaConstants Area = object.SelectionArea; |
||
VC++ |
enum SftTreeSelectionAreaConstants Area = object->SelectionArea;
|
||
C |
HRESULT object->get_SelectionArea(enum SftTreeSelectionAreaConstants* Area); |
||
Delphi |
Area := object.SelectionArea : TOleEnum; |
||
VB.NET |
object.SelectionArea = Area As SftTreeSelectionAreaConstants |
||
VB |
object.SelectionArea = Area As SftTreeSelectionAreaConstants |
||
C#.NET |
SftTreeSelectionAreaConstants object.SelectionArea = Area; |
||
VC++ |
enum SftTreeSelectionAreaConstants object->SelectionArea = Area;
|
||
C |
HRESULT object->put_SelectionArea(enum SftTreeSelectionAreaConstants Area); |
||
Delphi |
object.SelectionArea := Area : TOleEnum; |
object
A SftTreeItems object.
Area
Defines the area where selection changes occur.
Area |
Value |
Description |
0 |
Clicking anywhere on an item (all cells, tree lines, row header, etc.) will change the selection. |
|
1 |
Clicking on any cell of an item will change the selection. |
|
2 |
Clicking on the cell in the first column will change the selection. |
|
3 |
Clicking on the cell text in the first column will change the selection. |
|
4 |
Clicking on the row header or any cell of an item will change the selection. |
|
5 |
Clicking on the row header or the cell in the first column will change the selection. |
|
6 |
Clicking on the row header or the cell text in the first column will change the selection. |
Comments
The SelectionArea property defines the area where selection changes occur.
The SelectionChange event occurs every time a selection change takes place.
By using the SelectionArea property, the application can specify which areas of an item can cause a selection change when clicked. If the defined area is clicked, the selection changes (Items.Selection). If an area of the item outside the defined area is clicked, only the current item (Items.Current) is changed. In addition, the Items.UpdateCurrentExpandCollapse defines whether the current item (Items.Current) is updated when the expand/collapse button is clicked.
When using a limited area, such as selSftTreeCellText1, which only changes selections when the cell text is clicked, it is preferable to visually indicate this using the selection style selectSftTreeCell1 (see Items.SelectStyle).
In a multiple selection tree control, the CONTROL key (in combination with directional keys) can be used to move the caret location without moving the current selection, unless the style selSftTreeAll is used, in which case the CONTROL key is ignored.
See Also SftTreeItems Object | Object Hierarchy