Table of Contents

Method SetBorder

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

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

color Color

The color to apply to the border.

radiusIsPercent bool

A 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.

cornerRadius float

The 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.