---
title: "Class Margin | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model/Margin/"
---

# Class Margin

> **Inheritance:** `System.Object` -> Margin

###### **Namespace**: [Aurigma.DesignAtoms.Model](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.md)

###### **Assembly**: Aurigma.DesignAtoms.Model.dll

```csharp title="Syntax"
public class Margin
```

## Implements

* `System.ComponentModel.INotifyPropertyChanged`

## Inherited Members

* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### Margin

```csharp
public Margin(float left, float top, float right, float bottom)
```

### Margin

```csharp
public Margin(float horizontal, float vertical)
```

### Margin

```csharp
public Margin(float margin)
```

## Properties

### Left

```csharp
public float Left { get; set; }
```

### Top

```csharp
public float Top { get; set; }
```

### Right

```csharp
public float Right { get; set; }
```

### Bottom

```csharp
public float Bottom { get; set; }
```

### IsUniform

```csharp
public bool IsUniform { get; }
```

### UniformValue

```csharp
public float UniformValue { get; }
```

## Methods

### Inflate

```csharp
public void Inflate(float amount)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Single` | *amount* |  |

### GetMargin

```csharp
public static Margin GetMargin(RectangleF inner, RectangleF outer)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Drawing.RectangleF` | *inner* |  |
| `System.Drawing.RectangleF` | *outer* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Margin](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model/Margin.md)

### GetBytes

```csharp
public byte[] GetBytes()
```

##### Returns

`System.Byte[]`

### Clone

```csharp
public Margin Clone()
```

##### Returns

[Aurigma.DesignAtoms.Model.Margin](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model/Margin.md)

### ToString

```csharp
public override string ToString()
```

##### Returns

`System.String`

##### Overrides

* `System.Object.ToString`

### Equals

```csharp
protected bool Equals(Margin other)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Margin](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model/Margin.md) | *other* |  |

##### Returns

`System.Boolean`

### Equals

```csharp
public override bool Equals(object obj)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Object` | *obj* |  |

##### Returns

`System.Boolean`

##### Overrides

* `System.Object.Equals(System.Object)`

### GetHashCode

```csharp
public override int GetHashCode()
```

##### Returns

`System.Int32`

##### Overrides

* `System.Object.GetHashCode`

### IsEmpty

```csharp
public static bool IsEmpty(Margin margin)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Margin](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model/Margin.md) | *margin* |  |

##### Returns

`System.Boolean`

### OnPropertyChanged

```csharp
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged(string propertyName = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *propertyName* |  |

## Events

### PropertyChanged

```csharp
public event PropertyChangedEventHandler PropertyChanged
```
