A line/column position.
Text editor lines/columns are counted started from one.
| C# | Visual Basic | Visual C++ |
[SerializableAttribute] public struct TextLocation : IComparable<TextLocation>, IEquatable<TextLocation>
<SerializableAttribute> _ Public Structure TextLocation _ Implements IComparable(Of TextLocation), IEquatable(Of TextLocation)
[SerializableAttribute] public value class TextLocation : IComparable<TextLocation>, IEquatable<TextLocation>
| All Members | Constructors | Methods | Properties | Fields | |
| Icon | Member | Description |
|---|---|---|
| TextLocation(Int32, Int32) |
Creates a TextLocation instance.
| |
| Column |
Gets the column number.
| |
| CompareTo(TextLocation) |
Compares two text locations.
| |
| Empty |
Represents no text location (0, 0).
| |
| Equality(TextLocation, TextLocation) |
Equality test.
| |
| Equals(Object) |
Equality test.
(Overrides ValueType.Equals(Object).) | |
| Equals(TextLocation) |
Equality test.
| |
| GetHashCode()()()() |
Gets a hash code.
(Overrides ValueType.GetHashCode()()()().) | |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| GreaterThan(TextLocation, TextLocation) |
Compares two text locations.
| |
| GreaterThanOrEqual(TextLocation, TextLocation) |
Compares two text locations.
| |
| Inequality(TextLocation, TextLocation) |
Inequality test.
| |
| IsEmpty |
Gets whether the TextLocation instance is empty.
| |
| LessThan(TextLocation, TextLocation) |
Compares two text locations.
| |
| LessThanOrEqual(TextLocation, TextLocation) |
Compares two text locations.
| |
| Line |
Gets the line number.
| |
| MinColumn |
Constant of the minimum column.
| |
| MinLine |
Constant of the minimum line.
| |
| ToString()()()() |
Gets a string representation for debugging purposes.
(Overrides ValueType.ToString()()()().) |
The document provides the methods GetLocation(Int32) and
GetOffset(TextLocation) to convert between offsets and TextLocations.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238