24 instantiations of DocumentSequenceTextPointer
PresentationFramework (24)
System\Windows\Documents\DocumentSequence.cs (2)
373return new DocumentSequenceTextPointer(childBlock, (ITextPointer)cp); 1148return new DocumentSequenceTextPointer(childBlock, childPosition);
System\Windows\Documents\DocumentSequenceTextContainer.cs (9)
369return new DocumentSequenceTextPointer(cdb, tp); 519_start = new DocumentSequenceTextPointer(_doclistHead.NextBlock, _doclistHead.NextBlock.ChildContainer.Start); 520_end = new DocumentSequenceTextPointer(_doclistTail.PreviousBlock, _doclistTail.PreviousBlock.ChildContainer.End); 524_start = new DocumentSequenceTextPointer(_doclistHead, _doclistHead.ChildContainer.Start); 525_end = new DocumentSequenceTextPointer(_doclistTail, _doclistTail.ChildContainer.End); 613new DocumentSequenceTextPointer(insertAfter, insertAfter.End); 616_end = new DocumentSequenceTextPointer(newBlock, newBlock.ChildContainer.End); 621_start = new DocumentSequenceTextPointer(newBlock, newBlock.ChildContainer.Start); 758tsScan = new DocumentSequenceTextPointer(cdbScan, cdbScan.ChildContainer.Start);
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
781DocumentSequenceTextPointer newTp = new DocumentSequenceTextPointer(thisTp.ChildBlock, thisTp.ChildPointer.CreatePointer(gravity)); 899return new DocumentSequenceTextPointer(block, pointer); 996DocumentSequenceTextPointer tpScan = new DocumentSequenceTextPointer(tp1.ChildBlock, tp1.ChildPointer);
System\Windows\Documents\DocumentSequenceTextView.cs (4)
81tp = new DocumentSequenceTextPointer(ChildBlock, childOTP); 222newTp = new DocumentSequenceTextPointer(ChildBlock, childOTP); 368tpStart = new DocumentSequenceTextPointer(ChildBlock, childTR.Start); 369tpEnd = new DocumentSequenceTextPointer(ChildBlock, childTR.End);
System\Windows\Documents\FixedFindEngine.cs (6)
151end = new DocumentSequenceTextPointer(childBlock, new FixedTextPointer(false, LogicalDirection.Backward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageEndFlowPosition(translatedPageNumber))); 152start = new DocumentSequenceTextPointer(childBlock, new FixedTextPointer(false, LogicalDirection.Forward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageStartFlowPosition(translatedPageNumber))); 156start = new DocumentSequenceTextPointer(childBlock, new FixedTextPointer(false, LogicalDirection.Forward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageStartFlowPosition(translatedPageNumber))); 157end = new DocumentSequenceTextPointer(childBlock, new FixedTextPointer(false, LogicalDirection.Backward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageEndFlowPosition(translatedPageNumber))); 303firstSearchPageStart = new DocumentSequenceTextPointer(endAsDSTP.ChildBlock, 323firstSearchPageEnd = new DocumentSequenceTextPointer( startAsDSTP.ChildBlock,
99 references to DocumentSequenceTextPointer
PresentationFramework (99)
MS\Internal\Documents\MultiPageTextView.cs (1)
772if (newPosition is DocumentSequenceTextPointer || newPosition is FixedTextPointer)
System\Windows\Documents\DocumentSequence.cs (1)
316if (contentPosition is DocumentSequenceTextPointer dsTextPointer)
System\Windows\Documents\DocumentSequenceTextContainer.cs (14)
341internal DocumentSequenceTextPointer VerifyPosition(ITextPointer position) 350DocumentSequenceTextPointer tp = position as DocumentSequenceTextPointer; 362internal DocumentSequenceTextPointer MapChildPositionToParent(ITextPointer tp) 555_changes.AddChange(precursorTextChange, DocumentSequenceTextPointer.GetOffsetToPosition(_start, startPosition), symbolCount, false /* collectTextChanges */); 612DocumentSequenceTextPointer changeStart = 712DocumentSequenceTextPointer tsScan = null; 718DocumentSequenceTextPointer tsEnd = (DocumentSequenceTextPointer)ts.End; 728tsScan = (DocumentSequenceTextPointer)ts.Start; 793private DocumentSequenceTextPointer _start; // Start of the aggregated TextContainer 794private DocumentSequenceTextPointer _end; // End of the aggregated TextContainer 1012DocumentSequenceTextPointer parentChangePosition = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward) as DocumentSequenceTextPointer;
System\Windows\Documents\DocumentSequenceTextPointer.cs (59)
58return DocumentSequenceTextPointer.CompareTo(this, position); 74return DocumentSequenceTextPointer.GetOffsetToPosition(this, position); 82return DocumentSequenceTextPointer.GetPointerContext(this, direction); 91return DocumentSequenceTextPointer.GetTextRunLength(this, direction); 106return DocumentSequenceTextPointer.GetTextInRun(this, direction, textBuffer, startIndex, count); 115return DocumentSequenceTextPointer.GetAdjacentElement(this, direction); 124return DocumentSequenceTextPointer.GetElementType(this, direction); 132return DocumentSequenceTextPointer.HasEqualScope(this, position); 142return DocumentSequenceTextPointer.GetValue(this, property); 151return DocumentSequenceTextPointer.ReadLocalValue(this, property); 160return DocumentSequenceTextPointer.GetLocalValueEnumerator(this); 168return DocumentSequenceTextPointer.CreatePointer(this); 186return DocumentSequenceTextPointer.CreatePointer(this, distance); 194return DocumentSequenceTextPointer.CreatePointer(this, gravity); 202return DocumentSequenceTextPointer.CreatePointer(this, distance, gravity); 307return DocumentSequenceTextPointer.ToString(this); 327return DocumentSequenceTextPointer.GetElementType(this); 445return DocumentSequenceTextPointer.iScan(this, direction); 456if (DocumentSequenceTextPointer.iScan(this, offset)) 471DocumentSequenceTextPointer tp = this.AggregatedContainer.VerifyPosition(position); 596public static int CompareTo(DocumentSequenceTextPointer thisTp, ITextPointer position) 598DocumentSequenceTextPointer tp = thisTp.AggregatedContainer.VerifyPosition(position); 608public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position) 610DocumentSequenceTextPointer tp = thisTp.AggregatedContainer.VerifyPosition(position); 630public static TextPointerContext GetPointerContext(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 641public static int GetTextRunLength(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 652public static int GetTextInRun(DocumentSequenceTextPointer thisTp, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 681public static object GetAdjacentElement(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 692public static Type GetElementType(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 696DocumentSequenceTextPointer tp = xGetClingDSTP(thisTp, direction); 704public static Type GetElementType(DocumentSequenceTextPointer thisTp) 712public static bool HasEqualScope(DocumentSequenceTextPointer thisTp, ITextPointer position) 714DocumentSequenceTextPointer tp = thisTp.AggregatedContainer.VerifyPosition(position); 728public static object GetValue(DocumentSequenceTextPointer thisTp, DependencyProperty property) 739public static object ReadLocalValue(DocumentSequenceTextPointer thisTp, DependencyProperty property) 750public static LocalValueEnumerator GetLocalValueEnumerator(DocumentSequenceTextPointer thisTp) 755public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp) 760public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance) 765public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, LogicalDirection gravity) 773public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance, LogicalDirection gravity) 781DocumentSequenceTextPointer newTp = new DocumentSequenceTextPointer(thisTp.ChildBlock, thisTp.ChildPointer.CreatePointer(gravity)); 818internal static bool iScan(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 830internal static bool iScan(DocumentSequenceTextPointer thisTp, int distance) 842internal static string ToString(DocumentSequenceTextPointer thisTp) 844return $"{(thisTp is DocumentSequenceTextPointer ? "DSTP" : "DSTN")} Id={thisTp.DebugId} B={thisTp.ChildBlock.DebugId} G={thisTp.ChildPointer.LogicalDirection}"; 863private static DocumentSequenceTextPointer xGetClingDSTP(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 913private static TextPointerContext xGapAwareGetSymbolType(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 915DocumentSequenceTextPointer tp = xGetClingDSTP(thisTp, direction); 920private static object xGapAwareGetEmbeddedElement(DocumentSequenceTextPointer thisTp, LogicalDirection direction) 922DocumentSequenceTextPointer tp = xGetClingDSTP(thisTp, direction); 931private static int xGapAwareCompareTo(DocumentSequenceTextPointer thisTp, DocumentSequenceTextPointer tp) 960private static bool xUnseparated(DocumentSequenceTextPointer tp1, DocumentSequenceTextPointer tp2) 987private static int xGapAwareGetDistance(DocumentSequenceTextPointer tp1, DocumentSequenceTextPointer tp2) 996DocumentSequenceTextPointer tpScan = new DocumentSequenceTextPointer(tp1.ChildBlock, tp1.ChildPointer); 1013private static bool xGapAwareScan(DocumentSequenceTextPointer thisTp, int distance)
System\Windows\Documents\DocumentSequenceTextView.cs (16)
73DocumentSequenceTextPointer tp = null; 89return tp == null ? null : DocumentSequenceTextPointer.CreatePointer(tp, edge); 120DocumentSequenceTextPointer tp = null; 150DocumentSequenceTextPointer startTp = null; 151DocumentSequenceTextPointer endTp = null; 204DocumentSequenceTextPointer newTp = null; 206DocumentSequenceTextPointer tp = null; 228return DocumentSequenceTextPointer.CreatePointer(newTp, newEdge); 258DocumentSequenceTextPointer ftp = this.DocumentSequenceTextContainer.VerifyPosition(position); 305DocumentSequenceTextPointer ftp = this.DocumentSequenceTextContainer.VerifyPosition(position); 331DocumentSequenceTextPointer ftp = this.DocumentSequenceTextContainer.VerifyPosition(position); 353DocumentSequenceTextPointer tpStart = null; 354DocumentSequenceTextPointer tpEnd = null; 355DocumentSequenceTextPointer tpLine = null; 426DocumentSequenceTextPointer tp = null; 558DocumentSequenceTextPointer ptpStart, ptpEnd;
System\Windows\Documents\FixedFindEngine.cs (6)
37Debug.Assert( ((start is DocumentSequenceTextPointer) && (end is DocumentSequenceTextPointer)) || 299DocumentSequenceTextPointer endAsDSTP = end as DocumentSequenceTextPointer; 319DocumentSequenceTextPointer startAsDSTP = start as DocumentSequenceTextPointer;
System\windows\Documents\TextEditorSelection.cs (1)
2305if (!(movingPosition is DocumentSequenceTextPointer || movingPosition is FixedTextPointer) &&
System\Windows\Documents\TextFindEngine.cs (1)
128if (findContainerStartPosition is DocumentSequenceTextPointer ||