搜索优化
网页
图片
视频
学术
词典
地图
更多
航班
笔记本
ThisAddIn
例句
释义:
全部
全部
类别:
全部
全部
,
口语
口语
,
书面语
书面语
,
标题
标题
,
技术
技术
来源:
全部
全部
,
字典
字典
,
网络
网络
难度:
全部
全部
,
简单
简单
,
中等
中等
,
难
难
更多例句筛选
收起例句筛选
1.
In
Solution
Explorer
,
find
the
node
that
corresponds
to the add-in
class
that the
template
created
for
you
(
ThisAddIn
.
Vb
or
ThisAddIn
. Cs
)
.
在
SolutionExplorer
(
解决方案
资源管理器
)
中
,
找到
对应于
模板
为
您
创建
的
加载
项
类
的
节点
(
ThisAddIn.vb
或
ThisAddIn.cs
)
。
msdn2.microsoft.com
2.
Modify
the
ThisAddIn_Startup
procedure
by
adding
code
to
set
up the
event
handler for the VisibleChanged
event
.
修改
ThisAddIn_Startup
过程
,
方法
是
为
VisibleChanged
事件
添加
设置
事件
处理程序
的
代码
。
msdn2.microsoft.com
3.
If
you
need
to
run
code
that initializes your add-in,
add
the code to the ThisAddIn_Startup
event
handler
.
如果
需要
运行
初始
化外
接
程序
的
代码
,
请
将
代码
添加
到
ThisAddIn_Startup
事件
处理
程序
。
msdn2.microsoft.com
4.
To
run
code
just
before
the
add-in
is
unloaded
,
add
code
to the ThisAddIn_Shutdown
event
handler
.
若要
在
即将
卸载
外接
程序
前
运行
代码
,
请
将
代码
添加
到
ThisAddIn_Shutdown
事件
处理
程序
中
。
msdn2.microsoft.com
5.
Modify
the
existing
ThisAddIn_Shutdown
procedure
by
unhooking the VisibleChanged
event
handler
.
修改
现有
ThisAddIn_Shutdown
过程
,
方法
是
取消
VisibleChanged
事件
处理程序
的
挂
接
。
msdn2.microsoft.com
6.
The
partial
class
ThisAddIn
contains
an
override
for the RequestService
method
.
局部
类
ThisAddIn
包含
RequestService
方法
的
重写
。
msdn2.microsoft.com
7.
To
access
the
object
model
of the
host
application
,
use
the
Application
field
of the
ThisAddIn
class
.
若要
访问
宿主
应用程序
的
对象
模型
,
请
使用
ThisAddIn
类
的
Application
字段
。
msdn2.microsoft.com
8.
When
you
create
an add-in
project
,
VSTO 2005 SE
automatically
creates
a
class
named
ThisAddIn
,
which
derives
from
AddIn
.
当
您
创建
外接
程序
项目
时
,
VSTO2005SE
自动
创建
名
为
ThisAddIn
的
类
,
该
类
派生
自
AddIn
。
msdn2.microsoft.com
9.
Add
code
to
the ThisAddIn_Shutdown
method
.
向
ThisAddIn_Shutdown
方法
中
添加
代码
。
msdn2.microsoft.com
10.
You
can
access
the
object
model
of
the
host
application
by
using
the
Application
field
of the
ThisAddIn
class
.
您
可以
通过
使用
ThisAddIn
类
的
Application
字
段来
访问
宿主
应用程序
的
对象
模型
。
msdn2.microsoft.com
1
2