Xceed Chart for WinForms v4.4 Documentation
SetPredefinedProjection Method
Example 


Xceed.Chart.GraphicsCore.v4.4 Assembly > Xceed.Chart.GraphicsCore Namespace > ViewBase Class : SetPredefinedProjection Method
Sets a predefined projection to the camera.
Syntax
'Declaration
 
Public Sub SetPredefinedProjection( _

   ByVal predefinedProjection As PredefinedProjection _

) 
'Usage
 
Dim instance As ViewBase

Dim predefinedProjection As PredefinedProjection

 

instance.SetPredefinedProjection(predefinedProjection)
public void SetPredefinedProjection( 

   PredefinedProjection predefinedProjection

)

Parameters

predefinedProjection
Remarks
Sometimes modifying the properties of the View object can be a tedious job, especially when you have to switch from one projection type to another. This is why Xceed has created a set of 14 predefined projections which you can use in order to speed up your development. When you load a predefined projection the control will modify all the properties relevant to the projection type (Perspective or Orthogonal) so you do not need to worry about the previous values of the these properties.
Example
The following C# example changes the projection using the SetPredefinedProjection method:
Dim chartView As View = (CType(ChartControl.Charts(0), Chart)).View 

chartView.SetPredefinedProjection(PredefinedProjection.OrthogonalHorizontalLeft)
View chartView = ((NChart)NChartControl.Charts[0]).View;

chartView.SetPredefinedProjection(PredefinedProjection.OrthogonalHorizontalLeft);
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

ViewBase Class
ViewBase Members