Method CoerceBounds
CoerceBounds(RectD)
Adjusts the specified rectangle to conform to minimum and maximum size constraints, and optionally restricts its position based on MinimumLocation.
protected virtual RectD CoerceBounds(RectD value)
Parameters
valueRectDThe input bounds to coerce.
Returns
Remarks
This method ensures that the rectangle's dimensions respect the MinimumSize and MaximumSize limits. If MinimumLocation is defined, the rectangle's top-left corner is coerced to remain at or below the specified minimum location.