/// <summary> /// Returns true, if the given coordinates are in the node. /// </summary> /// <returns> /// True, if location is between StartLocation and EndLocation (inclusive); otherwise, false. /// </returns> public bool IsInside(TextLocation location) { return(this.StartLocation <= location && location <= this.EndLocation); }
/// <summary> /// Returns true, if the given coordinates are in the node. /// </summary> /// <returns> /// True, if location is between StartLocation and EndLocation (exclusive); otherwise, false. /// </returns> public bool Contains(TextLocation location) { return(this.StartLocation <= location && location < this.EndLocation); }