PageWindow.OnBeforeViewChange Event

SharePoint Designer Developer Reference

Occurs before the view mode of the page window changes.

Syntax

Private Sub expression_OnBeforeViewChange(ByVal TargetView As PageViewMode, Cancel As Boolean)

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

Parameters

Name Required/Optional Data Type Description
TargetView Required PageViewMode Represents the new view type.
Cancel Required Boolean Determines whether the operation should be canceled. If True, the view is not changed.

See Also