Aracılığıyla paylaş


ChartSheet.DoughnutGroups Yöntem

2-B, Microsoft.Office.Tools.Excel.ChartSheet, tek bir halka grafik Grup ya da temsil eden bir nesne döndürür (bir ChartGroup nesnesi) veya halka grafik gruplar topluluğu (bir ChartGroups koleksiyonu).

Ad alanı:  Microsoft.Office.Tools.Excel
Derleme:  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
Function DoughnutGroups ( _
    Index As Object _
) As Object
Object DoughnutGroups(
    Object Index
)

Parametreler

Dönüş Değeri

Tür: System.Object

Notlar

İsteğe bağlı parametreler

İsteğe bağlı parametreler hakkında daha fazla bilgi için bkz: Office Çözümlerinde İsteğe Bağlı Parametreler.

Örnekler

Aşağıdaki kod örneğinde DoughnutGroups Halka delik boyutu geçerli yöntem Microsoft.Office.Tools.Excel.ChartSheet.

Private Sub UseDoughnutGroups()
    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.xlDoughnut

    Dim group As Excel.ChartGroup = _
        CType(Me.DoughnutGroups(1), Excel.ChartGroup)
    group.DoughnutHoleSize = 80
End Sub
private void UseDoughnutGroups()
{
    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.xlDoughnut;

    Excel.ChartGroup group =
        (Excel.ChartGroup)this.DoughnutGroups(1);
    group.DoughnutHoleSize = 80;
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ChartSheet Arabirim

Microsoft.Office.Tools.Excel Ad Alanı