📄 axshdocvw.cs
字号:
}
return this.ocx.Offline;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Offline", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.Offline = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(551)]
public virtual bool Silent {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Silent", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.Silent;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Silent", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.Silent = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(552)]
public virtual bool RegisterAsBrowser {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RegisterAsBrowser", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.RegisterAsBrowser;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RegisterAsBrowser", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.RegisterAsBrowser = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(553)]
public virtual bool RegisterAsDropTarget {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RegisterAsDropTarget", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.RegisterAsDropTarget;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RegisterAsDropTarget", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.RegisterAsDropTarget = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(554)]
public virtual bool TheaterMode {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TheaterMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.TheaterMode;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TheaterMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.TheaterMode = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(555)]
public virtual bool AddressBar {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AddressBar", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.AddressBar;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AddressBar", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.AddressBar = value;
}
}
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Runtime.InteropServices.DispIdAttribute(556)]
public virtual bool Resizable {
get {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Resizable", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet);
}
return this.ocx.Resizable;
}
set {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Resizable", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet);
}
this.ocx.Resizable = value;
}
}
public event DWebBrowserEvents2_PrivacyImpactedStateChangeEventHandler PrivacyImpactedStateChange;
public event DWebBrowserEvents2_UpdatePageStatusEventHandler UpdatePageStatus;
public event DWebBrowserEvents2_PrintTemplateTeardownEventHandler PrintTemplateTeardown;
public event DWebBrowserEvents2_PrintTemplateInstantiationEventHandler PrintTemplateInstantiation;
public event DWebBrowserEvents2_NavigateErrorEventHandler NavigateError;
public event DWebBrowserEvents2_FileDownloadEventHandler FileDownload;
public event DWebBrowserEvents2_SetSecureLockIconEventHandler SetSecureLockIcon;
public event DWebBrowserEvents2_ClientToHostWindowEventHandler ClientToHostWindow;
public event DWebBrowserEvents2_WindowClosingEventHandler WindowClosing;
public event DWebBrowserEvents2_WindowSetHeightEventHandler WindowSetHeight;
public event DWebBrowserEvents2_WindowSetWidthEventHandler WindowSetWidth;
public event DWebBrowserEvents2_WindowSetTopEventHandler WindowSetTop;
public event DWebBrowserEvents2_WindowSetLeftEventHandler WindowSetLeft;
public event DWebBrowserEvents2_WindowSetResizableEventHandler WindowSetResizable;
public event DWebBrowserEvents2_OnTheaterModeEventHandler OnTheaterMode;
public event DWebBrowserEvents2_OnFullScreenEventHandler OnFullScreen;
public event DWebBrowserEvents2_OnStatusBarEventHandler OnStatusBar;
public event DWebBrowserEvents2_OnMenuBarEventHandler OnMenuBar;
public event DWebBrowserEvents2_OnToolBarEventHandler OnToolBar;
public event DWebBrowserEvents2_OnVisibleEventHandler OnVisible;
public event System.EventHandler OnQuit;
public event DWebBrowserEvents2_DocumentCompleteEventHandler DocumentComplete;
public event DWebBrowserEvents2_NavigateComplete2EventHandler NavigateComplete2;
public event DWebBrowserEvents2_NewWindow2EventHandler NewWindow2;
public event DWebBrowserEvents2_BeforeNavigate2EventHandler BeforeNavigate2;
public event DWebBrowserEvents2_PropertyChangeEventHandler PropertyChange;
public event DWebBrowserEvents2_TitleChangeEventHandler TitleChange;
public event System.EventHandler DownloadComplete;
public event System.EventHandler DownloadBegin;
public event DWebBrowserEvents2_CommandStateChangeEventHandler CommandStateChange;
public event DWebBrowserEvents2_ProgressChangeEventHandler ProgressChange;
public event DWebBrowserEvents2_StatusTextChangeEventHandler StatusTextChange;
public virtual void ShowBrowserBar(ref object pvaClsid, [System.Runtime.InteropServices.Optional()] ref object pvarShow, [System.Runtime.InteropServices.Optional()] ref object pvarSize) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowBrowserBar", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.ShowBrowserBar(ref pvaClsid, ref pvarShow, ref pvarSize);
}
public virtual void ExecWB(OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, [System.Runtime.InteropServices.Optional()] ref object pvaIn, [System.Runtime.InteropServices.Optional()] ref object pvaOut) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExecWB", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.ExecWB(cmdID, cmdexecopt, ref pvaIn, ref pvaOut);
}
public virtual OLECMDF QueryStatusWB(OLECMDID cmdID) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("QueryStatusWB", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
return this.ocx.QueryStatusWB(cmdID);
}
public virtual void Navigate2(ref object uRL, [System.Runtime.InteropServices.Optional()] ref object flags, [System.Runtime.InteropServices.Optional()] ref object targetFrameName, [System.Runtime.InteropServices.Optional()] ref object postData, [System.Runtime.InteropServices.Optional()] ref object headers) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Navigate2", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Navigate2(ref uRL, ref flags, ref targetFrameName, ref postData, ref headers);
}
public virtual object GetProperty(string property) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetProperty", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
return this.ocx.GetProperty(property);
}
public virtual void PutProperty(string property, object vtValue) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PutProperty", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.PutProperty(property, vtValue);
}
public virtual void ClientToWindow(ref int pcx, ref int pcy) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ClientToWindow", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.ClientToWindow(ref pcx, ref pcy);
}
public virtual void Quit() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Quit", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Quit();
}
public virtual void Stop() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Stop", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Stop();
}
public virtual void Refresh2([System.Runtime.InteropServices.Optional()] ref object level) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Refresh2", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Refresh2(ref level);
}
public virtual void CtlRefresh() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CtlRefresh", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Refresh();
}
public virtual void Navigate(string uRL, [System.Runtime.InteropServices.Optional()] ref object flags, [System.Runtime.InteropServices.Optional()] ref object targetFrameName, [System.Runtime.InteropServices.Optional()] ref object postData, [System.Runtime.InteropServices.Optional()] ref object headers) {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Navigate", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.Navigate(uRL, ref flags, ref targetFrameName, ref postData, ref headers);
}
public virtual void GoSearch() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GoSearch", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.GoSearch();
}
public virtual void GoHome() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GoHome", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.GoHome();
}
public virtual void GoForward() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GoForward", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.GoForward();
}
public virtual void GoBack() {
if ((this.ocx == null)) {
throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GoBack", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke);
}
this.ocx.GoBack();
}
protected override void CreateSink() {
try {
this.eventMulticaster = new AxWebBrowserEventMulticaster(this);
this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(DWebBrowserEvents2));
}
catch (System.Exception ) {
}
}
protected override void DetachSink() {
try {
this.cookie.Disconnect();
}
catch (System.Exception ) {
}
}
protected override void AttachInterfaces() {
try {
this.ocx = ((IWebBrowser2)(this.GetOcx()));
}
catch (System.Exception ) {
}
}
internal void RaiseOnPrivacyImpactedStateChange(object sender, DWebBrowserEvents2_PrivacyImpactedStateChangeEvent e) {
if ((this.PrivacyImpactedStateChange != null)) {
this.PrivacyImpactedStateChange(sender, e);
}
}
internal void RaiseOnUpdatePageStatus(object sender, DWebBrowserEvents2_UpdatePageStatusEvent e) {
if ((this.UpdatePageStatus != null)) {
this.UpdatePageStatus(sender, e);
}
}
internal void RaiseOnPrintTemplateTeardown(object sender, DWebBrowserEvents2_PrintTemplateTeardownEvent e) {
if ((this.PrintTemplateTeardown != null)) {
this.PrintTemplateTeardown(sender, e);
}
}
internal void RaiseOnPrintTemplateInstantiation(object sender, DWebBrowserEvents2_PrintTemplateInstantiationEvent e) {
if ((this.PrintTemplateInstantiation != null)) {
this.PrintTemplateInstantiation(sender, e);
}
}
internal void RaiseOnNavigateError(object sender, DWebBrowserEvents2_NavigateErrorEvent e) {
if ((this.NavigateError != null)) {
this.NavigateError(sender, e);
}
}
internal void RaiseOnFileDownload(object sender, DWebBrowserEvents2_FileDownloadEvent e) {
if ((this.FileDownload != null)) {
this.FileDownload(sender, e);
}
}
internal void RaiseOnSetSecureLockIcon(object sender, DWebBrowserEvents2_SetSecureLockIconEvent e) {
if ((this.SetSecureLockIcon != null)) {
this.SetSecureLockIcon(sender, e);
}
}
internal void RaiseOnClientToHostWindow(object sender, DWebBrowserEvents2_ClientToHostWindowEvent e) {
if ((this.ClientToHostWindow != null)) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -