Class TextPosition
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
Properties
Column
Gets or sets column number.
public int Column { get; set; }
Property Value
Line
Gets or sets line number.
public int Line { get; set; }
Property Value
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
otherTextPositionAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.