ChartSheet.DoughnutGroups (Método)

En un gráfico 2D de un objeto Microsoft.Office.Tools.Excel.ChartSheet, devuelve un objeto que representa un único grupo de gráficos de anillo (un objeto ChartGroup) o una colección de los grupos de gráficos de anillos (una colección ChartGroups).

Espacio de nombres:  Microsoft.Office.Tools.Excel
Ensamblados:   Microsoft.Office.Tools.Excel.v4.0.Utilities (en Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Excel (en Microsoft.Office.Tools.Excel.dll)

Sintaxis

'Declaración
Function DoughnutGroups ( _
    Index As Object _
) As Object
Object DoughnutGroups(
    Object Index
)

Parámetros

Valor devuelto

Tipo: System.Object

Comentarios

Parámetros opcionales

Para obtener información sobre parámetros opcionales, vea Parámetros opcionales en las soluciones de Office.

Ejemplos

El ejemplo de código siguiente utiliza el método DoughnutGroups para establecer el tamaño del diámetro interior del anillo del objeto Microsoft.Office.Tools.Excel.ChartSheet actual.

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

Seguridad de .NET Framework

Vea también

Referencia

ChartSheet Interfaz

Microsoft.Office.Tools.Excel (Espacio de nombres)