Table of Contents

Method AlignHorizontal

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

AlignHorizontal(RectD, Control, SizeD, HorizontalAlignment)

Calculates horizontal Control.AlignedPosition using align parameters.

public static Control.AlignedPosition AlignHorizontal(RectD layoutBounds, Control childControl, SizeD childPreferredSize, HorizontalAlignment alignment)

Parameters

layoutBounds RectD

Rectangle in which alignment is performed.

childControl Control

Control to align.

childPreferredSize SizeD

Preferred size.

alignment HorizontalAlignment

Alignment of the control.

Returns

Control.AlignedPosition