Dundas Chart for Windows Forms
Crossing Property
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > Axis Class : Crossing Property


Gets or sets the location at which an axis is crossed by its associated axis.

Syntax

Visual Basic (Declaration)  
Public Overridable Property Crossing As Double
Visual Basic (Usage) Copy Code
Dim instance As Axis
Dim value As Double
 
instance.Crossing = value
 
value = instance.Crossing
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).

Remarks

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:

  1. "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.
  2. "Minimum", which means the axis' crossing value will be its minimum value. To set to "Minimum" at run-time use a Double.MinValue value.
  3. "Maximum", which means the axis crossing value will be its maximum value. To set to "Maximum" at run-time use a Double.MaxValue value.
  4. 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).

Requirements

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

See Also

© 2009 All Rights Reserved.