Tooltip settings
Gets the Cell's tooltip settings.

Namespace: Dapfor.Net.Ui
Assembly: 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 GridTooltips : IDisposable
Visual Basic
<TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")>
Public NotInheritable Class GridTooltips
	Implements IDisposable
Visual C++
[TypeConverterAttribute(L"Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")]
public ref class GridTooltips sealed : IDisposable
F#
[<SealedAttribute>]
[<TypeConverterAttribute("Dapfor.Net.Design.ExpandableConverter,Dapfor.Net.Design,Version=2.10.3.24917,Culture=neutral,PublicKeyToken=4427dced42249680")>]
type GridTooltips =  
    class
        interface IDisposable
    end

Field Value

Type:
The 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 imageCopy
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
}

Inheritance Hierarchy

System..::..Object
  Dapfor.Net.Ui..::..Grid..::..GridTooltips

See Also