DesignerActionItem(String, String, String) 构造函数

定义

初始化 DesignerActionItem 类的新实例。Initializes a new instance of the DesignerActionItem class.

public:
 DesignerActionItem(System::String ^ displayName, System::String ^ category, System::String ^ description);
public DesignerActionItem (string displayName, string category, string description);
new System.ComponentModel.Design.DesignerActionItem : string * string * string -> System.ComponentModel.Design.DesignerActionItem
Public Sub New (displayName As String, category As String, description As String)

参数

displayName
String

此项的面板文本。The panel text for this item.

category
String

区分大小写的 String,它定义面板条目的分组。The case-sensitive String that defines the groupings of panel entries.

description
String

此项的补充文本,可能用在工具提示或状态栏中。Supplemental text for this item, potentially used in ToolTips or the status bar.

注解

由于 DesignerActionItem 是抽象类,因此 DesignerActionItem 构造函数仅用于从派生类调用。Because DesignerActionItem is an abstract class, the DesignerActionItem constructor is intended to be called from derived classes only.

有关如何 category 使用参数对面板上的项进行分组的详细信息,请参阅 GetSortedActionItems 方法。For more information about how the category parameter is used to group items on a panel, see the GetSortedActionItems method.

适用于

另请参阅