# MobileScreenRect Class

> Use this class to specify the rectangular area of the device screen, for taking a screenshot.

Use this class to specify the rectangular area of the device screen, for taking a screenshot.

## Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

## Syntax

```
public class MobileScreenRect
```

The `MobileScreenRect` type exposes the following members.

## Constructors

```
public MobileScreenRect()
```

`MobileScreenRect`
:   Initializes a new instance of the `MobileScreenRect`
    class.

## MobileScreenRect properties

Configure the following properties for the `MobileScreenRect` class.

### CoordinatesType property

Specifies the coordinates type. Choose from the following options:

* `PhysicalPixels`
* `DeviceIndependentPixels`

#### Syntax

**Property Value**: `CoordinatesTypeEnum`

```
public CoordinatesTypeEnum CoordinatesType { get; set; }
```

### screenRect property

Specifies the rectangular area of the device screen that you want to take a screenshot
of.

#### Syntax

**Property Value**: [Rect](https://learn.microsoft.com/en-us/dotnet/api/system.windows.rect?view=windowsdesktop-8.0)

```
public Rect screenRect { get; set; }
```
