Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
The color of the focused Row.
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public Color FocusColor { get; set; } |
Visual Basic |
---|
Public Property FocusColor As Color Get Set |
Visual C++ |
---|
public: property Color FocusColor { Color get (); void set (Color value); } |
F# |
---|
member FocusColor : Color with get, set |
Property Value
Type: ColorThe color of the focused Row.
Remarks
The Grid supports alpha channel for selected or focused rows and cells.
This approach permits to show the initial background color for that rows and cells.
Examples
How to set transparent focus
Copy | |
---|---|
public void HowToSetSemiTransparentFocus(Grid grid) { //Globally for new created grids: Preferences.Grid.FocusColor = Color.FromArgb(40, Color.Blue); //Or individually for each grid: grid.Appearance.FocusColor = Color.FromArgb(40, SystemColors.Highlight); } |