Table of contents
TOC
Collapse the table of content
Expand the table of content

Form.AfterLayout Event (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Occurs after all charts in the specfied PivotChart view have been laid out, but before they have been rendered.

Syntax

expression. AfterLayout( ** drawObject**, )

expression A variable that represents a Form object.

Parameters

NameRequired/OptionalData TypeDescription
drawObjectRequiredObjectA ChChartDraw object. Use the methods and properties of this object to draw objects on the chart.

Return Value

nothing

Remarks

During this event, you can reposition the ChTitle, ChLegend, ChChart, and ChAxis objects of each PivotChart view by changing their Left and Top properties. You can reposition the ChPlotArea object by changing its Left, Top, Right, and Bottom properties. These properties cannot be changed outside of this event.

Example

The following example demonstrates the syntax for a subroutine that traps the AfterLayout event.

Private Sub Form_AfterLayout(ByVal drawObject As Object) 
 MsgBox "The PivotChart view has been laid out." 
End Sub

See also

Concepts

Form Object

© 2017 Microsoft