Share via


ChartSheet.BackWall, propriété

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

Espace de noms :  Microsoft.Office.Tools.Excel
Assembly :  Microsoft.Office.Tools.Excel (dans Microsoft.Office.Tools.Excel.dll)

Syntaxe

'Déclaration
ReadOnly Property BackWall As Walls
    Get
Walls BackWall { get; }

Valeur de propriété

Type : Microsoft.Office.Interop.Excel.Walls
Objet Microsoft.Office.Interop.Excel.Walls qui représente le mur arrière d'un graphique 3D.

Notes

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

Exemples

L'exemple de code suivant spécifie les couleurs des murs et sol d'une feuille de graphique 3D existante et définit le style de graphique à style 4. Pour exécuter cet exemple de code, le classeur doit contenir une feuille de graphique appelée Chart1 d'un type 3D.

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
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;
}

Sécurité .NET Framework

Voir aussi

Référence

ChartSheet Interface

Microsoft.Office.Tools.Excel, espace de noms