# Constants
{: .no_toc }

The **Constants** module in the **CustomControls DESIGNER** library declares the enumerations and UDTs shared across the entire **CustomControls** package.

The module is internal to the DESIGNER library; user code does not reference it by name. The members it exposes are:

- **Enumerations** --- the full set of public constants used by the package's controls, style objects, and form options. Each is documented on its own page under [Enumerations](/tB/Packages/CustomControls/Enumerations/index.md).
- **UDTs** --- [**SerializeInfo**](/tB/Packages/CustomControls/Framework/SerializeInfo.md) and [**Canvas**](/tB/Packages/CustomControls/Framework/Canvas.md), the two value types passed to custom control implementations; both carry twinBASIC pseudo-DLL method bindings and are documented under [Framework](/tB/Packages/CustomControls/Framework/index.md).

## Enumerations

| Enumeration | Purpose |
|-------------|---------|
| [ColorRGBA](/tB/Packages/CustomControls/Enumerations/ColorRGBA.md) | `Long`-compatible type alias for 32-bit ABGR colour values |
| [CornerShape](/tB/Packages/CustomControls/Enumerations/CornerShape.md) | How a single corner of a control is shaped: curve, notch, or cut-out |
| [Customtate](/tB/Packages/CustomControls/Enumerations/Customtate.md) | Reserved duplicate of [**WindowState**](/tB/Packages/CustomControls/Enumerations/WindowState.md) |
| [DockMode](/tB/Packages/CustomControls/Enumerations/DockMode.md) | How a control is docked inside its container |
| [FillPattern](/tB/Packages/CustomControls/Enumerations/FillPattern.md) | The gradient or fill pattern used by a [**Fill**](/tB/Packages/CustomControls/Styles/Fill.md) |
| [FontWeight](/tB/Packages/CustomControls/Enumerations/FontWeight.md) | Font weights from **tbThin** (100) through **tbHeavy** (900), mirroring the OpenType `wght` scale |
| [PixelCount](/tB/Packages/CustomControls/Enumerations/PixelCount.md) | `Long`-compatible type alias for measurements expressed in pixels |
| [PointSize](/tB/Packages/CustomControls/Enumerations/PointSize.md) | `Long`-compatible type alias for font sizes expressed in points |
| [StartupPosition](/tB/Packages/CustomControls/Enumerations/StartupPosition.md) | Initial position of a form when it is first shown |
| [TextAlignment](/tB/Packages/CustomControls/Enumerations/TextAlignment.md) | Horizontal and vertical alignment of text within a [**TextRendering**](/tB/Packages/CustomControls/Styles/TextRendering.md) |
| [TextOverflowMode](/tB/Packages/CustomControls/Enumerations/TextOverflowMode.md) | How text longer than the available area is truncated |
| [BorderStyle](/tB/Packages/CustomControls/Enumerations/BorderStyle.md) | Window-frame style passed to [**WindowsFormOptions.BorderStyle**](/tB/Packages/CustomControls/WaynesForm/WindowsFormOptions.md#borderstyle) |
| [WindowState](/tB/Packages/CustomControls/Enumerations/WindowState.md) | The minimized / normal / maximized window state of a form |

## UDTs

| Type | Purpose |
|------|---------|
| [SerializeInfo](/tB/Packages/CustomControls/Framework/SerializeInfo.md) | Per-instance serializer returned by [**CustomControlContext.GetSerializer**](/tB/Packages/CustomControls/Framework/CustomControlContext.md#getserializer); used to deserialize designer-set property values and to query the runtime mode |
| [Canvas](/tB/Packages/CustomControls/Framework/Canvas.md) | Drawing surface passed to [**ICustomControl.Paint**](/tB/Packages/CustomControls/Framework/ICustomControl.md#paint); exposes element-adding and DPI / size query methods |

### See Also

- [Enumerations](/tB/Packages/CustomControls/Enumerations/index.md) -- package enumeration index
- [Framework](/tB/Packages/CustomControls/Framework/index.md) -- host-side contract for custom control authors
