Skip to content

TextFile.CreatePosition Method ​

Definition ​

Creates a TextFilePosition from this TextFile.

c#
public TextFilePosition CreatePosition(int startIndex, int length, int startLineIndex, int startColumnIndex);

View source

Parameters ​

NameTypeDescription
startIndexInt32The start index of the position in the file.
lengthInt32The length of the file.
startLineIndexInt32Zero based index of the start line of the position in the text file.
startColumnIndexInt32Zero based index of the start column of the position in the text file.

Returns ​

TextFilePosition

A new TextFilePosition instance.