Xceed Chart for WinForms v4.4 Documentation
PositionAxis(StandardAxis,Double,Boolean) Method
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Axis Class > PositionAxis Method : PositionAxis(StandardAxis,Double,Boolean) Method
the synchronization axis
the value with which the position will be sycnhronized
specifies whether the axis position should be synchronized. If false the axisValue parameter is ignored.
Dynamically positions an axis relative to a value of another axis.
Syntax
'Declaration
 
Public Overloads Sub PositionAxis( _

   ByVal syncWithAxis As StandardAxis, _

   ByVal axisValue As Double, _

   ByVal synchronize As Boolean _

) 
'Usage
 
Dim instance As Axis

Dim syncWithAxis As StandardAxis

Dim axisValue As Double

Dim synchronize As Boolean

 

instance.PositionAxis(syncWithAxis, axisValue, synchronize)
public void PositionAxis( 

   StandardAxis syncWithAxis,

   double axisValue,

   bool synchronize

)

Parameters

syncWithAxis
the synchronization axis
axisValue
the value with which the position will be sycnhronized
synchronize
specifies whether the axis position should be synchronized. If false the axisValue parameter is ignored.
Remarks
By default none of the axesis synchronized with any of the other axes.

The vertical axes can be synchronized with the horizontal and depth axes (x and z coordinates).

The horizontal axes can be synchronized with the vertical and depth axes (y and z coordinates).

The depth axes can be synchronized with the horizontal and vertical axes (x and y coordinates).

Example
The following code crosses the PrimaryY and PrimaryX axis at the zero.
Chart.Axis(StandardAxis.PrimaryY).PositionAxis(StandardAxis.PrimaryX, 0, True)

Chart.Axis(StandardAxis.PrimaryX).PositionAxis(StandardAxis.PrimaryY, 0, True)
Chart.Axis(StandardAxis.PrimaryY).PositionAxis(StandardAxis.PrimaryX, 0, true);

Chart.Axis(StandardAxis.PrimaryX).PositionAxis(StandardAxis.PrimaryY, 0, true);
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

Reference

Axis Class
Axis Members
Overload List