New data view start position.
Visual Basic (Declaration) | |
---|---|
Public Property NewPosition As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public double NewPosition {get; set;} |
Return Value
An double that represents the position of a view along an axis (the bottom/left position of vertical/horizontal views, respectively).In this example we limit the view along the Y axis for a chart area named "Chart Area 1". We assume that the Y axis values are 1, 2, 3, etc., and the user isn't allowed to view any data that has a Y value that is greater than 15.
C# | Copy Code |
---|---|
using Dundas.Charting.WinControl; |
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WinControl |
This property is exposed in the AxisViewChanged and AxisViewChanging events of the root Chart object, and represents the new position of a view.
The NewPosition property can be set to a new value in the AxisViewChanging event, but cannot be set to a new value for the AxisViewChanged event since the view is already created.
NewPosition is always measured as an axis value.
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