Partager via


ChartSheetBase.SurfaceGroup, propriété

Obtient un objet ChartGroup qui représente le groupe de graphiques en surface d'un Microsoft.Office.Tools.Excel.ChartSheetBase 3D.

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

Syntaxe

'Déclaration
Public ReadOnly Property SurfaceGroup As ChartGroup
    Get
public ChartGroup SurfaceGroup { get; }

Valeur de propriété

Type : Microsoft.Office.Interop.Excel.ChartGroup
Objet ChartGroup qui représente le groupe de graphiques en surface d'un Microsoft.Office.Tools.Excel.ChartSheetBase 3D.

Exemples

L'exemple de code suivant utilise la propriété SurfaceGroup pour activer l'ombrage 3D dans le Microsoft.Office.Tools.Excel.ChartSheetBase actuel.

Private Sub UseSurfaceGroup()
    Globals.Sheet1.Range("A1", "A5").Value2 = 22
    Globals.Sheet1.Range("B1", "B5").Value2 = 55

    Me.SetSourceData(Globals.Sheet1.Range("A1", "B5"), _
        Excel.XlRowCol.xlColumns)
    Me.ChartType = Excel.XlChartType.xlSurface
    Me.SurfaceGroup.Has3DShading = True
End Sub
private void UseSurfaceGroup()
{
    Globals.Sheet1.Range["A1", "A5"].Value2 = 22;
    Globals.Sheet1.Range["B1", "B5"].Value2 = 55;

    this.SetSourceData(Globals.Sheet1.Range["A1", "B5"],
        Excel.XlRowCol.xlColumns);
    this.ChartType = Excel.XlChartType.xlSurface;

    this.SurfaceGroup.Has3DShading = true;
}

Sécurité .NET Framework

Voir aussi

Référence

ChartSheetBase Classe

Microsoft.Office.Tools.Excel, espace de noms