AfterLayout 事件

在指定的数据透视图视图中所有图表已排列好,但尚未提交时,该事件发生。

Private Sub Form_AfterLayout(ByVal drawObject As Object)

drawObject   A ChChartDraw object. Use the methods and properties of this object to draw objects on the chart.

说明

在该事件发生期间,可以通过更改每个数据透视图视图中 ChTitleChLegendChChartChAxis 对象的 LeftTop 属性,重新放置其位置。可以通过更改其 LeftTopRightBottom 属性,重新放置 ChPlotArea 对象。这些属性不能在该事件外更改。

示例

下面的示例显示了捕获 AfterLayout 事件的子例程的语法。

Private Sub Form_AfterLayout(ByVal drawObject As Object)

    MsgBox "The PivotChart view has been laid out."

End Sub