Command.Tooltip

説明

コマンドのツールチップをStringとして戻したり、設定したりします。

C#構文

// get accessor

String rtn = Command.Tooltip;

// set accessor

Command.Tooltip = String;

VBScript の例

RemoveCommand "MyCommand" ' remove any instance of existing command

set cmd = Application.CreateCommand("MyCommand")

cmd.ScriptingName = "MyCommand"

cmd.Language = "VBScript"

cmd.Code = "LogMessage ""MyCommand invoked"""

cmd.tooltip = "This is the tooltip of MyCommand"

Application.AddCommand cmd

LogMessage "Command tooltip: " & cmd.tooltip

' Result of running this example:

'INFO : "Command tooltip: This is the tooltip of MyCommand"