In This Article

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

LineTerminator?

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

TextRange

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

See Also