Represents a position or range within a string, defined by a start index and an optional end index.
Provides utility methods and properties to work with string positions, such as calculating length,
comparing positions, and associating the position with a specific string.
Remarks
The Start property defines the starting index of the position.
The End property (optional) defines the exclusive end index of the position.
The Length property computes the length of the range as End - Start.
The RelatedString property can be used to associate this position with a specific string.
Represents a position or range within a string, defined by a start index and an optional end index.
Provides utility methods and properties to work with string positions, such as calculating length, comparing positions, and associating the position with a specific string.
Remarks
Start
property defines the starting index of the position.End
property (optional) defines the exclusive end index of the position.Length
property computes the length of the range asEnd - Start
.RelatedString
property can be used to associate this position with a specific string.Example
Since
4.0.0
Version
2022-06-26