Gets or sets the color of the focused Row or Cell.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public Color Color { get; set; }
Visual Basic
Public Property Color As Color
	Get
	Set
Visual C++
public:
property Color Color {
	Color get ();
	void set (Color value);
}
F#
member Color : Color with get, set

Property Value

Type: Color
The color of the focus.

Remarks

The Grid supports the alpha channel for selected and focused rows and cells. This prevents from erasing the initial background color for that rows and cells. 255 - opaque, 0 - transparent.

Examples

How to set transparent focus
 Copy imageCopy
public void HowToSetSemiTransparentFocus(Grid grid)
{
    //Globally for new created grids:
    Preferences.Grid.FocusColor = Color.FromArgb(40, Color.Blue);

    //Or individually for the grid:
    grid.Focus.Color = Color.FromArgb(40, SystemColors.Highlight);
}

See Also