Пример #1
0
 /// <summary>
 /// Is called when the <see cref="LineSegment"/> is deleted.
 /// </summary>
 /// <param name="deferredEventList">The deferred event list.</param>
 internal void Deleted(ref DeferredEventList deferredEventList)
 {
     //Console.WriteLine("Deleted");
       _treeEntry = LineSegmentTree.Enumerator.Invalid;
       if (_anchors != null)
       {
     foreach (TextAnchor anchor in _anchors)
     {
       anchor.Delete(ref deferredEventList);
     }
     _anchors = null;
       }
 }
Пример #2
0
		/// <summary>
		/// Is called when the LineSegment is deleted.
		/// </summary>
		internal void Deleted()
		{
			//Console.WriteLine("Deleted");
			treeEntry = LineSegmentTree.Enumerator.Invalid;
			if (anchors != null) {
				foreach (TextAnchor a in anchors) {
					a.Deleted();
				}
				anchors = null;
			}
		}