EnumRadAutoSizeMode
Specifies how RadElements automatically size themselves relative to their content and available space.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public enum RadAutoSizeMode
Fields
Auto
Specifies automatic sizing behavior that adapts to the element's context and content.
Declaration
Auto = 2
Field Value
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
FitToAvailableSize = 0
Field Value
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
WrapAroundChildren = 1
Field Value
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.