Xceed Chart for WinForms v4.4 Documentation
XDepth Property
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > View Class : XDepth Property
The offset of the 3D objects along the X axis depending on their Z depth when the projection is ProjectionType.Orthogonal
Syntax
'Declaration
 
<DefaultValueAttribute()>
<DescriptionAttribute("The offset of the 3D objects along the X axis depending on their Z depth when the projection is ProjectionType.Orthogonal")>
<CategoryAttribute("General")>
Public Property XDepth As Single
'Usage
 
Dim instance As View
Dim value As Single
 
instance.XDepth = value
 
value = instance.XDepth
[DefaultValue()]
[Description("The offset of the 3D objects along the X axis depending on their Z depth when the projection is ProjectionType.Orthogonal")]
[Category("General")]
public float XDepth {get; set;}
Remarks
This property has effect only when the projection type is ProjectionType.Orthogonal. When you use the standard 2D projection the Z coordinate does not influence the projected coordinates, because the depth is not taken into account. To create a 2 and a half projection for example you'll need a projection that uses the Z coordinate to generate a positive or negative offset along the X and Y axis of the viewport depending on the Z depth of the object so that you can distingues object with different Z values. The default value of this property is 0.
Example
The following example creates a 2D Half Orthogonal projection:
Dim chartView As View = (CType(ChartControl.Charts(0), Chart)).View 
chartView.Projection = ProjectionType.Orthogonal
chartView.XDepth = 0.5f
chartView.YDepth = 0.5f
View chartView = ((NChart)NChartControl.Charts[0]).View;
chartView.Projection = ProjectionType.Orthogonal;
chartView.XDepth = 0.5f;
chartView.YDepth = 0.5f;
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

View Class
View Members