OleMenuCommand.DynamicItemMatch(Int32) 方法

定义

允许动态项命令与列表中的后续项匹配。

public:
 virtual bool DynamicItemMatch(int cmdId);
public:
 virtual bool DynamicItemMatch(int cmdId);
 virtual bool DynamicItemMatch(int cmdId);
public virtual bool DynamicItemMatch (int cmdId);
abstract member DynamicItemMatch : int -> bool
override this.DynamicItemMatch : int -> bool
Public Overridable Function DynamicItemMatch (cmdId As Integer) As Boolean

参数

cmdId
Int32

命令 ID。

返回

Boolean

true 如果动态项找到匹配项,则为; 否则为 false

实现

注解

实现菜单时必须重写此方法。 有关详细信息,请参阅 动态添加菜单项

适用于