System.Windows.Forms.Design.Behavior.Behavior.FindCommand Method

Intercepts commands.

Syntax

public virtual System.ComponentModel.Design.MenuCommand FindCommand (System.ComponentModel.Design.CommandID commandId)

Parameters

commandId
A System.ComponentModel.Design.CommandID object.

Returns

A System.ComponentModel.Design.MenuCommand. By default, Behavior.FindCommand(System.ComponentModel.Design.CommandID) returns null.

Remarks

The Behavior.FindCommand(System.ComponentModel.Design.CommandID) method is called from the System.Windows.Forms.Design.Behavior.BehaviorService. It provides an opportunity for the System.Windows.Forms.Design.Behavior.Behavior to return its own custom System.ComponentModel.Design.MenuCommand, thereby intercepting this message.

Requirements

Namespace: System.Windows.Forms.Design.Behavior
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0