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

# Class SafetyLine

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

###### **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 SafetyLine
```

## Inherited Members

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

## Constructors

### SafetyLine

```csharp
public SafetyLine()
```

### SafetyLine

```csharp
public SafetyLine(string name, float margin, RgbColor color, RgbColor altColor, float stepPx, float widthPx, float? leftRightMargin = null, float? topBottomMargin = null, string borderRadius = null)
```

## Methods

### Normalize

```csharp
public void Normalize()
```

### Merge

```csharp
public void Merge(SafetyLine other, bool mergeMargin = false)
```

##### Parameters

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

### GetRectangle

```csharp
public RectangleF GetRectangle(RectangleF bounds)
```

##### Parameters

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

##### Returns

`System.Drawing.RectangleF`

### GetCornerRadiuses

```csharp
public SizeF[] GetCornerRadiuses(RectangleF bounds, float dpi)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Drawing.RectangleF` | *bounds* |  |
| `System.Single` | *dpi* |  |

##### Returns

`System.Drawing.SizeF[]`

### Clone

```csharp
public SafetyLine Clone()
```

##### Returns

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

### Equals

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

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.SafetyLine](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model/SafetyLine.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`

### GetBytes

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

##### Returns

`System.Byte[]`

## Fields

### Name

```csharp
public string Name
```

### Margin

```csharp
public Margin Margin
```

### Color

```csharp
public RgbColor Color
```

### AltColor

```csharp
public RgbColor AltColor
```

### StepPx

```csharp
public float StepPx
```

### WidthPx

```csharp
public float WidthPx
```

### BorderRadius

```csharp
public string BorderRadius
```

### PdfBox

```csharp
public PdfBox? PdfBox
```
