Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / Legend Class / Interactivity Property
Example


In This Topic
    Interactivity Property (Legend)
    In This Topic
    Gives you access to the Interactivity object associated with the legend.
    Syntax
    'Declaration
     
    <CategoryAttribute("Attributes")>
    <DescriptionAttribute("Gives you access to the Interactivity object associated with the legend")>
    Public Property Interactivity As Interactivity
    'Usage
     
    Dim instance As Legend
    Dim value As Interactivity
     
    instance.Interactivity = value
     
    value = instance.Interactivity
    [Category("Attributes")]
    [Description("Gives you access to the Interactivity object associated with the legend")]
    public Interactivity Interactivity {get; set;}
    Remarks
    With the Interactivity object you can control the tooptips, mouse cursor change and browser redirection (HTML image maps only) associated with the legend. For more information on the Interactivity object and the interactivity features take a look at the "Interactivity" book in the Users Guide.
    Example
    The following code changes the tooltip of the legend:
    ChartControl.InteractivityOperations.Add(New TooltipInteractivityOperation())
    
    Dim legend As Legend = CType((NChartControl.Legends(0)), Legend)
    legend.Interactivity.Tooltip = "This is my legend"
    ChartControl.InteractivityOperations.Add(new TooltipInteractivityOperation());
    
    Legend legend = (Legend)(NChartControl.Legends[0]);
    legend.Interactivity.Tooltip = "This is my legend";
    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