Proprietà ChartSheetBase.Bar3DGroup

Ottiene un oggetto ChartGroup che rappresenta il gruppo di grafici a barre in un oggetto Microsoft.Office.Tools.Excel.ChartSheetBase 3D.

Spazio dei nomi:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property Bar3DGroup As ChartGroup
    Get
public ChartGroup Bar3DGroup { get; }

Valore proprietà

Tipo: Microsoft.Office.Interop.Excel.ChartGroup
Oggetto ChartGroup che rappresenta il gruppo di grafici a barre in un oggetto Microsoft.Office.Tools.Excel.ChartSheetBase 3D.

Esempi

Nell'esempio di codice seguente l'oggetto Microsoft.Office.Tools.Excel.ChartSheetBase corrente viene impostato su un grafico a barre 3D. Viene quindi utilizzata la proprietà Bar3DGroup per visualizzare le linee di proiezione nel grafico.

Private Sub UseBar3DGroup()
    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.xl3DBarClustered
    Me.Bar3DGroup.HasDropLines = True
End Sub
private void UseBar3DGroup()
{
    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.xl3DBarClustered;

    this.Bar3DGroup.HasDropLines = true;
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ChartSheetBase Classe

Spazio dei nomi Microsoft.Office.Tools.Excel