Table of Contents

Class TextPosition

Namespace
Loehnert.Lisrt.Scripting.Editor.File.IntelliSense
Assembly
Loehnert.Lisrt.Scripting.dll

Represents a position in a text document.

public class TextPosition : IEquatable<TextPosition>
Inheritance
TextPosition
Implements
Inherited Members

Constructors

TextPosition(int, int)

Initializes a new instance of the TextPosition class.

public TextPosition(int line, int column)

Parameters

line int

Line number.

column int

Column number.

Properties

Column

Gets or sets column number.

public int Column { get; set; }

Property Value

int

Line

Gets or sets line number.

public int Line { get; set; }

Property Value

int

Methods

Clone()

Creates a clone.

public TextPosition Clone()

Returns

TextPosition

A cloned position.

Equals(TextPosition)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TextPosition other)

Parameters

other TextPosition

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.