FocusRect Property

       

Returns or sets a value that determines whether the MSHFlexGrid should draw a focus rectangle around the current cell.

Syntax

object.FocusRect [= value]

The FocusRect property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An integer or constant that specifies the focus rectangle style, as described in Settings.

Settings

The settings for value are:

Constant Value Description
flexFocusNone 0 There is no focus rectangle around the current cell.
flexFocusLight 1 There is a light focus rectangle around the current cell. This is the default.
flexFocusHeavy 2 There is a heavy focus rectangle around the current cell.

Remarks

If a focus rectangle is drawn, the current cell is painted in the background color, as in most spreadsheets and grids. Otherwise, the current cell is painted in the selection color, hence you can see which cell is selected without the focus rectangle.