| NativeTextLocation Class |
Namespace: Sdl.FileTypeSupport.Framework.NativeApi
The NativeTextLocation type exposes the following members.
| Name | Description | |
|---|---|---|
| NativeTextLocation |
Creates an uninitialized instance, where line and offset are both 0.
| |
| NativeTextLocation(NativeTextLocation) |
Protected constructor used in cloning
| |
| NativeTextLocation(Int32, Int32) |
Initializes with the specified line and offset numbers.
|
| Name | Description | |
|---|---|---|
| Line |
Line number in the text. The first line in a file
is line number 1. A value of 0 indicates that
the line number has not been set. Negative values
are not allowed.
| |
| Offset |
Character offset on the current line. The first character
on the line is offset 1. A value of 0 indicates that the
offset has not be specified. Negative values are not allowed.
|
| Name | Description | |
|---|---|---|
| Clone |
Returns a deep clone of this object.
| |
| CompareTo |
Returns 1 if this is after the other, -1 if this is before the other,
and 0 if equal to the other.
| |
| Equals |
True if both line and offset numbers are equal.
(Overrides ObjectEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode |
The hash code is computed by shifting and combining the line and offset numbers.
(Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsAfter | True if this instance has line and offset numbers
that indicate that it appears later in the content than the
other instance.
| |
| IsBefore | True if this instance has line and offset numbers
that indicate that it appears earlier in the content than the
other instance.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString |
Returns a string in the format "(line, offset)" that
is intended for ease of use in debugging
(Overrides ObjectToString.) |