.netCHARTING v10.5 Documentation
Example 


dotnetCHARTING Namespace > Box Class : Position Property
Position Property (Box)
Gets or sets the position of this box. When using with Series.Box.Position, this property can take a Size or Rectangle object.
Syntax
'Declaration
 
Public Overridable Property Position As Object
'Usage
 
Dim instance As Box
Dim value As Object
 
instance.Position = value
 
value = instance.Position
public virtual object Position {get; set;}

Property Value

TitleBoxPosition, LegendBoxPosition enumeration, or System.Drawing.Point.
Example
Show 3 uses of the property.
'Title position
Chart.TitleBox.Position = TitleBoxPosition.FullWithLegend
'Legend box position
Chart.LegendBox.Position = LegendBoxPosition.Top
'Absolute legend position in pixels
Chart.LegendBox.Position = New Point(10,15)
//Title position
Chart.TitleBox.Position = TitleBoxPosition.FullWithLegend;
//Legend box position
Chart.LegendBox.Position = LegendBoxPosition.Top;
//Absolute legend position in pixels
Chart.LegendBox.Position = New Point(10,15);
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