ITextSnapshotLineCollection Interface
Encapsulates a collection of ITextSnapshotLine objects.
public interface ITextSnapshotLineCollection
Methods
GetLineTerminator(int)
Returns the LineTerminator of the specified line, if it is not the last document line.
LineTerminator? GetLineTerminator(int index)
| Parameter | Type | Description |
|---|---|---|
| index | int | The index of the line to examine. |
Returns
See Also
GetLineTextRange(int)
Returns the TextRange of the specified line, excluding the line terminator.
TextRange GetLineTextRange(int index)
| Parameter | Type | Description |
|---|---|---|
| index | int | The index of the line to examine. |
Returns
See Also
IndexOf(int)
Finds the index of the ITextSnapshotLine that contains the specified offset.
int IndexOf(int offset)
| Parameter | Type | Description |
|---|---|---|
| offset | int | The offset to look for. |
Returns
- int:
The index of the ITextSnapshotLine that contains the specified offset.
See Also
Extension Methods
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)