⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 axshdocvw.cs

📁 c#精彩编程百例(源代码)
💻 CS
📖 第 1 页 / 共 2 页
字号:
//  AxSHDocVw.cs
//  This file is the winforms wrapper for the HTML component, it was autogenerated.
//  Copyright (C) 2001 Mike Krueger
//
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

using SHDocVw;
namespace AxSHDocVw {
	
	[System.Windows.Forms.AxHost.ClsidAttribute("{8856f961-340a-11d0-a96b-00c04fd705a2}")]
	[System.ComponentModel.DesignTimeVisibleAttribute(true)]
	[System.ComponentModel.DefaultProperty("Name")]
	public class AxWebBrowser : System.Windows.Forms.AxHost {
		
		private SHDocVw.IWebBrowser2 ocx;
		
		private AxWebBrowserEventMulticaster eventMulticaster;
		
		private System.Windows.Forms.AxHost.ConnectionPointCookie cookie;
		
		public AxWebBrowser() : 
			base("8856f961-340a-11d0-a96b-00c04fd705a2") {
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(200)]
			public virtual object Application {
				get {
					return this.ocx.Application;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(201)]
			new public virtual object Parent {
				get {
					return this.ocx.Parent;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(202)]
			new public virtual object Container {
				get {
					return this.ocx.Container;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(203)]
			public virtual object Document {
				get {
					return this.ocx.Document;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(204)]
			public virtual bool TopLevelContainer {
				get {
					return this.ocx.TopLevelContainer;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(205)]
			public virtual string Type {
				get {
					return this.ocx.Type;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(206)]
			public virtual int CtlLeft {
				get {
					return this.ocx.Left;
				}
				set {
					this.ocx.Left = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(207)]
			public virtual int CtlTop {
				get {
					return this.ocx.Top;
				}
				set {
					this.ocx.Top = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(208)]
			public virtual int CtlWidth {
				get {
					return this.ocx.Width;
				}
				set {
					this.ocx.Width = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(209)]
			public virtual int CtlHeight {
				get {
					return this.ocx.Height;
				}
				set {
					this.ocx.Height = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(210)]
			public virtual string LocationName {
				get {
					return this.ocx.LocationName;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(211)]
			public virtual string LocationURL {
				get {
					return this.ocx.LocationURL;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(212)]
			public virtual bool Busy {
				get {
					return this.ocx.Busy;
				}
			}
			
			[System.ComponentModel.Browsable(true)]
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(0)]
			public new virtual string Name {
				get {
					return this.ocx.Name;
				}
			}
			
			[System.ComponentModel.Browsable(false)]
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(-515)]
			[System.Runtime.InteropServices.ComAliasNameAttribute("System.Int32")]
			public virtual int HWND {
				get {
					return (this.ocx.HWND);
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(400)]
			public virtual string FullName {
				get {
					return this.ocx.FullName;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(401)]
			public virtual string Path {
				get {
					return this.ocx.Path;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(402)]
			public virtual bool CtlVisible {
				get {
					return this.ocx.Visible;
				}
				set {
					this.ocx.Visible = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(403)]
			public virtual bool StatusBar {
				get {
					return this.ocx.StatusBar;
				}
				set {
					this.ocx.StatusBar = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(404)]
			public virtual string StatusText {
				get {
					return this.ocx.StatusText;
				}
				set {
					this.ocx.StatusText = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(405)]
			public virtual int ToolBar {
				get {
					return this.ocx.ToolBar;
				}
				set {
					this.ocx.ToolBar = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(406)]
			public virtual bool MenuBar {
				get {
					return this.ocx.MenuBar;
				}
				set {
					this.ocx.MenuBar = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(407)]
			public virtual bool FullScreen {
				get {
					return this.ocx.FullScreen;
				}
				set {
					this.ocx.FullScreen = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(-525)]
			[System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
			public virtual SHDocVw.tagREADYSTATE ReadyState {
				get {
					return this.ocx.ReadyState;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(550)]
			public virtual bool Offline {
				get {
					return this.ocx.Offline;
				}
				set {
					this.ocx.Offline = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(551)]
			public virtual bool Silent {
				get {
					return this.ocx.Silent;
				}
				set {
					this.ocx.Silent = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(552)]
			public virtual bool RegisterAsBrowser {
				get {
					return this.ocx.RegisterAsBrowser;
				}
				set {
					this.ocx.RegisterAsBrowser = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(553)]
			public virtual bool RegisterAsDropTarget {
				get {
					return this.ocx.RegisterAsDropTarget;
				}
				set {
					this.ocx.RegisterAsDropTarget = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(554)]
			public virtual bool TheaterMode {
				get {
					return this.ocx.TheaterMode;
				}
				set {
					this.ocx.TheaterMode = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(555)]
			public virtual bool AddressBar {
				get {
					return this.ocx.AddressBar;
				}
				set {
					this.ocx.AddressBar = value;
				}
			}
			
			[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
			[System.Runtime.InteropServices.DispIdAttribute(556)]
			public virtual bool Resizable {
				get {
					return this.ocx.Resizable;
				}
				set {
					this.ocx.Resizable = value;
				}
			}
			
			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) {
			this.ocx.ShowBrowserBar(ref pvaClsid, ref pvarShow, ref pvarSize);
		}
		
		public virtual void ExecWB(SHDocVw.OLECMDID cmdID, SHDocVw.OLECMDEXECOPT cmdexecopt, [System.Runtime.InteropServices.Optional()] ref object pvaIn, [System.Runtime.InteropServices.Optional()] ref object pvaOut) {
			this.ocx.ExecWB(cmdID, cmdexecopt, ref pvaIn, ref pvaOut);
		}
		
		public virtual SHDocVw.OLECMDF QueryStatusWB(SHDocVw.OLECMDID cmdID) {
			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) {
			this.ocx.Navigate2(ref uRL, ref flags, ref targetFrameName, ref postData, ref headers);
		}
		
		public virtual object GetProperty(string property) {
			return this.ocx.GetProperty(property);
		}
		
		public virtual void PutProperty(string property, object vtValue) {
			this.ocx.PutProperty(property, vtValue);
		}
		
		public virtual void ClientToWindow(ref int pcx, ref int pcy) {
			this.ocx.ClientToWindow(ref pcx, ref pcy);
		}
		
		public virtual void Quit() {
			this.ocx.Quit();
		}
		
		public virtual void Stop() {
			this.ocx.Stop();
		}
		
		public virtual void Refresh2([System.Runtime.InteropServices.Optional()] ref object level) {
			this.ocx.Refresh2(ref level);
		}
		
		public virtual void CtlRefresh() {
			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) {
			this.ocx.Navigate(uRL, ref flags, ref targetFrameName, ref postData, ref headers);
		}
		
		public virtual void GoSearch() {
			this.ocx.GoSearch();
		}
		
		public virtual void GoHome() {
			this.ocx.GoHome();
		}
		
		public virtual void GoForward() {
			this.ocx.GoForward();
		}
		
		public virtual void GoBack() {
			this.ocx.GoBack();
		}
     
		protected override void CreateSink() {
			try {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -