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
rRectDContainer rectangle.
centerHorzboolSpecifies whether to center horizontally.
centerVertboolSpecifies whether to center vertically.