当前位置: 移动技术网 > IT编程>开发语言>.net > vsto 检测是否在编辑状态或者光标闪动

vsto 检测是否在编辑状态或者光标闪动

2019年11月25日  | 移动技术网IT编程  | 我要评论

重生1/2废柴,暂停恋爱,2244小游戏大全

object m = type.missing;
const int menu_item_type = 1;
const int new_menu = 18;

commandbarcontrol onewmenu =
excelglobals.application.commandbars["worksheet menu bar"].findcontrol(
menu_item_type, //the type of item to look for
new_menu, //the item to look for
m, //the tag property (in this case missing)
m, //the visible property (in this case missing)
true); //we want to look for it recursively
//so the last argument should be true.

if (onewmenu != null)
{
if (!onewmenu.enabled)
{
messagebox.show("当前文档有光标在闪动,请取消光标闪动");
return;
}
}

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网