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


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Axis Class > PositionAxis Method : PositionAxis(Int32,Double,Boolean) Method
the synchronization axis (id)
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 Integer, _
   ByVal axisValue As Double, _
   ByVal synchronize As Boolean _
) 
'Usage
 
Dim instance As Axis
Dim syncWithAxis As Integer
Dim axisValue As Double
Dim synchronize As Boolean
 
instance.PositionAxis(syncWithAxis, axisValue, synchronize)
public void PositionAxis( 
   int syncWithAxis,
   double axisValue,
   bool synchronize
)

Parameters

syncWithAxis
the synchronization axis (id)
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 two custom axes (with sample ids 10 and 11)at the zero.
Chart.Axis(10).PositionAxis(11, 0, True)
Chart.Axis(11).PositionAxis(10, 0, True)
Chart.Axis(10).PositionAxis(11, 0, true);
Chart.Axis(11).PositionAxis(10, 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