Compartilhar via


Range Struct

Definition

A struct describing a span of text in a document.

public value class Range : IComparable<Microsoft::VisualStudio::RpcContracts::Utilities::Range>, IEquatable<Microsoft::VisualStudio::RpcContracts::Utilities::Range>
[System.Runtime.Serialization.DataContract]
public struct Range : IComparable<Microsoft.VisualStudio.RpcContracts.Utilities.Range>, IEquatable<Microsoft.VisualStudio.RpcContracts.Utilities.Range>
[<System.Runtime.Serialization.DataContract>]
type Range = struct
Public Structure Range
Implements IComparable(Of Range), IEquatable(Of Range)
Inheritance
Range
Attributes
Implements

Constructors

Range(Int32, Int32, Int32, Int32)

Initializes a new instance of the Range struct.

Fields

Unknown

Used when the range for a diagnostic is unknown.

Properties

EndColumn

Gets the offset (0-based) offset from the start of EndLine for the end of the span.

EndLine

Gets the line (0-based) of the end of the span.

StartColumn

Gets the offset (0-based) offset from the start of StartLine for the start of the span.

StartLine

Gets the line (0-based) of the start of the span.

Methods

CompareTo(Range)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(Range)

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

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(Range, Range)

Indicates whether left and right equiavlent.

GreaterThan(Range, Range)

Indicates whether left is greater than right.

GreaterThanOrEqual(Range, Range)

Indicates whether left is greater than or equal to right.

Inequality(Range, Range)

Indicates whether left and right different.

LessThan(Range, Range)

Indicates whether left is less than right.

LessThanOrEqual(Range, Range)

Indicates whether left is less than or equal to right.

Applies to