ActiveReports 8
DisplayInLegend Property
See Also  Example
GrapeCity.ActiveReports.Chart.v8 Assembly > GrapeCity.ActiveReports.Chart Namespace > DataPoint Class : DisplayInLegend Property

Glossary Item Box

Gets or sets a value indicating whether to display the data point in the legend.

Syntax

Visual Basic (Declaration) 
Public Property DisplayInLegend As NullableBoolean
C# 
public NullableBoolean DisplayInLegend {get; set;}

Remarks

The DisplayInLegend property applies to both the Series and DataPoint objects. When set to Auto for a one figure chart (e.g., funnel, pyramid, or doughnut) the property equals False for the Series object and True for the DataPoint object. When set to Auto for all other chart types, the property equals True for the Series object and False for the DataPoints object.

Example

C#Copy Code
private void detail_Format(object sender, EventArgs e)    
{    
   this.chartControl1.Series[1].Points[3].DisplayInLegend = true;    
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Detail1.Format
   Me.ChartControl1.Series[1].Points[3].DisplayInLegend = True
End Sub

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