Constructor RoundedRectangle
RoundedRectangle(Rectangle, double)
Initializes a new rounded rectangle from a bounding rectangle and a corner radius.
public RoundedRectangle(Rectangle bounds, double cornerRadius)
Parameters
boundsRectangleThe bounding rectangle.
cornerRadiusdoubleThe corner radius. Clamped to
min(Width, Height) / 2.
Exceptions
- ArgumentNullException
Thrown if
boundsis null.- ArgumentOutOfRangeException
Thrown if
cornerRadiusis negative.