Back to Devexpress

Bar3DSeriesView.Model Property

corelibraries-devexpress-dot-xtracharts-dot-bar3dseriesview-aae263de.md

latest3.5 KB
Original Source

Bar3DSeriesView.Model Property

Specifies the 3D model used to draw series points of a Bar 3D series.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Bar3DModel Model { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Model As Bar3DModel

Property Value

TypeDescription
Bar3DModel

The Bar3DModel enumeration value, which specifies the series model.

|

Available values:

NameDescription
Box

Represents the Box 3D model.

| | Cylinder |

Represents the Cylinder 3D model.

| | Cone |

Represents the Cone 3D model.

| | Pyramid |

Represents the Pyramid 3D model.

|

Remarks

Use the Model property, to choose a model for representation of 3D Bar series.

Model = BoxModel = Cylinder
Model = ConeModel = Pyramid

For flat-top models ( Box and Cylinder ), you can also specify whether the top facet should be visible, via the Bar3DSeriesView.ShowFacet property.

Example

This example demonstrates how to customize the Bar3DSeriesView.Model property of a Bar 3D series. Note that for flat-top models ( Box and Cylinder ), you can also choose whether to display the top-facet (via the Bar3DSeriesView.ShowFacet property).

csharp
// Create a Bar 3D series, 
// and add it to your chart's collection.
Series series1 = new Series("Series 1", ViewType.Bar3D);
BarChart3D.Series.Add(series1);

// Cast the view type of a series to the Bar 3D view type.
Bar3DSeriesView myView = (Bar3DSeriesView)series1.View;

// Access the Model property, and enable the top-facet.
myView.Model = Bar3DModel.Cylinder;
myView.ShowFacet = false;
vb
' Create a Bar 3D series, 
' and add it to your chart's collection.
Dim Series1 As New Series("Series 1", ViewType.Bar3D)
BarChart3D.Series.Add(Series1)

' Cast the view type of a series to the Bar 3D view type.
Dim MyView As Bar3DSeriesView = CType(Series1.View, Bar3DSeriesView)

' Access the Model property, and enable the top-facet.
MyView.Model = Bar3DModel.Cylinder
MyView.ShowFacet = False

See Also

ShowFacet

Bar3DSeriesView Class

Bar3DSeriesView Members

DevExpress.XtraCharts Namespace