ChartSheetBase.BackWall Propriété

Définition

Obtient un objet qui représente le mur arrière d'un graphique 3D.

public Microsoft.Office.Interop.Excel.Walls BackWall { get; }

Valeur de propriété

Walls

Objet Walls qui représente le mur arrière d'un graphique 3D.

Exemples

L’exemple de code suivant spécifie les couleurs des panneaux et du plancher d’une feuille de graphique 3D existante et définit le style de graphique sur style 4. Pour exécuter cet exemple de code, le classeur doit contenir une feuille Chart1 de graphique appelée de type 3D.

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;
}
Private Sub SetChartSheetDesign()
    ' Add a new chart and populate source data
    Dim myChartSheet As Microsoft.Office.Tools.Excel.ChartSheet = _
        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
End Sub

Remarques

Utilisez la BackWall propriété pour mettre en forme le mur arrière d’un graphique 3D.

S’applique à