HotKeyManegerRegHotKey(String, String, HotKeyManegerCHotKeyDelegateSub) 方法
按组合键注册热键 最多可以指定CTRL+SHIFT+ALT+A这样的四个
3个组合键可自由组合 最后一个单键必须指定 CallbackSub用addressof 无参数过程 进行回调
命名空间: Excel880VSTO程序集: Excel880VSTO (在 Excel880VSTO.dll 中) 版本:1.5.8.0 (1.5.8.0)
public static HotKeyManegerCHotKey RegHotKey(
string Name,
string Keys,
DelegateSub CallbackSub
)
Public Shared Function RegHotKey (
Name As String,
Keys As String,
CallbackSub As DelegateSub
) As HotKeyManegerCHotKey
Dim Name As String
Dim Keys As String
Dim CallbackSub As DelegateSub
Dim returnValue As HotKeyManegerCHotKey
returnValue = HotKeyManeger.RegHotKey(Name,
Keys, CallbackSub)
- Name String
- Keys String
- CallbackSub DelegateSub
HotKeyManegerCHotKey