WebBrowserArray 類別

定義

警告

此 API 現已淘汰。

提供 WebBrowser 控制項的控制項陣列。Provides a control array of WebBrowser controls.

public ref class WebBrowserArray : Microsoft::VisualBasic::Compatibility::VB6::BaseControlArray, System::ComponentModel::IExtenderProvider
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. https://go.microsoft.com/fwlink/?linkid=160862")]
public class WebBrowserArray : Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray, System.ComponentModel.IExtenderProvider
type WebBrowserArray = class
    inherit BaseControlArray
    interface IExtenderProvider
Public Class WebBrowserArray
Inherits BaseControlArray
Implements IExtenderProvider
繼承
屬性
實作

備註

WebBrowserArray 類別提供 Visual Basic 6.0 WebBrowser 陣列之執行時間功能的對等用法。The WebBrowserArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 WebBrowser array. 它不會提供 Visual Basic 6.0 控制項陣列的設計階段功能。It does not provide the design-time features of a Visual Basic 6.0 control array.

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 在大多數情況下,這些函式和物件會複製在 .NET Framework.NET Framework 的其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework.NET Framework 實作有顯著差異時,才需要這些項目。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

建構函式

WebBrowserArray()

初始化 WebBrowserArray 類別的新執行個體。Initializes a new instance of the WebBrowserArray class.

WebBrowserArray(IContainer)

初始化 WebBrowserArray 類別的新執行個體,並指定其容器。Initializes a new instance of the WebBrowserArray class, specifying its container.

欄位

components

儲存控制項陣列的容器。Stores the container for a control array.

(繼承來源 BaseControlArray)
controlAddedAtDesignTime

儲存值以追蹤控制項陣列中的控制項是在設計階段或執行階段建立的。Stores values to track whether a control in a control array was created at design time or at run time.

(繼承來源 BaseControlArray)
controls

儲存值,這些值代表控制項陣列中的控制項。Stores values that represent the controls in a control array.

(繼承來源 BaseControlArray)
fIsEndInitCalled

儲存值,這個值表示控制項陣列容器的初始化程式碼是否已完成執行。Stores a value indicating whether the initialization code for a control array's container has finished executing.

(繼承來源 BaseControlArray)
indices

儲存控制項陣列的索引。Stores the indices for a control array.

(繼承來源 BaseControlArray)

屬性

CanRaiseEvents

取得值,指出元件是否能引發事件。Gets a value indicating whether the component can raise an event.

(繼承來源 Component)
Container

取得包含 IContainerComponentGets the IContainer that contains the Component.

(繼承來源 Component)
DesignMode

取得值,指出 Component 目前是否處於設計模式。Gets a value that indicates whether the Component is currently in design mode.

(繼承來源 Component)
Events

取得附加在這個 Component 上的事件處理常式清單。Gets the list of event handlers that are attached to this Component.

(繼承來源 Component)
Item[Int16]

依索引取得 WebBrowserArray 的特定項目。Gets a specific element of a WebBrowserArray by index. 唯讀。Read-only.

Site

取得或設定 ComponentISiteGets or sets the ISite of the Component.

(繼承來源 Component)

方法

BaseCanExtend(Object)

取得值,這個值表示控制項是否為控制項陣列的成員。Gets a value that indicates whether a control is a member of a control array.

(繼承來源 BaseControlArray)
BaseGetIndex(Object)

取得控制項陣列中的控制項索引。Gets the index of a control in a control array.

(繼承來源 BaseControlArray)
BaseGetItem(Int16)

取得控制項陣列中已指定索引的控制項。Gets the control for a specified index in a control array.

(繼承來源 BaseControlArray)
BaseResetIndex(Object)

BaseControlArray 類別中不支援。Not supported in the BaseControlArray class.

(繼承來源 BaseControlArray)
BaseSetIndex(Object, Int16, Boolean)

設定控制項陣列中的控制項索引。Sets the index for a control in a control array.

(繼承來源 BaseControlArray)
BaseShouldSerializeIndex(Object)

傳回值,這個值表示控制項是否為控制項陣列的成員。Returns a value that indicates whether a control is a member of a control array.

(繼承來源 BaseControlArray)
CanExtend(Object)

取得值,判斷控制項是否為 WebBrowserArray 的成員。Gets a value that determines whether a control is a member of a WebBrowserArray.

Count()

傳回控制項陣列中的控制項數目。Returns the number of controls in a control array.

(繼承來源 BaseControlArray)
CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(繼承來源 MarshalByRefObject)
Dispose()

釋放 Component 所使用的所有資源。Releases all resources used by the Component.

(繼承來源 Component)
Dispose(Boolean)

釋放控制項陣列中某個控制項所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources that are used by a control in a control array and optionally releases the managed resources.

(繼承來源 BaseControlArray)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetControlInstanceType()

覆寫 GetControlInstanceType()Overrides GetControlInstanceType().

GetEnumerator()

傳回對列舉值物件的參考,這個物件用來反覆查看控制項陣列。Returns a reference to an enumerator object, which is used to iterate over a control array.

