📄 thisdocument.designer.cs
字号:
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行库版本:2.0.50727.42
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace demoword {
///
[Microsoft.VisualStudio.Tools.Applications.Runtime.StartupObjectAttribute(0)]
[System.Runtime.InteropServices.ComVisibleAttribute(false)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")]
public sealed partial class ThisDocument : Microsoft.Office.Tools.Word.Document, Microsoft.VisualStudio.Tools.Applications.Runtime.IStartup {
internal Microsoft.Office.Tools.ActionsPane ActionsPane;
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private Microsoft.VisualStudio.Tools.Applications.Runtime.IRuntimeServiceProvider RuntimeCallback;
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider HostItemHost;
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private Microsoft.VisualStudio.Tools.Applications.Runtime.ICachedDataProvider DataHost;
private global::System.Object missing = global::System.Type.Missing;
internal Microsoft.Office.Interop.Word.Application ThisApplication;
internal Microsoft.Office.Tools.Word.Controls.Button button1;
internal Microsoft.Office.Tools.Word.Controls.Button button2;
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public ThisDocument(Microsoft.VisualStudio.Tools.Applications.Runtime.IRuntimeServiceProvider RuntimeCallback) :
base(((Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider)(RuntimeCallback.GetService(typeof(Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider)))), RuntimeCallback, "ThisDocument", null, "ThisDocument") {
this.RuntimeCallback = RuntimeCallback;
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public void Initialize() {
this.HostItemHost = ((Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider)(this.RuntimeCallback.GetService(typeof(Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider))));
this.DataHost = ((Microsoft.VisualStudio.Tools.Applications.Runtime.ICachedDataProvider)(this.RuntimeCallback.GetService(typeof(Microsoft.VisualStudio.Tools.Applications.Runtime.ICachedDataProvider))));
object hostObject = null;
this.HostItemHost.GetHostObject("Microsoft.Office.Interop.Word.Application", "Application", out hostObject);
this.ThisApplication = ((Microsoft.Office.Interop.Word.Application)(hostObject));
Globals.ThisDocument = this;
System.Windows.Forms.Application.EnableVisualStyles();
this.InitializeCachedData();
this.InitializeControls();
this.InitializeComponents();
this.InitializeData();
this.BeginInitialization();
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public void FinishInitialization() {
this.InternalStartup();
this.OnStartup();
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public void InitializeDataBindings() {
this.BindToData();
this.EndInitialization();
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override void OnShutdown() {
this.ActionsPane.Dispose();
base.OnShutdown();
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private void InitializeCachedData() {
if ((this.DataHost == null)) {
return;
}
if (this.DataHost.IsCacheInitialized) {
this.DataHost.FillCachedData(this);
}
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private void InitializeData() {
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private void BindToData() {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
private void StartCaching(string MemberName) {
this.DataHost.StartCaching(this, MemberName);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
private void StopCaching(string MemberName) {
this.DataHost.StopCaching(this, MemberName);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
private bool IsCached(string MemberName) {
return this.DataHost.IsCached(this, MemberName);
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private void BeginInitialization() {
this.BeginInit();
this.ActionsPane.BeginInit();
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private void EndInitialization() {
this.ActionsPane.EndInit();
this.EndInit();
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private void InitializeControls() {
this.ActionsPane = new Microsoft.Office.Tools.ActionsPane(this.HostItemHost, this.RuntimeCallback, "ActionsPane", this, "ActionsPane");
this.button1 = new Microsoft.Office.Tools.Word.Controls.Button(this.HostItemHost, this.RuntimeCallback, "1CB3D721C16F7314A5F187C91BBE782ED23941", "1CB3D721C16F7314A5F187C91BBE782ED23941", this, "button1");
this.button2 = new Microsoft.Office.Tools.Word.Controls.Button(this.HostItemHost, this.RuntimeCallback, "25F964B8E2B8E9241342B7272A39CB25CEA7A2", "25F964B8E2B8E9241342B7272A39CB25CEA7A2", this, "button2");
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private void InitializeComponents() {
((System.ComponentModel.ISupportInitialize)(this.ActionsPane)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// button1
//
this.button1.Name = "button1";
this.button1.Text = "Size";
//
// button2
//
this.button2.Name = "button2";
this.button2.Text = "Large";
//
// ThisDocument
//
((System.ComponentModel.ISupportInitialize)(this.ActionsPane)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.button1.BindingContext = this.BindingContext;
this.button2.BindingContext = this.BindingContext;
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
private bool NeedsFill(string MemberName) {
return this.DataHost.NeedsFill(this, MemberName);
}
}
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal sealed partial class Globals {
private static ThisDocument _ThisDocument;
internal static ThisDocument ThisDocument {
get {
return _ThisDocument;
}
set {
if ((_ThisDocument == null)) {
_ThisDocument = value;
}
else {
throw new System.NotSupportedException();
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -