AfterLayout 事件

此頁沒有內(nèi)容條目
內(nèi)容

在指定的數(shù)據(jù)透視圖視圖中所有圖表已排列好,但尚未提交時,該事件發(fā)生。

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.

說明

在該事件發(fā)生期間,可以通過更改每個數(shù)據(jù)透視圖視圖中 ChTitle、ChLegendChChartChAxis 對象的 LeftTop 屬性,重新放置其位置??梢酝ㄟ^更改其 Left、Top、RightBottom 屬性,重新放置 ChPlotArea 對象。這些屬性不能在該事件外更改。

示例

下面的示例顯示了捕獲 AfterLayout 事件的子例程的語法。

Private Sub Form_AfterLayout(ByVal drawObject As Object)

    MsgBox "The PivotChart view has been laid out."

End Sub