Example #1
0
 /// <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);
 }
Example #2
0
 /// <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);
 }