Nevron .NET Vision
Nevron.GraphicsCore Namespace / NTooltipAttribute Class / Text Property
Example


In This Topic
    Text Property (NTooltipAttribute)
    In This Topic
    The tooltip of the object when the mouse passes over it.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("The tooltip of the object when the mouse passes over it.")>
    Public Property Text As System.String
    'Usage
     
    
    Dim instance As NTooltipAttribute
    Dim value As System.String
     
    instance.Text = value
     
    value = instance.Text
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("The tooltip of the object when the mouse passes over it.")]
    public System.string Text {get; set;}
    Remarks
    For Windows Forms applications you must also add a NTooltipInteractivityOperation object to the InteractivityOperations collection of the control. For Web forms you must use a response type of HTML image map or HMTL postback in order for this property to take effect.
    Example
    The following code changes the tooltip of a label:
    NChartControl.InteractivityOperations.Add(New NTooltipInteractivityOperation())
                
    Dim label As NLabel =  NChartControl.Labels.AddHeader("Cursor hand") 
    label.Interactivity.Tooltip = "There is nothing special about tooltips"
    NChartControl.InteractivityOperations.Add(new NTooltipInteractivityOperation());
                
    NLabel label = NChartControl.Labels.AddHeader("Cursor hand");
    label.Interactivity.Tooltip = "There is nothing special about tooltips";
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also