Table of Contents

Method AlignHorizontal

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

AlignHorizontal(RectD, AbstractControl, SizeD, HorizontalAlignment)

Calculates horizontal AbstractControl.AlignedPosition using align parameters.

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

Parameters

layoutBounds RectD

Rectangle in which alignment is performed.

childControl AbstractControl

Control to align.

childPreferredSize SizeD

Preferred size.

alignment HorizontalAlignment

Alignment of the control.

Returns

AbstractControl.AlignedPosition