LayoutEventArgs.AffectedProperty Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the property affected by the change.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member AffectedProperty : string with get

Property Value

Type: System.String

The property affected by the change.

If a child control has been made visible since the last layout operation, the Visible property is affected. The AffectedProperty property is set to null if no value was provided when the PerformLayout method was called.

The following code example uses the AffectedProperty and AffectedControl properties as LayoutEventHandler arguments to coordinate the size of a Windows form and its controls with various property changes to both the Windows form and the controls.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top