Method CenterIn
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
RectDContainer rectangle.
centerHorz
boolSpecifies whether to center horizontally.
centerVert
boolSpecifies whether to center vertically.