## CharacterRange structure

Specifies a range of character positions within a string.

```csharp
public struct CharacterRange
```

## Constructors

| Name | Description |
| --- | --- |
| [CharacterRange](characterrange/)(int, int) | Initializes a new instance of the `CharacterRange` struct, specifying a range of character positions within a string. |

## Properties

| Name | Description |
| --- | --- |
| [First](../../system.drawing/characterrange/first/) { get; set; } | Gets or sets the position in the string of the first character of this CharacterRange. |
| [Length](../../system.drawing/characterrange/length/) { get; set; } | Gets or sets the number of positions in this CharacterRange. |

## Methods

| Name | Description |
| --- | --- |
| override [Equals](../../system.drawing/characterrange/equals/)(object) | Gets a value indicating whether this object is equivalent to the specified object. |
| override [GetHashCode](../../system.drawing/characterrange/gethashcode/)() | Returns the hash code for this instance. |
| [operator ==](../../system.drawing/characterrange/op_equality/) | Compares two CharacterRange objects. Gets a value indicating whether the First and Length values of the two CharacterRange objects are equal. |
| [operator !=](../../system.drawing/characterrange/op_inequality/) | Compares two CharacterRange objects. Gets a value indicating whether the First or Length values of the two CharacterRange objects are not equal. |

### See Also

* namespace [System.Drawing](../../system.drawing/)
* assembly [Aspose.Drawing](../../)


