## 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](../../aspose.drawing/characterrange/first/) { get; set; } | Gets or sets the position in the string of the first character of this CharacterRange. |
| [Length](../../aspose.drawing/characterrange/length/) { get; set; } | Gets or sets the number of positions in this CharacterRange. |

## Methods

| Name | Description |
| --- | --- |
| override [Equals](../../aspose.drawing/characterrange/equals/)(object) | Gets a value indicating whether this object is equivalent to the specified object. |
| override [GetHashCode](../../aspose.drawing/characterrange/gethashcode/)() | Returns the hash code for this instance. |
| [operator ==](../../aspose.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 !=](../../aspose.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 [Aspose.Drawing](../../aspose.drawing/)
* assembly [Aspose.Drawing.Common](../../)


