HeaderPane
Main
Hide
Share Link
Print

FocusItem Property, ListClass Class

Defines the item that is the focus object.

Class: ListClass
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Syntax

public ItemClass FocusItem { get; set; }
Public Property FocusItem As ItemClass

Value

The focus object or null/Nothing if there is no focus object.

The default value is null/Nothing.

Comments

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 ListClass.ShowFocusRectangle property. The size of the focus rectangle is consistent with the current selection style (ListClass.SelectionStyle).

The focus item is not necessarily also selected (ItemClass.Selected).

When the user changes the current item or cell, the FocusObjectChanged event occurs. The SelectionChanged event occurs when the selection changes.

The FocusItem and ListClass.FocusCell properties define the focus object and are identical to the ListClass.FocusObject property but accept an item (ItemClass) or a cell (CellClass) instead of the more generic object.

See Also ListClass Class | Classes | SftBox/NET 3.0