Επεξεργασία

Κοινή χρήση μέσω


DesignerCommandSet.GetCommands(String) Method

Definition

Returns a collection of command objects.

public:
 virtual System::Collections::ICollection ^ GetCommands(System::String ^ name);
public virtual System.Collections.ICollection GetCommands (string name);
public virtual System.Collections.ICollection? GetCommands (string name);
abstract member GetCommands : string -> System.Collections.ICollection
override this.GetCommands : string -> System.Collections.ICollection
Public Overridable Function GetCommands (name As String) As ICollection

Parameters

name
String

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

Returns

A collection that contains the specified type - either DesignerActionList or 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 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.

Applies to

See also