# Sandbox.UI.BorderShape

The shape of a panel's border box, generalising `border-radius` from rounded corners to an
arbitrary polygon or a circle. Like `border-radius`, it shapes what the panel itself paints -
background, borders and hit testing - and does not clip descendants; that stays the job of
[Sandbox.UI.OverflowMode](/api/Sandbox.UI.OverflowMode). Polygons currently support up to [Sandbox.UI.BorderShape.MaxPoints](/api/Sandbox.UI.BorderShape/MaxPoints) vertices.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Fields

- [`MaxPoints`](/api/Sandbox.UI.BorderShape/MaxPoints)

## Properties

- [`CircleCenterX`](/api/Sandbox.UI.BorderShape/CircleCenterX)
- [`CircleCenterY`](/api/Sandbox.UI.BorderShape/CircleCenterY)
- [`CircleRadius`](/api/Sandbox.UI.BorderShape/CircleRadius)
- [`IsNone`](/api/Sandbox.UI.BorderShape/IsNone)
- [`Kind`](/api/Sandbox.UI.BorderShape/Kind)
- [`None`](/api/Sandbox.UI.BorderShape/None)
- [`Points`](/api/Sandbox.UI.BorderShape/Points): Read-only view of the active polygon points. Access and direct enumeration do not allocate.

## Methods

- [`ResolveCircle`](/api/Sandbox.UI.BorderShape/ResolveCircle)
