Table of Contents

Method GetCornerRadius

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetCornerRadius(ref DrawBorderParams)

Calculates the uniform corner radius for a given border configuration.

public static float? GetCornerRadius(ref DrawingUtils.DrawBorderParams prm)

Parameters

prm DrawingUtils.DrawBorderParams

A reference to a DrawingUtils.DrawBorderParams structure that specifies the border settings, rectangle dimensions, and corner radius parameters.

Returns

float?

A float representing the uniform corner radius, or null if no corner radius is applicable.

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.