NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Creating Designer Verbs

Verbs offer a way for a designer to add specific commands to a component at design time. For example, the Win Forms TabControl object adds two verbs: Add Tab and Remove Tab. Other controls can add other verbs.

Designer verbs are provided by the Verbs property in the IDesigner interface.

[C#]
public interface IDesigner {
    DesignerVerb[] Verbs {
        get {…}
//Other properties and methods
.....
    }
}

The Verbs property on IDesigner provides a way for the designer to add menu items to the context menu of its component. Visual Studio 7.0 adds these verbs as links to the surface of the property browser.

See Also

Base Designer Classes | Enabling Property Filtering | Win Forms Designer Sample