Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
The color of the focus.
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: ColorThe 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 | |
---|---|
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); } |