LayoutManagerPart
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:
public class LayoutManagerPart : VisualElementLayoutPart, IVisualLayoutPart
Inheritance: objectVisualElementLayoutPartLayoutManagerPart
Implements:
Inherited Members
Constructors
Initializes the manager with the element that supplies the image, text, and layout settings.
public LayoutManagerPart(LightVisualElement owner)
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.
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.
public IVisualLayoutPart LeftPart { get; set; }
Gets or sets the text layout part used by the manager.
public IVisualLayoutPart RightPart { get; set; }
Methods
Arranges the image and text parts inside the allocated bounds, accounting for alignment and right-to-left layout.
public override SizeF Arrange(RectangleF bounds)
The rectangle allocated to the combined content.
Returns:The size of the allocated bounds.
Overrides:
Measures the image and text parts within constraints derived from the owner's text-image relationship.