共用方式為


IOleMenuCommand.DynamicItemMatch(Int32) Method

Definition

Allows a dynamic item command to match the subsequent items in its list.

public:
 bool DynamicItemMatch(int cmdId);
public:
 bool DynamicItemMatch(int cmdId);
bool DynamicItemMatch(int cmdId);
public bool DynamicItemMatch (int cmdId);
abstract member DynamicItemMatch : int -> bool
Public Function DynamicItemMatch (cmdId As Integer) As Boolean

Parameters

cmdId
Int32

The command ID.

Returns

true if there was a match, otherwise false.

Remarks

This method must be overridden when implementing a menu via DYNAMICITEMSTART.

Applies to