Method GetCornerRadius
GetCornerRadius(ref DrawBorderParams)
Calculates the uniform corner radius for a given border configuration.
public static float? GetCornerRadius(ref DrawingUtils.DrawBorderParams prm)
Parameters
prmDrawingUtils.DrawBorderParamsA reference to a DrawingUtils.DrawBorderParams structure that specifies the border settings, rectangle dimensions, and corner radius parameters.
Returns
Remarks
If prm specifies an override for border corner
settings, the
corner radius is calculated based on the rectangle dimensions and
the provided corner radius values.
Otherwise, the corner radius is determined by the associated border's settings.