AxisMarker Class
Defines styles and positions used to mark a specified section or point on an axis.
Object Model
Syntax
'Declaration Public Class AxisMarker Inherits ScaleRange
'Usage Dim instance As AxisMarker
public class AxisMarker : ScaleRange
Remarks
Each marker displayed on the chart will also have a LegendEntry in the Chart.LegendBox.
There are two ways to use AxisMarkers.
There are two ways to use AxisMarkers.
- Attach to axis
An AxisMarker can be added to the Axis.Markers collection of any axis. In this case, a numeric, time, or text: value or range must be specified.
When Value is specified, ValueLow and ValueHigh are both set to this value. When ValueLow and ValueHigh are equivalent, this AxisMarker is represented by the Line object, otherwise, Background fills the range between ValueLow and ValueHigh. - Attach to element
An AxisMarker is instantiated and passed to the Element.AxisMarker property of any element. In such a case, the axis marker is drawn on the Axis where the element's name is displayed.
See sample 'AxisMarkerAdvanced.aspx' in the download.
Example
Inheritance Hierarchy
System.Object
dotnetCHARTING.ScaleRange
dotnetCHARTING.AxisMarker
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