dotnetCHARTING Send comments on this topic.
DefaultElement Property
See Also  Example
dotnetCHARTING Namespace > ChartArea Class : DefaultElement Property


Gets or sets an Element object whose properties will trickle to all other elements on the chart unless otherwise specified. This is a shortcut to the DefaultSeries.DefaultElement property.

Syntax

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

Example

C# Copy Code
myChartArea.DefaultElement.SmartLabel.Text = "%Name";
    
Visual Basic Copy Code
myChartArea.DefaultElement.SmartLabel.Text = "%Name"

See Also