OleMenuCommand.MatchedCommandId 属性

定义

获取或设置命令 ID。

public:
 property int MatchedCommandId { int get(); void set(int value); };
public:
 property int MatchedCommandId { int get(); void set(int value); };
public int MatchedCommandId { get; set; }
member this.MatchedCommandId : int with get, set
Public Property MatchedCommandId As Integer

属性值

Int32

最近用于匹配此命令的命令 ID。

注解

当发生匹配并且可用于标识要调用的实际命令时,必须由子类设置命令 id。

适用于