dotnetCHARTING Send comments on this topic.
Element Property
See Also  Example
dotnetCHARTING Namespace > Series Class : Element Property


Gets or sets an Element object which facilitates a shortcut for adding elements to the chart.

Syntax

Visual Basic (Declaration) 
Public Property Element As Element
Visual Basic (Usage)Copy Code
Dim instance As Series
Dim value As Element
 
instance.Element = value
 
value = instance.Element
C# 
public Element Element {get; set;}

Example

Add a single element to the chart collection.
C#Copy Code
Chart.Series.Element.YValue = 10;
Chart.Series.Element.Name = "Element 1";
Chart.Series.Elements.Add();
Chart.SeriesCollection.Add();
    
Visual BasicCopy Code
Chart.Series.Element.YValue = 10
Chart.Series.Element.Name = "Element 1"
Chart.Series.Elements.Add()
Chart.SeriesCollection.Add()

See Also

© 2021 All Rights Reserved.