MenuItem class

Used to create and modify the behavior of items on a Web Part menu.

System.Object
  Microsoft.SharePoint.WebPartPages.MenuItem

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

No code example is currently available or this language may not be supported.

The following code example shows an overridden CreateWebPartMenu that includes two custom Boolean properties, ParentItemIsVisible and EnableItem1, that allow you to control when these menu items are visible and enabled. It also assumes that this method is part of a Web Part class that includes an event handler named EventHandlerForItem1.

No code example is currently available or this language may not be supported.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: