# Dimension

> A simple object consisting of the position and size measurements. Effectively combines [Size](https://titaniumsdk.com/docs/sdk/Size.md) and [Point](https://titaniumsdk.com/docs/sdk/Point.md) but ensures numeric x/y values.

- Source: https://titaniumsdk.com/docs/sdk/12.6.3/Dimension
- Titanium SDK version: 12.6.3
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 2.0.0
- Extends: Size
- Inheritance: Size

When a dimension is returned by the [rect](https://titaniumsdk.com/docs/sdk/Titanium.UI.View.md#rect) property, `x` represents the
view's left position, and `y` represents the view's top position.

The [size](https://titaniumsdk.com/docs/sdk/Titanium.UI.View.md#size) property returns a dimension object with `x` and `y` both set
to 0.

## Properties

### x

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

The x-axis coordinate of the position. When returned by [Titanium.UI.View.rect](https://titaniumsdk.com/docs/sdk/Titanium.UI.View.md#rect) the position is relative to it's parent.

### y

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

The y-axis coordinate of the position. When returned by [Titanium.UI.View.rect](https://titaniumsdk.com/docs/sdk/Titanium.UI.View.md#rect) the position is relative to it's parent.

## Inherited members

2 members are inherited. Each is documented on the type that declares it.

- [Size](https://titaniumsdk.com/docs/sdk/12.6.3/Size.md): `height`, `width`

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

