Method SetBorder
SetBorder(Color, bool, float)
Configures the border settings with the specified color, corner radius, and radius unit.
public virtual void SetBorder(Color color, bool radiusIsPercent = true, float cornerRadius = 0)
Parameters
colorColorThe color to apply to the border.
radiusIsPercentboolA value indicating whether the corner radius is specified as a percentage of the element's size. true if the radius is a percentage; otherwise, false.
cornerRadiusfloatThe uniform corner radius to apply to the border. Must be a non-negative value.
Remarks
If the border settings are not already initialized, this method will create a new instance of the border configuration.