Share via


Menu.CancelOnclickEvent property

Gets or sets a value that indicates whether the OnClick event is canceled after the menu OnClick event handle has been triggered.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property CancelOnclickEvent As Boolean
    Get
    Set
'Usage
Dim instance As Menu
Dim value As Boolean

value = instance.CancelOnclickEvent

instance.CancelOnclickEvent = value
public bool CancelOnclickEvent { get; set; }

Property value

Type: System.Boolean
true if the event is canceled; otherwise, false. The default is true.

See also

Reference

Menu class

Menu members

Microsoft.SharePoint.WebControls namespace