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

# Class ViolationSettings

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

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

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

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

## Inherited Members

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

## Constructors

### ViolationSettings

```csharp
public ViolationSettings()
```

### ViolationSettings

```csharp
public ViolationSettings(bool defaultValue)
```

## Properties

### AllowSafetyLines

```csharp
public bool AllowSafetyLines { get; set; }
```

### AllowBleedArea

```csharp
public bool AllowBleedArea { get; set; }
```

### AllowRegion

```csharp
public bool AllowRegion { get; set; }
```

## Methods

### Equals

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

##### Parameters

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

### DeepClone&lt;TViolationSettings&gt;

```csharp
public virtual TViolationSettings DeepClone<TViolationSettings>(TViolationSettings clone = null)
    where TViolationSettings : ViolationSettings
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `<TViolationSettings>` | *clone* |  |

##### Returns

`<TViolationSettings>`

### Clone

```csharp
public ViolationSettings Clone()
```

##### Returns

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

### OnPropertyChanged

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

##### Parameters

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

## Events

### PropertyChanged

```csharp
public event PropertyChangedEventHandler PropertyChanged
```
