ToolStripPanelRow ToolStripPanelRow ToolStripPanelRow ToolStripPanelRow Class

定义

表示 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) ToolStripPanelRow(ToolStripPanel) ToolStripPanelRow(ToolStripPanel)

初始化 ToolStripPanelRow 类的新实例,指定作为容器的 ToolStripPanelInitializes a new instance of the ToolStripPanelRow class, specifying the containing ToolStripPanel.

属性

Bounds Bounds Bounds Bounds

获取 ToolStripPanelRow 的大小和位置(以像素为单位),包括其相对于父控件的非客户端元素。Gets the size and location of the ToolStripPanelRow, including its nonclient elements, in pixels, relative to the parent control.

CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

获取一个指示组件是否可以引发事件的值。Gets a value indicating whether the component can raise an event.

(Inherited from Component)
Container Container Container Container

获取 IContainer,它包含 ComponentGets the IContainer that contains the Component.

(Inherited from Component)
Controls Controls Controls Controls

获取 ToolStripPanelRow 中的控件。Gets the controls in the ToolStripPanelRow.

DefaultMargin DefaultMargin DefaultMargin DefaultMargin

获取控件之间默认指定的间距(以像素为单位)。Gets the space, in pixels, that is specified by default between controls.

DefaultPadding DefaultPadding DefaultPadding DefaultPadding

获取控件内容的内部间距(以像素为单位)。Gets the internal spacing, in pixels, of the contents of a control.

DesignMode DesignMode DesignMode DesignMode

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
DisplayRectangle DisplayRectangle DisplayRectangle DisplayRectangle

获取控件的显示区域。Gets the display area of the control.

Events Events Events Events

获取附加到此 Component 的事件处理程序的列表。Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
LayoutEngine LayoutEngine LayoutEngine LayoutEngine

获取控件的布局引擎的实例。Gets an instance of the control's layout engine.

Margin Margin Margin Margin

获取或设置控件之间的空间。Gets or sets the space between controls.

Orientation Orientation Orientation Orientation

获取 ToolStripPanelRow 相对于包含它的 ToolStripPanel 的布局方向。Gets the layout direction of the ToolStripPanelRow relative to its containing ToolStripPanel.

Padding Padding Padding Padding

获取或设置控件内的空白。Gets or sets padding within the control.

Site Site Site Site

获取或设置 ComponentISiteGets or sets the ISite of the Component.

(Inherited from Component)
ToolStripPanel ToolStripPanel ToolStripPanel ToolStripPanel

获取 ToolStripPanel,它包含 ToolStripPanelRowGets the ToolStripPanel that contains the ToolStripPanelRow.

方法

CanMove(ToolStrip) CanMove(ToolStrip) CanMove(ToolStrip) CanMove(ToolStrip)

获取或设置一个值,指示能否将 ToolStrip 拖放到 ToolStripPanelRow 中。Gets or sets a value indicating whether a ToolStrip can be dragged and dropped into a ToolStripPanelRow.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose() Dispose() Dispose() Dispose()

释放由 Component 使用的所有资源。Releases all resources used by the Component.

(Inherited from Component)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 ToolStripPanelRow 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the ToolStripPanelRow and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
OnBoundsChanged(Rectangle, Rectangle) OnBoundsChanged(Rectangle, Rectangle) OnBoundsChanged(Rectangle, Rectangle) OnBoundsChanged(Rectangle, Rectangle)

Bounds 属性更改时发生。Occurs when the Bounds property changes.

OnControlAdded(Control, Int32) OnControlAdded(Control, Int32) OnControlAdded(Control, Int32) OnControlAdded(Control, Int32)

引发 ControlAdded 事件。Raises the ControlAdded event.

OnControlRemoved(Control, Int32) OnControlRemoved(Control, Int32) OnControlRemoved(Control, Int32) OnControlRemoved(Control, Int32)

引发 ControlRemoved 事件。Raises the ControlRemoved event.

OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs)

引发 Layout 事件。Raises the Layout event.

OnOrientationChanged() OnOrientationChanged() OnOrientationChanged() OnOrientationChanged()

Orientation 属性的值更改时发生。Occurs when the value of the Orientation property changes.

ToString() ToString() ToString() ToString()

返回包含 Component 的名称的 String(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(Inherited from Component)

事件

Disposed Disposed Disposed Disposed

当通过调用 Dispose() 方法释放组件时发生。Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)

适用于