Nevron .NET Vision
Nevron.Chart Namespace / NWatermark Class / InteractivityStyle Property
Example


In This Topic
    InteractivityStyle Property (NWatermark)
    In This Topic
    The interactivity style associated with the watermark.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Interactivity")>
    <System.ComponentModel.DescriptionAttribute("The interactivity style associated with the watermark.")>
    <System.ComponentModel.EditorAttribute(Nevron.Editors.NInteractivityStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)>
    Public Property InteractivityStyle As NInteractivityStyle
    'Usage
     
    
    Dim instance As NWatermark
    Dim value As NInteractivityStyle
     
    instance.InteractivityStyle = value
     
    value = instance.InteractivityStyle
    [System.ComponentModel.Category("Interactivity")]
    [System.ComponentModel.Description("The interactivity style associated with the watermark.")]
    [System.ComponentModel.Editor(Nevron.Editors.NInteractivityStyleTypeEditorNoAutomatic, System.Drawing.Design.UITypeEditor)]
    public NInteractivityStyle InteractivityStyle {get; set;}
    Remarks
    With the NInteractivityStyle object you can control the tooptips, mouse cursor change and browser redirection (HTML image maps only) associated with the watermark. For more information on the NInteractivityStyle object and the interactivity features take a look at the "Interactivity" book in the Users Guide.
    Example
    The following code changes the tooltip of a watermark:
    Dim watermark As NWatermark =  New NWatermark() 
    watermark.ImageFileName = "d:\windows\Coffee Bean.bmp"
    watermark.InteractivityStyle.Tooltip.Text = "Do you like coffee?"
    NChartControl.Watermarks.Add(watermark)
    NWatermark watermark = new NWatermark();
    watermark.ImageFileName = "d:\\windows\\Coffee Bean.bmp";
    watermark.Interactivity.Tooltip.Text = "Do you like coffee?";
    NChartControl.Watermarks.Add(watermark);
    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