ToolStripPanelRow 類別
定義
表示可包含控制項之 ToolStripPanel 的資料列。Represents a row of a ToolStripPanel that can contain controls.
public ref class ToolStripPanelRow : System::ComponentModel::Component, IDisposable
public class ToolStripPanelRow : System.ComponentModel.Component, IDisposable
type ToolStripPanelRow = class
inherit Component
interface IComponent
interface IDisposable
Public Class ToolStripPanelRow
Inherits Component
Implements IDisposable
- 繼承
- 實作
建構函式
ToolStripPanelRow(ToolStripPanel) |
初始化 ToolStripPanelRow 類別的新執行個體,並指定包含的 ToolStripPanel。Initializes a new instance of the ToolStripPanelRow class, specifying the containing ToolStripPanel. |
屬性
Bounds |
取得或設定 ToolStripPanelRow (包括其非用戶端項目) 相對於父控制項的大小和位置 (以像素為單位)。Gets the size and location of the ToolStripPanelRow, including its nonclient elements, in pixels, relative to the parent control. |
CanRaiseEvents |
取得值,指出元件是否能引發事件。Gets a value indicating whether the component can raise an event. (繼承來源 Component) |
Container |
取得包含 IContainer 的 Component。Gets the IContainer that contains the Component. (繼承來源 Component) |
Controls |
取得 ToolStripPanelRow 中的控制項。Gets the controls in the ToolStripPanelRow. |
DefaultMargin |
取得控制項之間的預設指定間距 (單位為像素)。Gets the space, in pixels, that is specified by default between controls. |
DefaultPadding |
取得控制項內容的內部間距 (單位為像素)。Gets the internal spacing, in pixels, of the contents of a control. |
DesignMode |
取得值,指出 Component 目前是否處於設計模式。Gets a value that indicates whether the Component is currently in design mode. (繼承來源 Component) |
DisplayRectangle |
取得控制項的顯示區域。Gets the display area of the control. |
Events |
取得附加在這個 Component 上的事件處理常式清單。Gets the list of event handlers that are attached to this Component. (繼承來源 Component) |
LayoutEngine |
取得控制項配置引擎的執行個體。Gets an instance of the control's layout engine. |
Margin |
取得或設定控制項之間的空格。Gets or sets the space between controls. |
Orientation |
取得 ToolStripPanelRow 相對於其包含之 ToolStripPanel 的配置方向。Gets the layout direction of the ToolStripPanelRow relative to its containing ToolStripPanel. |
Padding |
取得或設定控制項內的邊框間距。Gets or sets padding within the control. |
Site |
取得或設定 Component 的 ISite。Gets or sets the ISite of the Component. (繼承來源 Component) |
ToolStripPanel |
取得包含 ToolStripPanel 的 ToolStripPanelRow。Gets the ToolStripPanel that contains the ToolStripPanelRow. |
方法
CanMove(ToolStrip) |
取得或設定值,指出 ToolStrip 是否可以拖放至 ToolStripPanelRow 中。Gets or sets a value indicating whether a ToolStrip can be dragged and dropped into a ToolStripPanelRow. |
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) |
釋放 ToolStripPanelRow 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the ToolStripPanelRow and optionally releases the managed resources. |
Equals(Object) |
判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object. (繼承來源 Object) |
GetHashCode() |
做為預設雜湊函式。Serves as the default hash function. (繼承來源 Object) |
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() |
取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) |
InitializeLifetimeService() |
已過時。
取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance. (繼承來源 MarshalByRefObject) |
MemberwiseClone() |
建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) |
MemberwiseClone(Boolean) |
建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object. (繼承來源 MarshalByRefObject) |
OnBoundsChanged(Rectangle, Rectangle) | |
OnControlAdded(Control, Int32) |
引發 ControlAdded 事件。Raises the ControlAdded event. |
OnControlRemoved(Control, Int32) |
引發 ControlRemoved 事件。Raises the ControlRemoved event. |
OnLayout(LayoutEventArgs) | |
OnOrientationChanged() |
發生於 Orientation 屬性的值變更時。Occurs when the value of the Orientation property changes. |
ToString() |
傳回任何包含 Component 名稱的 String。Returns a String containing the name of the Component, if any. 不應覆寫此方法。This method should not be overridden. (繼承來源 Component) |
事件
Disposed |
當 Dispose() 方法的呼叫處置元件時,就會發生。Occurs when the component is disposed by a call to the Dispose() method. (繼承來源 Component) |