Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / DataLabels Class / DrawEvery Property
Example


In This Topic
    DrawEvery Property
    In This Topic
    Specifies between how many data points data labels should be rendered.
    Syntax
    'Declaration
     
    <CategoryAttribute("General")>
    <DescriptionAttribute("Specifies between how many data points data labels should be rendered..")>
    <DefaultValueAttribute(1)>
    Public Property DrawEvery As Integer
    'Usage
     
    Dim instance As DataLabels
    Dim value As Integer
     
    instance.DrawEvery = value
     
    value = instance.DrawEvery
    [Category("General")]
    [Description("Specifies between how many data points data labels should be rendered..")]
    [DefaultValue(1)]
    public int DrawEvery {get; set;}
    Remarks
    By default set to 1. Valid when the mode is set to Every.
    Example
    The following code displays a label at each second data point.
    series.DataLabels.Mode = DataLabelsMode.Every
    series.DataLabels.DrawEvery = 2
    series.DataLabels.Mode = DataLabelsMode.Every;
    series.DataLabels.DrawEvery = 2;
    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