AllowRenderEvents Property

Set this property to True to enable the BeforeRender, AfterRender, and AfterFinalRender events. The default value is False. Read/write Boolean.

expression.AllowRenderEvents

*expression   * Required. An expression that returns a ChartSpace object.

Example

This example enables all events for ChartSpace1.

Sub Window_Onload()

    ' Allow the AfterLayout event to fire.
    ChartSpace1.AllowLayoutEvents = True

    ' Allow BeforeRender and AfterRender events
    ' to fire as each data point is rendered.
    ChartSpace1.AllowPointRenderEvents = True

    ' Allow BeforeRender and AfterRender events
    ' to fire as each chart element is rendered.
    ' The AfterFinalRender event will fire after
    ' all chart elements have been rendered.
    ChartSpace1.AllowRenderEvents = True

    ' Allow the BeforeScreenTip event to fire.
    ChartSpace1.AllowScreenTipEvents = True

End Sub

Applies to | ChartSpace Object

See Also | AfterFinalRender Event | AfterRender Event | AllowPointRenderEvents Property | BeforeRender Event