Table of Contents

Method CenterIn

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

CenterIn(RectD, bool, bool)

Centers this rectangle in the given (usually, but not necessarily, larger) one.

public readonly RectD CenterIn(RectD r, bool centerHorz = true, bool centerVert = true)

Parameters

r RectD

Container rectangle.

centerHorz bool

Specifies whether to center horizontally.

centerVert bool

Specifies whether to center vertically.

Returns

RectD