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

Measures and arranges an image part and a text part according to the owning element's TextImageRelation and alignment settings.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class LayoutManagerPart : VisualElementLayoutPart, IVisualLayoutPart

Inheritance: objectVisualElementLayoutPartLayoutManagerPart

Implements: IVisualLayoutPart

Inherited Members VisualElementLayoutPart.MarginVisualElementLayoutPart.PaddingVisualElementLayoutPart.OwnerVisualElementLayoutPart.BoundsVisualElementLayoutPart.DesiredSize

Constructors

Initializes the manager with the element that supplies the image, text, and layout settings.

C#
public LayoutManagerPart(LightVisualElement owner)
Parameters:ownerLightVisualElement

The element whose content parts are measured and arranged.

Properties

When set to true, makes every subsequent Arrange(RectangleF) call remeasure the parts even if the allocated size has not changed.

C#
public bool IsDirty { set; }

Arrangement does not clear this flag; set it to false when repeated measurement is no longer needed.

Gets or sets the image layout part used by the manager.

C#
public IVisualLayoutPart LeftPart { get; set; }

Gets or sets the text layout part used by the manager.

C#
public IVisualLayoutPart RightPart { get; set; }

Methods

Arranges the image and text parts inside the allocated bounds, accounting for alignment and right-to-left layout.

C#
public override SizeF Arrange(RectangleF bounds)
Parameters:boundsRectangleF

The rectangle allocated to the combined content.

Returns:

SizeF

The size of the allocated bounds.

Overrides: VisualElementLayoutPart.Arrange(RectangleF)

Measures the image and text parts within constraints derived from the owner's text-image relationship.

C#
public override SizeF Measure(SizeF availableSize)
Parameters:availableSizeSizeF

The width and height available to the combined content.

Returns:

SizeF

The combined desired size of the image and text parts.

Overrides: VisualElementLayoutPart.Measure(SizeF)