Export (0) Print
Expand All

Axis.LineColor Property

Gets or sets the line color of an axis.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[TypeConverterAttribute(typeof(ColorConverter))]
public Color LineColor { get; set; }

Property Value

Type: System.Drawing.Color
A Color object that represents the line color used to draw the axis. The default is Black.

Use the LineColor property to specify the line color of an axis.

Note   If an axis is not enabled but an adjacent axis is using grid lines, one of those grid lines will be displayed in place of the axis that is not enabled. The same situation will occur if the Enabled property of an axis is set to Auto. In this case, the axis is not being used to plot data, and the grid line of an adjacent axis will be drawn instead.

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft