Position Class

Definition

Class which represents a position on a text document.

See the Language Server Protocol specification for additional information.

public ref class Position : IEquatable<Microsoft::VisualStudio::LanguageServer::Protocol::Position ^>
[System.Runtime.Serialization.DataContract]
public class Position : IEquatable<Microsoft.VisualStudio.LanguageServer.Protocol.Position>
[<System.Runtime.Serialization.DataContract>]
type Position = class
    interface IEquatable<Position>
Public Class Position
Implements IEquatable(Of Position)
Inheritance
Position
Attributes
Implements

Constructors

Position()

Initializes a new instance of the Position class.

Position(Int32, Int32)

Initializes a new instance of the Position class.

Properties

Character

Gets or sets the character number.

Line

Gets or sets the line number.

Methods

Equals(Object)

Overrides base class method Equals(Object). Two positions are equal if their line and character are the same.

Equals(Position)

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

GetHashCode()

Overrides base class method GetHashCode().

Operators

Equality(Position, Position)

Overrides default equals operator. Two positions are equal if they are both null or one of them is the object equivalent of the other.

Inequality(Position, Position)

Overrides the default not equals operator.

Applies to