Click or drag to resize
NativeTextLocation Class
Reference to a location inside a plain text file, specified through line and offset numbers.
Inheritance Hierarchy
SystemObject
  Sdl.FileTypeSupport.Framework.NativeApiNativeTextLocation

Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
Syntax
public class NativeTextLocation : ICloneable, 
	IComparable<NativeTextLocation>

The NativeTextLocation type exposes the following members.

Constructors
  NameDescription
Public methodNativeTextLocation
Creates an uninitialized instance, where line and offset are both 0.
Protected methodNativeTextLocation(NativeTextLocation)
Protected constructor used in cloning
Public methodNativeTextLocation(Int32, Int32)
Initializes with the specified line and offset numbers.
Top
Methods
  NameDescription
Public methodClone
Returns a deep clone of this object.
Public methodCompareTo
Returns 1 if this is after the other, -1 if this is before the other, and 0 if equal to the other.
Public methodEquals
True if both line and offset numbers are equal.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
The hash code is computed by shifting and combining the line and offset numbers.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsAfter
True if this instance has line and offset numbers that indicate that it appears later in the content than the other instance.
Public methodIsBefore
True if this instance has line and offset numbers that indicate that it appears earlier in the content than the other instance.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string in the format "(line, offset)" that is intended for ease of use in debugging
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyLine
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.
Public propertyOffset
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.
Top
Remarks
Line and offset numbers are 1-based, i.e. line number 1 is the first line in a file, and offset number 1 is the first character on the line.
See Also
Community
Edit
Be the first to Edit the community content of this topic.
Comments