[]
Gets the index of the CharRange that contains the specified position within the text.
public int GetRangeIndexFromPosition(int charPosition)
| Type | Name | Description |
|---|---|---|
| int | charPosition | Position within the text. |
| Type | Description |
|---|---|
| int | Index of the CharRange in the list that contains the specified position, or -1 if there is no error at the specified position. |