LabelArray.Layout 事件

定义

在控件应重新定位其子控件时发生。Occurs when a control should reposition its child controls.

public:
 event System::Windows::Forms::LayoutEventHandler ^ Layout;
public event System.Windows.Forms.LayoutEventHandler Layout;
member this.Layout : System.Windows.Forms.LayoutEventHandler 
Public Custom Event Layout As LayoutEventHandler 
Public Event Layout As LayoutEventHandler 

事件类型

LayoutEventHandler

注解

Layout 添加或移除子控件、当控件的边界发生更改时,以及当发生其他可能会影响控件布局的更改时,将发生此事件。The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and when other changes occur that can affect the layout of the control. 可以通过使用和方法来禁止布局事件 SuspendLayout ResumeLayoutThe layout event can be suppressed by using the SuspendLayout and ResumeLayout methods. 暂停布局使你可以对控件执行多个操作,而无需对每个更改执行布局。Suspending layout enables you to perform multiple actions on a control without having to perform a layout for each change. 例如,如果调整控件大小和移动控件,每个操作都将引发一个 Layout 事件。For example, if you resize and move a control, each operation would raise a Layout event.

有关如何处理事件的详细信息,请参阅 处理和引发事件For more information about how to handle events, see Handling and Raising Events.

备注

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 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于

另请参阅