示例#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);
 }
示例#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);
 }