---
title: "Class Dimensions"
url: "https://reference.aspose.com/psd/net/aspose.psd.xmp.types.complex.dimensions/dimensions/"
product: "Aspose.PSD for .NET API Reference"
description: "Aspose.PSD.Xmp.Types.Complex.Dimensions.Dimensions class. Containing dimensions for a drawn object"
---

{{< psd/tize >}}
## Dimensions class

Containing dimensions for a drawn object.

```csharp
public sealed class Dimensions : ComplexTypeBase
```

## Constructors

| Name | Description |
| --- | --- |
| [Dimensions](dimensions/#constructor)() | Initializes a new instance of the `Dimensions` class. |
| [Dimensions](dimensions/#constructor_1)(float, float) | Initializes a new instance of the `Dimensions` class. |

## Properties

| Name | Description |
| --- | --- |
| [Height](../../aspose.psd.xmp.types.complex.dimensions/dimensions/height/) { get; set; } | Gets or sets the height. |
| [NamespaceUri](../../aspose.psd.xmp.types.complex/complextypebase/namespaceuri/) { get; } | Gets the default namespace URI. |
| [Prefix](../../aspose.psd.xmp.types.complex/complextypebase/prefix/) { get; } | Gets the prefix. |
| [Units](../../aspose.psd.xmp.types.complex.dimensions/dimensions/units/) { get; set; } | Gets or sets units. |
| [Width](../../aspose.psd.xmp.types.complex.dimensions/dimensions/width/) { get; set; } | Gets or sets the width. |

## Methods

| Name | Description |
| --- | --- |
| override [GetXmpRepresentation](../../aspose.psd.xmp.types.complex.dimensions/dimensions/getxmprepresentation/)() | Gets the string contained value in XMP format. |

### See Also

* class [ComplexTypeBase](../../aspose.psd.xmp.types.complex/complextypebase/)
* namespace [Aspose.PSD.Xmp.Types.Complex.Dimensions](../../aspose.psd.xmp.types.complex.dimensions/)
* assembly [Aspose.PSD](../../)


