Gets or sets the location at which an axis is crossed by its associated axis.
Point where axis is crossed by another 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 an X-axis will determine which other Y-axis may cross it. Any combination of Primary and Secondary axes may be combined to use for this property. For example, the primary X-axis may be used with either the Primary or the Secondary Y-axes to set this property. Further, the Secondary X-axis may be used with either the Primary or the Secondary Y-axes to set this property.
For example, setting the Crossing property of the primary X-axis in combination with the primary Y-axis, determines where the primary Y-axis will cross the primary X-axis.
Four modes can be used for setting the crossing property of an axis:
- Auto: The 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. Use a Double.NaN value at run-time to set this to Auto.
- Minimum: The axis' crossing value will be its minimum value. Use a Double.MinValue value at run-time to set this to Minimum.
- Maximum: The axis crossing value will be its maximum value. Use a Double.MaxValue value at run-time to set this to Maximum.
- A specified Double value, between the relevant axis' Minimum and Maximum value. An exception is thrown if the crossing value is less then the Minimum value, or greater than Maximum value.
When a non-default crossing value is used, an axis' labels and tick marks may or may not follow the crossing axis. This depends on the MarksNextToAxis property setting, since by default labels and tick marks will move with the 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