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

# Class StringExtensionMethods

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

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

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

```csharp title="Syntax"
public static class StringExtensionMethods
```

## Inherited Members

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

## Methods

### SafeSubstring

```csharp
public static string SafeSubstring(this string source, int index, int length)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *source* |  |
| `System.Int32` | *index* |  |
| `System.Int32` | *length* |  |

##### Returns

`System.String`
