LayoutEventArgs Constructors

Definition

Initializes a new instance of the LayoutEventArgs class.

Overloads

LayoutEventArgs(IComponent, String)

Initializes a new instance of the LayoutEventArgs class with the specified component and property affected.

LayoutEventArgs(Control, String)

Initializes a new instance of the LayoutEventArgs class with the specified control and property affected.

LayoutEventArgs(IComponent, String)

Source:
LayoutEventArgs.cs
Source:
LayoutEventArgs.cs
Source:
LayoutEventArgs.cs

Initializes a new instance of the LayoutEventArgs class with the specified component and property affected.

C#
public LayoutEventArgs(System.ComponentModel.IComponent affectedComponent, string affectedProperty);
C#
public LayoutEventArgs(System.ComponentModel.IComponent? affectedComponent, string? affectedProperty);

Parameters

affectedComponent
IComponent

The Component affected by the layout change.

affectedProperty
String

The property affected by the layout change.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

LayoutEventArgs(Control, String)

Source:
LayoutEventArgs.cs
Source:
LayoutEventArgs.cs
Source:
LayoutEventArgs.cs

Initializes a new instance of the LayoutEventArgs class with the specified control and property affected.

C#
public LayoutEventArgs(System.Windows.Forms.Control affectedControl, string affectedProperty);
C#
public LayoutEventArgs(System.Windows.Forms.Control? affectedControl, string? affectedProperty);

Parameters

affectedControl
Control

The Control affected by the layout change.

affectedProperty
String

The property affected by the layout change.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9