ElementPosition.X Property

.NET Framework (current version)
 

Gets or sets the relative X-coordinate of the top-left corner of an applicable chart element.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

<BindableAttribute(True)>
<PersistenceModeAttribute(PersistenceMode.Attribute)>
Public Property X As Single

Property Value

Type: System.Single

A float value that represents the X-coordinate of the top-left corner of an applicable chart element.

The X property is always expressed in relative coordinates, and is either relative to a ChartArea object if plotted within a chart area, or relative to the entire chart image if plotted outside of a chart area element.

This property always uses relative coordinates; if you set a value outside the 0-100 pixel range, an exception will be thrown.

.NET Framework
Available since 4.0
Return to top
Show: