> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# CaptionRectangle

A display rectangle, expressed as percentages of the underlying video frame, for captions converted to EBU-TT-D or TTML.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/caption-selector.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/caption-selector.ts#L165)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
const captionRectangle: medialive_alpha.CaptionRectangle = {
  height: 123,
  leftOffset: 123,
  topOffset: 123,
  width: 123,
};
```

## Properties

- `height`: number (required) — Height of the rectangle, as a percentage of the frame height (0–100).

- `leftOffset`: number (required) — Left edge position, as a percentage of the frame width (0–100).

- `topOffset`: number (required) — Top edge position, as a percentage of the frame height (0–100).

- `width`: number (required) — Width of the rectangle, as a percentage of the frame width (0–100).
