Gets or sets the location at which an axis is crossed by its associated axis.
Visual Basic (Declaration) | |
---|---|
Public Overridable Property Crossing As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual double Crossing {get; set;} |
Return Value
A double object that determines where an axis is crossed by its associated axis. Defaults to "Auto" (Double.Nan value).
Setting this property for a primary axis will determine where the other primary axis crosses it, and similarly setting it for a secondary axis will determine where the other secondary axis crosses it. For example, setting the Crossing property of the primary X-axis determines where the primary Y-axis will cross it.
Four modes can be used for the crossing property of an axis:
- "Auto", which means that crossing value will be set to the relevant axis' minimum or maximum value. If the axis is primary it will be its minimum value, if the axis is secondary it will its maximum value. To set to "Auto" at run-time use a Double.Nan value.
- "Minimum", which means the axis' crossing value will be its minimum value. To set to "Minimum" at run-time use a Double.MinValue value.
- "Maximum", which means the axis crossing value will be its maximum value. To set to "Maximum" at run-time use a Double.MaxValue value.
- A specified Double value, between the relevant axis' minimum and maximum value. If the crossing value is less then minimum value or the crossing value is greater than maximum value an exception will be thrown.
When a non-default crossing value is used an axis' labels and tick marks by default may or may not follow the crossing axis, depending on the MarksNextToAxis property setting (by default they will move with crossing axis).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family