Table of Contents

Method SetLocationInWindow

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

SetLocationInWindow(HorizontalAlignment?, VerticalAlignment?, AbstractControl?, bool)

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

public virtual void SetLocationInWindow(HorizontalAlignment? horz, VerticalAlignment? vert, AbstractControl? window, bool shrinkSize = true)

Parameters

horz HorizontalAlignment?

Horizontal alignment of the control inside container.

vert VerticalAlignment?

Vertical alignment of the window inside container.

window AbstractControl

Window which bounds are used as a container rectangle.

shrinkSize bool

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