Table of Contents

Method SetLocationInRectI

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetLocationInRectI(HorizontalAlignment?, VerticalAlignment?, RectI, bool)

Aligns control location inside the specified rectangle using given horizontal and vertical alignment.

public virtual void SetLocationInRectI(HorizontalAlignment? horz, VerticalAlignment? vert, RectI containerRect, bool shrinkSize = true)

Parameters

horz HorizontalAlignment?

Horizontal alignment of the control inside container.

vert VerticalAlignment?

Vertical alignment of the window inside container.

containerRect RectI

Container rectangle.

shrinkSize bool

Whether to shrink size of the control to fit in the rectangle. Optional. Default is true.