DesignerCommandSet::GetCommands Method (String^)

 

Returns a collection of command objects.

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

public:
virtual ICollection^ GetCommands(
	String^ name
)

Parameters

name
Type: System::String^

The type of collection to return, indicating either a DesignerActionListCollection or a DesignerVerbCollection.

Return Value

Type: System.Collections::ICollection^

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

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 Verbs and ActionLists properties specify the following values and meanings for this parameter.

String

Meaning

"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.

.NET Framework
Available since 2.0
Return to top
Show: