Xceed Chart for WinForms v4.4 Documentation
DrawEvery Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > DataLabels Class : DrawEvery Property
Specifies between how many data points data labels should be rendered.
Syntax
'Declaration
 
<DescriptionAttribute("Specifies between how many data points data labels should be rendered..")>
<DefaultValueAttribute()>
<CategoryAttribute("General")>
Public Property DrawEvery As Integer
'Usage
 
Dim instance As DataLabels
Dim value As Integer
 
instance.DrawEvery = value
 
value = instance.DrawEvery
[Description("Specifies between how many data points data labels should be rendered..")]
[DefaultValue()]
[Category("General")]
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

Reference

DataLabels Class
DataLabels Members