ComponentDesigner.Verbs Property


获取与设计器相关联的组件所支持的设计时谓词。Gets the design-time verbs supported by the component that is associated with the designer.

 virtual property System::ComponentModel::Design::DesignerVerbCollection ^ Verbs { System::ComponentModel::Design::DesignerVerbCollection ^ get(); };
public virtual System.ComponentModel.Design.DesignerVerbCollection Verbs { get; }
member this.Verbs : System.ComponentModel.Design.DesignerVerbCollection
Public Overridable ReadOnly Property Verbs As DesignerVerbCollection

Property Value


DesignerVerbCollection 对象的 DesignerVerb,在没有可用设计器谓词的情况下为 nullA DesignerVerbCollection of DesignerVerb objects, or null if no designer verbs are available. 此默认实现始终返回 nullThis default implementation always returns null.



如果组件没有设计时谓词,则此方法返回 nullThis method returns null if the component has no design-time verbs.

设计时环境通常会在快捷方式(右键单击)菜单中显示此方法返回的谓词。The design-time environment typically displays verbs returned by this method in a shortcut (right-click) menu. 当用户选择其中一个谓词时,将调用相应 DesignerVerbInvoke 方法。When a user selects one of the verbs, the Invoke method of the corresponding DesignerVerb is invoked.


设计时环境通常在组件的快捷菜单上提供 "属性" 命令。A design-time environment typically provides a Properties command on a component's shortcut menu. 因此,请不要将此类项包含在设计器指定的谓词的集合中。Therefore, do not include such an entry in the collection of designer-specified verbs.

Applies to

See also