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!

StandardCommands Class

This class contains the standard set of commands that are available to most applications.

Object
   StandardCommands

[Visual Basic]
Public Class StandardCommands
[C#]
public class StandardCommands
[C++]
public __gc class StandardCommands
[JScript]
public class StandardCommands

Remarks

[To be supplied.]

Requirements

Namespace: System.ComponentModel.Design

Assembly: System.dll

Example [C#]

Question: I'm writing my own top-level designer, and I want to handle cut/copy/paste. How do I handle them?

Answer: Get IMenuCommandService and add a MenuCommand as follows:

[C#]

IMenuCommandService mcs = ...; mcs.AddCommand(new MenuCommand(StandardCommands.Copy, new EventHandler(this.OnMenuCopy));

See Also

StandardCommands Members | System.ComponentModel.Design Namespace | MenuCommand | CommandID