Application.OnBeforeWebWindowViewChange Event

SharePoint Designer Developer Reference

Occurs before the Web site window view changes.

Syntax

Private Sub expression_OnBeforeWebWindowViewChange(ByVal pWebWindow As WebWindow, ByVal TargetView As WebViewModeEx, Cancel As Boolean)

expression   A variable that represents an Application object that has been declared by using the WithEvents option in a class module.

Parameters

Name Required/Optional Data Type Description
WebWindow Required WebWindow The window containing the Web site for which the view is changing.
TargetView Required WebViewMode The window view type to which the view is changing.
Cancel Required Boolean Cancels the event. If False, the event is not canceled. If True, the event is canceled.

See Also