FlowLayoutSettings.WrapContents Property


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

Gets or sets a value indicating whether the contents should be wrapped or clipped when they exceed the original boundaries of their container.

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

public bool WrapContents { get; set; }

Property Value

Type: System.Boolean

true if the contents should be wrapped; otherwise, false if the contents should be clipped. The default is true.

If the area of the container is too small to display all the child controls, then at least one control will be clipped regardless of the WrapContents value.

Subsequent resizing of the container will reapply the layout to the contained controls.

.NET Framework
Available since 2.0
Return to top