Xceed Chart for WinForms v4.4 Documentation
AxisStyle Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Axis Class : AxisStyle Property
Controls the shape of the axis.
Syntax
'Declaration
 
<CategoryAttribute("General")>
<DescriptionAttribute("Controls the shape of the axis")>
<DefaultValueAttribute()>
Public Property AxisStyle As AxisStyle
'Usage
 
Dim instance As Axis
Dim value As AxisStyle
 
instance.AxisStyle = value
 
value = instance.AxisStyle
[Category("General")]
[Description("Controls the shape of the axis")]
[DefaultValue()]
public AxisStyle AxisStyle {get; set;}
Remarks

When set to Line the axis is displayed as a simple line. The properties of the line are controlled by the LineProperties object accessible by the Border property.

When set to Tape or Tube the axis is filled with the fill effect accessible from the FillEffect property. The Border property in this case specifies the border of the axis.

Example
The following code renders the PrimaryY axis as red tube and removes the circle borders which are displayed on its top and bottom.
Dim axis As Axis =  Chart.Axis(StandardAxis.PrimaryY) 
axis.AxisStyle = AxisStyle.Tube
axis.FillEffect.SetSolidColor(Color.Red)
axis.Border.Width = 0
Axis axis = Chart.Axis(StandardAxis.PrimaryY);
axis.AxisStyle = AxisStyle.Tube;
axis.FillEffect.SetSolidColor(Color.Red);
axis.Border.Width = 0;
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

Reference

Axis Class
Axis Members