BoxMath.AlignWith Method

Namespace:
Weavy.Core.Imaging
Assembly:
Weavy.Core.dll

AlignWith(RectangleF, RectangleF, ContentAlignment)

Aligns the specified System.Drawing.RectangleF with a container System.Drawing.RectangleF using the specified System.Drawing.ContentAlignment. The container can be smaller than rect.

public static RectangleF AlignWith(RectangleF rect, RectangleF container, ContentAlignment align)

Parameters

rect
System.Drawing.RectangleF
container
System.Drawing.RectangleF
align
System.Drawing.ContentAlignment

Returns

System.Drawing.RectangleF