New to Telerik UI for WinForms? Start a free 30-day trial

Defines a content part that a visual-element layout can measure and arrange independently.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface IVisualLayoutPart

Properties

Gets the rectangle assigned to the part during arrangement.

C#
RectangleF Bounds { get; }

Gets the size reported by the part's most recent measurement.

C#
SizeF DesiredSize { get; }

Gets or sets the outer spacing used when the part is arranged beside other content.

C#
Padding Margin { get; set; }

Gets or sets padding associated with the part. The built-in LayoutManagerPart does not apply this value; it uses Margin to space its image and text parts.

C#
Padding Padding { get; set; }

Methods

Assigns final bounds to the part.

C#
SizeF Arrange(RectangleF bounds)
Parameters:boundsRectangleF

The rectangle allocated to the part by its layout.

Returns:

SizeF

The size occupied by the part after arrangement.

Measures the desired size of the part within the available layout area.

C#
SizeF Measure(SizeF availableSize)
Parameters:availableSizeSizeF

The width and height available to the part.

Returns:

SizeF

The desired size calculated for the supplied constraints.