ChartSheet.PieGroups Yöntem

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

Ad alanı:  Microsoft.Office.Tools.Excel
Derlemeler:   Microsoft.Office.Tools.Excel.v4.0.Utilities (Microsoft.Office.Tools.Excel.v4.0.Utilities.dll içinde)
  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
Function PieGroups ( _
    Index As Object _
) As Object
Object PieGroups(
    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 edinmek için bkz. Office Çözümlerinde İsteğe Bağlı Parametreler.

Örnekler

Aşağıdaki kod örneğinde PieGroups yöntemi geçerli limanın ilk dilim açısını ayarlamak için Microsoft.Office.Tools.Excel.ChartSheet başlar.

Private Sub UsePieGroups()
    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.xlPie

    Dim group As Excel.ChartGroup = _
        CType(Me.PieGroups(1), Excel.ChartGroup)
    group.FirstSliceAngle = 90
End Sub
private void UsePieGroups()
{
    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.xlPie;

    Excel.ChartGroup group =
        (Excel.ChartGroup)this.PieGroups(1);
    group.FirstSliceAngle = 90;
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ChartSheet Arabirim

Microsoft.Office.Tools.Excel Ad Alanı