Range Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
GreaterThan(Range, Range) |
Indicates whether |
GreaterThanOrEqual(Range, Range) |
Indicates whether |
Inequality(Range, Range) |
Indicates whether |
LessThan(Range, Range) |
Indicates whether |
LessThanOrEqual(Range, Range) |
Indicates whether |