HotKeyManegerRegHotKey(HotKeyManegerCHotKeyDelegateHotKey, String, String, Object) 方法
按组合键注册热键 最多可以指定CTRL+SHIFT+ALT+A这样的四个
3个组合键可自由组合 最后一个单键必须指定
命名空间: Excel880VSTO程序集: Excel880VSTO (在 Excel880VSTO.dll 中) 版本:1.5.8.0 (1.5.8.0)
public static HotKeyManegerCHotKey RegHotKey(
DelegateHotKey CallbackEvent,
string Name,
string Keys,
Object tag = null
)
Public Shared Function RegHotKey (
CallbackEvent As DelegateHotKey,
Name As String,
Keys As String,
Optional tag As Object = Nothing
) As HotKeyManegerCHotKey
Dim CallbackEvent As DelegateHotKey
Dim Name As String
Dim Keys As String
Dim tag As Object
Dim returnValue As HotKeyManegerCHotKey
returnValue = HotKeyManeger.RegHotKey(CallbackEvent,
Name, Keys, tag)
- CallbackEvent DelegateHotKey
- 自定义带参数的事件
- Name String
- Keys String
- tag Object (Optional)
HotKeyManegerCHotKey