dotnetCHARTING Send comments on this topic.
DefaultAxis Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : DefaultAxis Property


Gets or sets an Axis object whose properties will trickle down to all other axes on the chart unless otherwise specified.

Syntax

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

Example

C#Copy Code
Axis AxisObj = new Axis();
AxisObj.Line.Color = Color.Yellow;    
AxisObj.Line.Width = 3;
Chart.DefaultAxis = AxisObj;
    
Visual BasicCopy Code
Dim AxisObj As Axis = new Axis()
AxisObj.Line.Color = Color.Yellow
AxisObj.Line.Width = 3
Chart.DefaultAxis = AxisObj

See Also

© 2011 All Rights Reserved.