Skip to content

TextFile.CreatePosition Method

Definition

Creates a TextFilePosition from this TextFile.

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

View source

Parameters

Name Type Description
startIndex Int32 The start index of the position in the file.
length Int32 The length of the file.
startLineIndex Int32 Zero based index of the start line of the position in the text file.
startColumnIndex Int32 Zero based index of the start column of the position in the text file.

Returns

TextFilePosition

A new TextFilePosition instance.