---
title: Size
description: Structure representing a size.
---

Structure representing a size.

The structure has a width and a height to specify a two-dimensional size.

## Properties

### height

Height value.

```typescript
height: number
```

### width

Width value.

```typescript
width: number
```

## Methods

<span id="-new-size" class="api-anchor"></span>

### new Size(width, height)

Constructs a new size.

```typescript
new Size(width: number, height: number)
```

#### Parameters

**`width` `number`**

Width value.

**`height` `number`**

Height value.