Table of Contents

Method AlignVertical

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

AlignVertical(RectD, Control, SizeD, VerticalAlignment)

Calculates vertical Control.AlignedPosition using align parameters.

public static Control.AlignedPosition AlignVertical(RectD layoutBounds, Control control, SizeD childPreferredSize, VerticalAlignment alignment)

Parameters

layoutBounds RectD

Rectangle in which alignment is performed.

control Control

Control to align.

childPreferredSize SizeD

Preferred size.

alignment VerticalAlignment

Alignment of the control.

Returns

Control.AlignedPosition