Focus settings. Specifies focus mode, color, painting mode, etc...
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
[TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")]
public sealed class GridFocus |
Visual Basic |
---|
<TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")>
Public NotInheritable Class GridFocus |
Visual C++ |
---|
[TypeConverterAttribute(L"Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")]
public ref class GridFocus sealed |
F# |
---|
[<SealedAttribute>]
[<TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")>]
type GridFocus = class end |
Examples
| Copy |
---|
public void FocusExample(Grid grid)
{
grid.FocusSettings.Color = Color.FromArgb(30, 128, 0, 30);
grid.FocusedRowChanged += delegate(object sender, FocusedRowEventArgs e)
{
Console.WriteLine("Previous focused row: {0}", e.PrevFocusedRow != null ? e.PrevFocusedRow.VisibleIndex.ToString() : "not specified");
Console.WriteLine("New focused row: {0}", e.NewFocusedRow != null ? e.NewFocusedRow.VisibleIndex.ToString() : "not specified");
};
grid.Rows.Add(new Product());
grid.Rows.Add(new Product());
grid.Rows[1].Focused = true;
Console.WriteLine("Focused row visible index: {0}", grid.FocusedRow.VisibleIndex);
grid.FocusedRow = null;
grid.FocusSettings.Clear();
}
Previous focused row: not specified
New focused row: 1
Focused row visible index: 1
Previous focused row: 1
New focused row: not specified |
Inheritance Hierarchy
See Also