Xceed Chart for WinForms v4.4 Documentation
Orientation Property
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > ChartText Class : Orientation Property
Controls the orientation of the 2D texts in degrees.
Syntax
'Declaration
 
<CategoryAttribute("Position")>
<DescriptionAttribute("Controls the orientation of the texts in degrees.")>
Public Property Orientation As Single
'Usage
 
Dim instance As ChartText
Dim value As Single
 
instance.Orientation = value
 
value = instance.Orientation
[Category("Position")]
[Description("Controls the orientation of the texts in degrees.")]
public float Orientation {get; set;}
Remarks
The default value is 0. The rotation is counter clockwise.
Example
The example below creates a vertical label
Dim label As ChartLabel =  New ChartLabel() 
label.Text = "Rotated label"
label.Text.Orientation = 90
ChartControl.Labels.Add(label)
ChartLabel label = new ChartLabel();
label.Text = "Rotated label";
label.Text.Orientation = 90;
ChartControl.Labels.Add(label);
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

ChartText Class
ChartText Members