Compartir por


Propiedad Chart.PlotArea (Project)

Obtiene un objeto Office.IMsoPlotArea que representa el área de trazado de un gráfico. IMsoPlotArea de solo lectura.

Sintaxis

expresión. PlotArea

expresión Una variable que representa un objeto Chart.

Ejemplo

En el ejemplo siguiente se establece el alto interior del área de trazado 30 puntos mayor de lo que se estableció anteriormente.

Sub SetChartPlotAreaHeight()
    Dim chartShape As Shape
    Dim reportName As String
    Dim insideHeight As Double
    
    reportName = "Simple scalar chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    insideHeight = chartShape.Chart.PlotArea.InsideHeight
    chartShape.Chart.PlotArea.InsideHeight = insideHeight + 30
End Sub

Valor de propiedad

IMSOPLOTAREA

Vea también

Objeto Chart

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.