System.ComponentModel.Design.DesignerCommandSet.GetCommands Method

Returns a collection of command objects.

Syntax

public virtual ICollection GetCommands (string name)

Parameters

name
The type of collection to return, indicating either a System.ComponentModel.Design.DesignerActionListCollection or a System.ComponentModel.Design.DesignerVerbCollection.

Returns

A collection that contains the specified type—either System.ComponentModel.Design.DesignerActionList or System.ComponentModel.Design.DesignerVerb—of command objects. The base implementation always returns null.

Remarks

Although the base implementation always returns null, the overridden version supplied by the programmer should return a collection of command objects of the type described by name. The base implementation of the DesignerCommandSet.Verbs and DesignerCommandSet.ActionLists properties specify the following values and meanings for this parameter.

"ActionLists"

Return a collection of all the smart tags associated with the component.

"Verbs"

Return a collection of all the designer verbs associated with the component.

Requirements

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