PanelArray 類別

定義

警告

此 API 現已淘汰。

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

public ref class PanelArray : 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 PanelArray : Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray, System.ComponentModel.IExtenderProvider
type PanelArray = class
    inherit BaseControlArray
    interface IExtenderProvider
Public Class PanelArray
Inherits BaseControlArray
Implements IExtenderProvider
繼承
屬性
實作

備註

PanelArray 類別提供 Visual Basic 6.0 Panel 陣列之執行時間功能的對等用法。The PanelArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 Panel 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.

建構函式

PanelArray()

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

PanelArray(IContainer)

初始化 PanelArray 類別的新執行個體,並指定其容器。Initializes a new instance of the PanelArray 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]

依索引取得 PanelArray 的特定項目。Gets a specific element of a PanelArray 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)

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

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(Panel)

取得 PanelPanelArray 的索引。Gets the index of a Panel in a PanelArray.

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(Panel)

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

SetIndex(Panel, Int16)

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

ShouldSerializeIndex(Panel)

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

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)

事件

AutoSizeChanged

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

BackColorChanged

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

BackgroundImageChanged

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

BackgroundImageLayoutChanged

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

BindingContextChanged

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

CausesValidationChanged

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

ChangeUICues

發生於焦點或鍵盤使用者介面 (UI) 提示變更時。Occurs when the focus or keyboard user interface (UI) cues change.

Click

發生於按一下 Panel 中的 PanelArray 時。Occurs when a Panel in a PanelArray is clicked.

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

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

ControlRemoved

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

CursorChanged

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

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.

DoubleClick

發生於按兩下 Panel 中的 PanelArray 控制項時。Occurs when a Panel control in a PanelArray is double-clicked.

DragDrop

發生於拖放作業完成時。Occurs when a drag-and-drop operation is completed.

DragEnter

發生於將物件拖曳至控制項邊框時。Occurs when an object is dragged into the control's bounds.

DragLeave

發生於將物件拖出控制項界限時。Occurs when an object is dragged out of the control's bounds.

DragOver

發生於將物件拖曳至控制項邊框上方時。Occurs when an object is dragged over the control's bounds.

EnabledChanged

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

Enter

發生於輸入控制項時。Occurs when the control is entered.

FontChanged

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

ForeColorChanged

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

GiveFeedback

發生於拖曳作業時。Occurs during a drag operation.

HelpRequested

發生於使用者要求控制項的說明時。Occurs when the user requests help for a control.

ImeModeChanged

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

Layout

發生於控制項應重新調整其子控制項位置時。Occurs when a control should reposition its child controls.

Leave

發生於輸入焦點離開控制項時。Occurs when the input focus leaves the control.

LocationChanged

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

MarginChanged

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

MouseCaptureChanged

發生於控制項失去或獲得滑鼠捕捉 (Mouse Capture) 時。Occurs when the control loses or gains mouse capture.

MouseClick

發生於使用滑鼠按一下控制項時。Occurs when the control is clicked by the mouse.

MouseDoubleClick

發生於使用滑鼠按兩下控制項時。Occurs when the control is double-clicked by the mouse.

MouseDown

發生於滑鼠指標位於控制項上,並且按下滑鼠按鍵時。Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter

發生於滑鼠指標進入控制項時。Occurs when the mouse pointer enters the control.

MouseHover

發生於滑鼠指標停留在控制項上時。Occurs when the mouse pointer rests on the control.

MouseLeave

發生於滑鼠指標離開控制項時。Occurs when the mouse pointer leaves the control.

MouseMove

發生於滑鼠指標移至控制項上時。Occurs when the mouse pointer is moved over the control.

MouseUp

發生於滑鼠指標位於控制項上並放開滑鼠按鍵時。Occurs when the mouse pointer is over the control and a mouse button is released.

Move

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

PaddingChanged

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

Paint

發生於重繪控制項時。Occurs when the control is redrawn.

ParentChanged

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

QueryAccessibilityHelp

發生於 AccessibleObject 為協助工具應用程式提供說明時。Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag

發生於拖放作業時,讓拖曳來源能夠決定是否應取消拖放作業。Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.

RegionChanged

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

Resize

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

RightToLeftChanged

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

Scroll

發生於使用者捲動 Panel 控制項時。Occurs when the user scrolls the Panel control.

SizeChanged

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

StyleChanged

發生於控制項樣式變更時。Occurs when the control style changes.

SystemColorsChanged

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

TabIndexChanged

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

TabStopChanged

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

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)

適用於