New to Telerik UI for WinFormsStart a free 30-day trial

Specifies how RadElements automatically size themselves relative to their content and available space.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public enum RadAutoSizeMode

Fields

Specifies automatic sizing behavior that adapts to the element's context and content.

C#
Auto = 2
Remarks:

When set to Auto, the element will choose the most appropriate sizing behavior based on its type, content, and container context. This provides intelligent automatic sizing that balances content requirements with available space.

Specifies that the element should size itself to fit within the available space provided by its container.

C#
FitToAvailableSize = 0
Remarks:

When set to FitToAvailableSize, the element will adjust its size to utilize the space allocated by its parent container or layout manager, potentially stretching or shrinking to match the available dimensions.

Specifies that the element should size itself to exactly fit around its child elements.

C#
WrapAroundChildren = 1
Remarks:

When set to WrapAroundChildren, the element will calculate its size based on the total space required by its child elements, wrapping tightly around them without extra space. This mode is useful for containers that should be exactly as large as their content.