Gets tooltip settings.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public Grid..::..GridTooltips Tooltips { get; } |
Visual Basic |
---|
Public ReadOnly Property Tooltips As Grid..::..GridTooltips Get |
Visual C++ |
---|
public: property Grid..::..GridTooltips^ Tooltips { Grid..::..GridTooltips^ get (); } |
F# |
---|
member Tooltips : Grid..::..GridTooltips with get |
Property Value
Type: Grid..::..GridTooltipsThe tooltips.
Remarks
Displaying auxiliary information above a grid cell is a typical task. In the .Net Grid this process is considerably simplified.
To display a tooltip is is sufficient to set text calling Cell.TooltipMessage = "some text". Color management,
display time and tooltip location can be set with Grid.Tooltips property. The programmer can control tooltips via .Net Grid notifications.
Copy | |
---|---|
public void ShowTooltip(Grid grid) { grid.Tooltips.TooltipEnabled = true; // enable tooltips grid.Rows[4][4].TooltipMessage = "My Custom Message"; // setting tooltip for a specific cell grid.Tooltips.TooltipDuration = TimeSpan.FromSeconds(3); // hiding tooltip after 3 seconds grid.Tooltips.IsBalloon = true; // balloon-like tooltip style grid.Tooltips.CellFrameColor = Color.Orange; // color of the cell's frame } |