Bar3DSeriesView.ShowFacet Property
Specifies whether the top facet should be visible for flat-top models of Bar 3D series.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
[TypeConverter(typeof(BooleanTypeConverter))]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
[XtraSerializableProperty]
public bool ShowFacet { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true to enable the top facet; otherwise, false. |
Remarks
The ShowFacet property comes into effect, when the Bar3DSeriesView.Model property is set to either Box or Cylinder.
ShowFacet = true | ShowFacet = false |
---|---|
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).
// 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;
See Also