(繼承來源 BaseControlArray)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetIndex(WebBrowser)

取得 WebBrowserWebBrowserArray 的索引。Gets the index of a WebBrowser in a WebBrowserArray.

GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
GetService(Type)

傳回表示 Component 或其 Container 所提供之服務的物件。Returns an object that represents a service provided by the Component or by its Container.

(繼承來源 Component)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
HookUpControlEvents(Object)

覆寫 HookUpControlEvents(Object)Overrides HookUpControlEvents(Object).

InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
LBound()

傳回 Short,其中包含控制項陣列的最小可用註標。Returns a Short that contains the smallest available subscript for a control array.

(繼承來源 BaseControlArray)
Load(Int16)

在控制項陣列中建立新項目。Creates a new element in a control array.

(繼承來源 BaseControlArray)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(繼承來源 MarshalByRefObject)
ResetIndex(WebBrowser)

WebBrowserArray 類別中不支援 ResetIndex 方法。The ResetIndex method is not supported in the WebBrowserArray class.

SetIndex(WebBrowser, Int16)

設定 WebBrowser 中初始 WebBrowserArray 的索引。Sets the index of the initial WebBrowser in a WebBrowserArray.

ShouldSerializeIndex(WebBrowser)

傳回值,表示 WebBrowser 是否為這個 WebBrowserArray 的成員。Returns a value that indicates whether a WebBrowser is a member of this WebBrowserArray.

ToString()

傳回任何包含 Component 名稱的 StringReturns a String containing the name of the Component, if any. 不應覆寫此方法。This method should not be overridden.

(繼承來源 Component)
UBound()

傳回 Short,其中包含控制項陣列的最大可用註標。Returns a Short that contains the largest available subscript for a control array.

(繼承來源 BaseControlArray)
Unload(Int16)

從控制項陣列中移除控制項。Removes a control from a control array.

(繼承來源 BaseControlArray)

事件

CausesValidationChanged

發生於 CausesValidation 屬性的值變更時。Occurs when the value of the CausesValidation property changes.

ClientSizeChanged

發生於 ClientSize 屬性的值變更時。Occurs when the value of the ClientSize property changes.

ContextMenuChanged

發生於 ContextMenu 屬性的值變更時。Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged

發生於 ContextMenuStrip 屬性的值變更時。Occurs when the value of the ContextMenuStrip property changes.

ControlAdded

發生於加入新控制項至 WebBrowserArray 時。Occurs when a new control is added to the WebBrowserArray.

ControlRemoved

發生於從 WebBrowserArray 移除控制項時。Occurs when a control is removed from the WebBrowserArray.

Disposed

當此元件由 Dispose() 方法的呼叫處置時發生。Occurs when the component is disposed by a call to the Dispose() method.

(繼承來源 Component)
DockChanged

發生於 Dock 屬性的值變更時。Occurs when the value of the Dock property changes.

DocumentCompleted

發生於 WebBrowser 控制項完成文件的載入時。Occurs when the WebBrowser control finishes loading a document.

FileDownload

發生於 WebBrowser 控制項下載檔案時。Occurs when the WebBrowser control downloads a file.

LocationChanged

發生於 Location 屬性的值變更時。Occurs when the value of the Location property changes.

MarginChanged

發生於 Margin 屬性的值變更時。Occurs when the value of the Margin property changes.

Move

發生於控制項移動時。Occurs when the control is moved.

Navigated

發生於 WebBrowser 控制項已巡覽至新文件且已開始載入新文件時。Occurs when the WebBrowser control has navigated to a new document and has begun loading it.

Navigating

發生於 WebBrowser 控制項巡覽至新文件之前。Occurs before the WebBrowser control navigates to a new document.

NewWindow

發生於開啟新瀏覽器視窗之前。Occurs before a new browser window is opened.

ParentChanged

發生於控制項的 Parent 屬性變更時。Occurs when the control's Parent property changes.

ProgressChanged

發生於 WebBrowser 控制項具有所巡覽之文件下載進度的更新資訊時。Occurs when the WebBrowser control has updated information about the download progress of a document that it is navigating to.

RegionChanged

發生於 Region 屬性的值變更時。Occurs when the value of the Region property changes.

Resize

發生於重設控制項大小時。Occurs when the control is resized.

SizeChanged

發生在 Size 屬性值變更時。Occurs when the Size property value changes.

SystemColorsChanged

發生於系統色彩變更時。Occurs when the system colors change.

Validated

發生於控制項完成驗證時。Occurs when the control is finished validating.

Validating

發生於驗證控制項時。Occurs when the control is validating.

VisibleChanged

發生在 Visible 屬性值變更時。Occurs when the Visible property value changes.

明確介面實作

ISupportInitialize.BeginInit()

開始控制項的初始化。Begins the initialization of the control.

(繼承來源 BaseControlArray)
ISupportInitialize.EndInit()

結束控制項的初始化。Ends the initialization of a control.

(繼承來源 BaseControlArray)

適用於