コマンドでキーの割り当てがサポートされているか(true)されていないか(false)を示すBoolean値を戻します。このプロパティは、Command.GetFlagのショートカットです。
注:このプロパティは読み取り専用です。
// get accessor Boolean rtn = Command.SupportsKeyAssignment; |
/*
See if a command supports key assignment
*/
var oCmd = Commands.Item("Apply Operator");
if ( true == oCmd.SupportsKeyAssignment )
{
LogMessage(oCmd.Name + " supports key assignment.");
}
else
{
LogMessage(oCmd.Name + " does not support key assignment.");
} |