HotKeyManegerRegHotKey(String, String, Object, HotKeyManegerCHotKeyDelegateEvent) 方法
按组合键注册热键 最多可以指定CTRL+SHIFT+ALT+A这样的四个
3个组合键可自由组合 单键单独指定 sender表示发出的对象 如Button EventSub 无参数过程 进行回调
命名空间: Excel880VSTO程序集: Excel880VSTO (在 Excel880VSTO.dll 中) 版本:1.5.8.0 (1.5.8.0)
public static HotKeyManegerCHotKey RegHotKey(
string Name,
string Keys,
Object sender,
DelegateEvent EventSub
)
Public Shared Function RegHotKey (
Name As String,
Keys As String,
sender As Object,
EventSub As DelegateEvent
) As HotKeyManegerCHotKey
Dim Name As String
Dim Keys As String
Dim sender As Object
Dim EventSub As DelegateEvent
Dim returnValue As HotKeyManegerCHotKey
returnValue = HotKeyManeger.RegHotKey(Name,
Keys, sender, EventSub)
- Name String
- Keys String
- sender Object
- EventSub DelegateEvent
HotKeyManegerCHotKey