Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / SeriesInteractivity Class / URLMode Property
Example


In This Topic
    URLMode Property
    In This Topic
    Controls the mode in which url links are assigned to the data points of the series.
    Syntax
    'Declaration
     
    <CategoryAttribute("URLs")>
    <DescriptionAttribute("Controls the urls mode.")>
    <DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property URLMode As SeriesURLMode
    'Usage
     
    Dim instance As SeriesInteractivity
    Dim value As SeriesURLMode
     
    instance.URLMode = value
     
    value = instance.URLMode
    [Category("URLs")]
    [Description("Controls the urls mode.")]
    [DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public SeriesURLMode URLMode {get; set;}
    Remarks
    By default set to Default.
    Example
    The following code creates a bar chart with three bars and assings custom URLs to them.
    Dim bar As BarSeries =  Chart.Series.Add(SeriesType.Bar) 
    bar.Add(12)
    bar.Add(23)
    bar.Add(18)
    bar.Interactivity.UrlMode = SeriesURLMode.DataPoints
    bar.Interactivity.URLs.Add("www.xceedsoft.com")
    bar.Interactivity.URLs.Add("www.microsoft.com")
    bar.Interactivity.URLs.Add("www.opengl.org")
    BarSeries bar = Chart.Series.Add(SeriesType.Bar);
    bar.Add(12);
    bar.Add(23);
    bar.Add(18);
    bar.Interactivity.UrlMode = SeriesURLMode.DataPoints;
    bar.Interactivity.URLs.Add("www.xceedsoft.com");
    bar.Interactivity.URLs.Add("www.microsoft.com");
    bar.Interactivity.URLs.Add("www.opengl.org");
    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