Enum
RadAutoSizeMode

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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public enum RadAutoSizeMode

Fields

Auto

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

Declaration

cs-api-definition
Auto = 2

Field Value

RadAutoSizeMode

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.

FitToAvailableSize

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

Declaration

cs-api-definition
FitToAvailableSize = 0

Field Value

RadAutoSizeMode

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.

WrapAroundChildren

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

Declaration

cs-api-definition
WrapAroundChildren = 1

Field Value

RadAutoSizeMode

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.