Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Server.v4.4 Assembly / Xceed.Chart.Server Namespace / ChartServerControl Class / Labels Property
Example


Labels Property (ChartServerControl)
Retrieves the labels collection of the component
Syntax
'Declaration
 
<CategoryAttribute("Xceed Chart for ASP.NET")>
<DescriptionAttribute("Labels collection - contains the labels displayed in the control canvas")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<BinarySerializationPropertyAttribute()>
Public Property Labels As ChartLabelCollection
 
'Usage
 
Dim instance As ChartServerControl
Dim value As ChartLabelCollection
 
instance.Labels = value
 
value = instance.Labels
Remarks
Labels are texts always displayed by the control on top of all other scene elements. Each label is represented by a Nlabel object in the Labels collection of the control.
Example
The following code adds a new label
Dim label As Label =  ChartServerControl1.Labels.AddHeader("Chart header")
Label label = ChartServerControl1.Labels.AddHeader("Chart header");
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