---
title: "SafetyLine Constructor (String, Single, , , Single, Single, Nullable(Single), Nullable(Single), String)"
canonical: https://customerscanvas.com/docs/cc6/C_Aurigma_DesignAtoms_Model_SafetyLine_ctor_9_733365fa.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Atoms .NET"
    versions: ["6.0.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# SafetyLine Constructor (String, Single, , , Single, Single, Nullable(Single), Nullable(Single), String)

**Applies to:** Customer's Canvas On-Premises; Design Atoms .NET 6.0.0, 6.x (may differ) · **Archived documentation**
 
Initializes a new instance of the [SafetyLine](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_SafetyLine.htm.md) class with the specified properties.
 
**Namespace:** [Aurigma.DesignAtoms.Model](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Model.htm.md) 
 **Assembly:** Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)
 
## Syntax
  
```csharp
public SafetyLine(string name,float margin,RgbColor color,RgbColor altColor,float stepPx,float widthPx,Nullable<float> leftRightMargin,Nullable<float> topBottomMargin,string borderRadius
)
```
 
### Parameters
 
 - name
     - Type: System.String
The name of this safety line. The default value is an empty string.

 - margin
     - Type: System.Single
The distance between the safety line and print area bounds, in points. The default value is `10`.

 - color
     - Type: RgbColor
The color of dashes representing a safety line; a [CSS-style color value](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_RgbColor.htm). The default value is `"rgba(255,255,255,1)"`.

 - altColor
     - Type: RgbColor
The alternate color of dashes; a [CSS-style color value](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_RgbColor.htm). The default value is `"rgba(0,0,0,1)"`.

 - stepPx
     - Type: System.Single
The dash length, in pixels. The default value is `10`.

 - widthPx
     - Type: System.Single
The width of dashes, in pixels. The default value is `1`.

 - leftRightMargin
     - Type: System.Nullable&lt;Single&gt;

 - topBottomMargin
     - Type: System.Nullable&lt;Single&gt;

 - borderRadius
     - Type: System.String
The definition of rounded corners in the CSS format. By default, this parameter is `null`, and the safety zone is not rounded. You can find examples in the [Safety Lines](https://customerscanvas.com/docs/cc6/safety-lines.htm.md) topic.
 
## See Also
  
### Reference
 
- [SafetyLine Class](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_SafetyLine.htm.md)
- [SafetyLine Overload](https://customerscanvas.com/docs/cc6/O_T_Aurigma_DesignAtoms_Model_SafetyLine_ctor.htm.md)
- [Aurigma.DesignAtoms.Model Namespace](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Model.htm.md)

### Manual
 
- [RgbColor Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_RgbColor.htm)
