Export (0) Print
Expand All
Expand Minimize

ChartSheetBase.SideWall Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets an object that represents the side wall of a 3-D chart.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

public Walls SideWall { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Walls
A Microsoft.Office.Interop.Excel.Walls object that represents the side wall of a 3-D chart.

Use the SideWall property to format the side wall of a 3-D chart.

The following code example specifies the colors of the walls and floor of an existing 3-D chart sheet and sets the chart style to style 4. To run this code example, the workbook must contain a chart sheet called Chart1 of a 3-D type.

private void SetChartSheetDesign()
{
    // Add a new chart and populate source data
    Microsoft.Office.Tools.Excel.ChartSheet myChartSheet =
        Globals.Chart1.Base;

    myChartSheet.BackWall.Format.Fill.ForeColor.RGB =
        System.Drawing.Color.LightGray.ToArgb();
    myChartSheet.SideWall.Format.Fill.ForeColor.RGB =
        System.Drawing.Color.LightGray.ToArgb();
    myChartSheet.Floor.Format.Fill.ForeColor.RGB =
        System.Drawing.Color.Gray.ToArgb();

    myChartSheet.ChartStyle = 4;
}

Show:
© 2014 Microsoft