|
|
|
|
FocusItem Property, SftTree Class |
Defines the item that is the focus object.
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Public Property FocusItem As ItemClass |
C# |
public ItemClass FocusItem { get; set; } |
C++ |
public: property ItemClass^ FocusItem { |
Property Value
The focus object or null/Nothing if there is no focus object.
The default value is null/Nothing.
Comments
The FocusItem property defines the item that is the focus object.
The current item is the item that has the focus rectangle.
The focus rectangle is controlled using the ShowFocusRectangle property. The size of the focus rectangle is consistent with the current selection style (SelectionStyle).
The focus item is not necessarily also selected (ItemClass.Selected).
When the user changes the current item or cell, the FocusObjectChange event occurs. The SelectionChange event occurs when the selection changes.
The FocusItem and FocusCell properties define the focus object and are identical to the FocusObject property but accept an item (ItemClass) or a cell (CellClass) instead of the more generic object.