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


Gets or sets the position of a data view.


View position.

Syntax

Visual Basic (Declaration)  
Public Property Position As Double
Visual Basic (Usage) Copy Code
Dim instance As AxisDataView
Dim value As Double
 
instance.Position = value
 
value = instance.Position
C#  
public double Position {get; set;}

Return Value

Gets or sets a double that represents the minimum large scrolling size and view size. Defaults to Double.NaN (not set).

Remarks

This property represents the left position of horizontal views and the bottom position of vertical views (see figure below).
 


  Figure 1: Size and position of a data view.

The Position property can be used to determine what the position is of a view when the view is created as a result of end-user zooming. It can also be used to set the position of a view programmatically.

The position of a data view is always measured as an axis value.

The Size property is always used in conjunction with the Position property, and determines the size of a view.

Axis label intervals (as well as tick mark and grid intervals) are recalculated automatically when zooming occurs, and ignore any previous interval-related property settings. To control how labels are displayed use the Axis.LabelStyle property.

IMPORTANT: To fix the position of scrollbars the plotting area position of a chart area must not be set to "Auto". To explicitly set the plotting area position use the InnerPlotPosition property.

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.