Table of Contents

Method SetSelectionAndCurrentItemRoundBorders

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

SetSelectionAndCurrentItemRoundBorders(bool, bool, float)

Configures the selection and current item borders to be rounded or not, with optional customization of the corner radius.

public virtual void SetSelectionAndCurrentItemRoundBorders(bool isRound, bool radiusIsPercent = true, float cornerRadius = 25)

Parameters

isRound bool

true to apply rounded borders to the selection and current item; otherwise, false to reset borders.

radiusIsPercent bool

true if the corner radius is specified as a percentage of the item's dimensions; otherwise, false. The default value is true.

cornerRadius float

The corner radius to apply to the rounded borders. The default value is 25.

Remarks

When isRound is true, the method applies the specified corner radius and percentage mode to both the selection and current item borders. If isRound is false, default borders are restored.