/// <summary> /// Determine whether the object's XML contains the specified position. /// </summary> /// <param name="position"> /// The target position. /// </param> /// <returns> /// <c>true</c>, if the the specified position lies within the object's XML span; otherwise, <c>false</c>. /// </returns> public bool XmlContains(Position position) { if (position == null) { throw new ArgumentNullException(nameof(position)); } return(XmlRange.Contains(position)); }
/// <summary> /// Determine whether the object's XML contains the specified position. /// </summary> /// <param name="position"> /// The target position. /// </param> /// <returns> /// <c>true</c>, if the specified position lies within the object's XML span; otherwise, <c>false</c>. /// </returns> public bool XmlContains(Position position) { return(XmlRange.Contains(position)); }