MenuCommandService.Verbs Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a collection of the designer verbs that are currently available.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public virtual DesignerVerbCollection Verbs { get; }

Property Value

Type: System.ComponentModel.Design.DesignerVerbCollection

A DesignerVerbCollection of the designer verbs that are currently available.

The Verbs property provides a collection of verbs. These verbs come from two places:

  • Verbs added through the AddVerb method of Verbs.

  • Verbs offered by the currently selected designer.

Verbs added to this service through the AddVerb method are called global verbs because they are global to this service, but generally there is one instance of this service for each tool or document window. Designer verbs are obtained by querying the service provider for IDesignerHost and ISelectionService. If the selection service offers a primary selection, and a designer can be obtained for that selection from IDesignerHost, the designer’s verbs are added to this list. If the name of a global verb conflicts with the name of a designer verb, the designer-provided designer verb takes precedence.

.NET Framework
Available since 2.0
Return to top