24 instantiations of DocumentSequenceTextPointer
PresentationFramework (24)
System\Windows\Documents\DocumentSequence.cs (2)
386
return new
DocumentSequenceTextPointer
(childBlock, (ITextPointer)cp);
1161
return new
DocumentSequenceTextPointer
(childBlock, childPosition);
System\Windows\Documents\DocumentSequenceTextContainer.cs (9)
386
return new
DocumentSequenceTextPointer
(cdb, tp);
536
_start = new
DocumentSequenceTextPointer
(_doclistHead.NextBlock, _doclistHead.NextBlock.ChildContainer.Start);
537
_end = new
DocumentSequenceTextPointer
(_doclistTail.PreviousBlock, _doclistTail.PreviousBlock.ChildContainer.End);
541
_start = new
DocumentSequenceTextPointer
(_doclistHead, _doclistHead.ChildContainer.Start);
542
_end = new
DocumentSequenceTextPointer
(_doclistTail, _doclistTail.ChildContainer.End);
630
new
DocumentSequenceTextPointer
(insertAfter, insertAfter.End);
633
_end = new
DocumentSequenceTextPointer
(newBlock, newBlock.ChildContainer.End);
638
_start = new
DocumentSequenceTextPointer
(newBlock, newBlock.ChildContainer.Start);
775
tsScan = new
DocumentSequenceTextPointer
(cdbScan, cdbScan.ChildContainer.Start);
System\Windows\Documents\DocumentSequenceTextPointer.cs (3)
790
DocumentSequenceTextPointer newTp = new
DocumentSequenceTextPointer
(thisTp.ChildBlock, thisTp.ChildPointer.CreatePointer(gravity));
908
return new
DocumentSequenceTextPointer
(block, pointer);
1005
DocumentSequenceTextPointer tpScan = new
DocumentSequenceTextPointer
(tp1.ChildBlock, tp1.ChildPointer);
System\Windows\Documents\DocumentSequenceTextView.cs (4)
89
tp = new
DocumentSequenceTextPointer
(ChildBlock, childOTP);
230
newTp = new
DocumentSequenceTextPointer
(ChildBlock, childOTP);
376
tpStart = new
DocumentSequenceTextPointer
(ChildBlock, childTR.Start);
377
tpEnd = new
DocumentSequenceTextPointer
(ChildBlock, childTR.End);
System\Windows\Documents\FixedFindEngine.cs (6)
153
end = new
DocumentSequenceTextPointer
(childBlock, new FixedTextPointer(false, LogicalDirection.Backward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageEndFlowPosition(translatedPageNumber)));
154
start = new
DocumentSequenceTextPointer
(childBlock, new FixedTextPointer(false, LogicalDirection.Forward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageStartFlowPosition(translatedPageNumber)));
158
start = new
DocumentSequenceTextPointer
(childBlock, new FixedTextPointer(false, LogicalDirection.Forward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageStartFlowPosition(translatedPageNumber)));
159
end = new
DocumentSequenceTextPointer
(childBlock, new FixedTextPointer(false, LogicalDirection.Backward, fixedDoc.FixedContainer.FixedTextBuilder.GetPageEndFlowPosition(translatedPageNumber)));
305
firstSearchPageStart = new
DocumentSequenceTextPointer
(endAsDSTP.ChildBlock,
325
firstSearchPageEnd = new
DocumentSequenceTextPointer
( startAsDSTP.ChildBlock,
101 references to DocumentSequenceTextPointer
PresentationFramework (101)
MS\Internal\Documents\MultiPageTextView.cs (1)
774
if (newPosition is
DocumentSequenceTextPointer
|| newPosition is FixedTextPointer)
System\Windows\Documents\DocumentSequence.cs (3)
327
if (contentPosition is
DocumentSequenceTextPointer
)
329
DocumentSequenceTextPointer
dsTextPointer = (
DocumentSequenceTextPointer
)contentPosition;
System\Windows\Documents\DocumentSequenceTextContainer.cs (14)
358
internal
DocumentSequenceTextPointer
VerifyPosition(ITextPointer position)
367
DocumentSequenceTextPointer
tp = position as
DocumentSequenceTextPointer
;
379
internal
DocumentSequenceTextPointer
MapChildPositionToParent(ITextPointer tp)
572
_changes.AddChange(precursorTextChange,
DocumentSequenceTextPointer
.GetOffsetToPosition(_start, startPosition), symbolCount, false /* collectTextChanges */);
629
DocumentSequenceTextPointer
changeStart =
729
DocumentSequenceTextPointer
tsScan = null;
735
DocumentSequenceTextPointer
tsEnd = (
DocumentSequenceTextPointer
)ts.End;
745
tsScan = (
DocumentSequenceTextPointer
)ts.Start;
810
private
DocumentSequenceTextPointer
_start; // Start of the aggregated TextContainer
811
private
DocumentSequenceTextPointer
_end; // End of the aggregated TextContainer
1029
DocumentSequenceTextPointer
parentChangePosition = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward) as
DocumentSequenceTextPointer
;
System\Windows\Documents\DocumentSequenceTextPointer.cs (59)
66
return
DocumentSequenceTextPointer
.CompareTo(this, position);
82
return
DocumentSequenceTextPointer
.GetOffsetToPosition(this, position);
90
return
DocumentSequenceTextPointer
.GetPointerContext(this, direction);
99
return
DocumentSequenceTextPointer
.GetTextRunLength(this, direction);
114
return
DocumentSequenceTextPointer
.GetTextInRun(this, direction, textBuffer, startIndex, count);
123
return
DocumentSequenceTextPointer
.GetAdjacentElement(this, direction);
132
return
DocumentSequenceTextPointer
.GetElementType(this, direction);
140
return
DocumentSequenceTextPointer
.HasEqualScope(this, position);
150
return
DocumentSequenceTextPointer
.GetValue(this, property);
159
return
DocumentSequenceTextPointer
.ReadLocalValue(this, property);
168
return
DocumentSequenceTextPointer
.GetLocalValueEnumerator(this);
176
return
DocumentSequenceTextPointer
.CreatePointer(this);
194
return
DocumentSequenceTextPointer
.CreatePointer(this, distance);
202
return
DocumentSequenceTextPointer
.CreatePointer(this, gravity);
210
return
DocumentSequenceTextPointer
.CreatePointer(this, distance, gravity);
315
return
DocumentSequenceTextPointer
.ToString(this);
335
return
DocumentSequenceTextPointer
.GetElementType(this);
454
return
DocumentSequenceTextPointer
.iScan(this, direction);
465
if (
DocumentSequenceTextPointer
.iScan(this, offset))
480
DocumentSequenceTextPointer
tp = this.AggregatedContainer.VerifyPosition(position);
605
public static int CompareTo(
DocumentSequenceTextPointer
thisTp, ITextPointer position)
607
DocumentSequenceTextPointer
tp = thisTp.AggregatedContainer.VerifyPosition(position);
617
public static int GetOffsetToPosition(
DocumentSequenceTextPointer
thisTp, ITextPointer position)
619
DocumentSequenceTextPointer
tp = thisTp.AggregatedContainer.VerifyPosition(position);
639
public static TextPointerContext GetPointerContext(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
650
public static int GetTextRunLength(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
661
public static int GetTextInRun(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
690
public static object GetAdjacentElement(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
701
public static Type GetElementType(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
705
DocumentSequenceTextPointer
tp = xGetClingDSTP(thisTp, direction);
713
public static Type GetElementType(
DocumentSequenceTextPointer
thisTp)
721
public static bool HasEqualScope(
DocumentSequenceTextPointer
thisTp, ITextPointer position)
723
DocumentSequenceTextPointer
tp = thisTp.AggregatedContainer.VerifyPosition(position);
737
public static object GetValue(
DocumentSequenceTextPointer
thisTp, DependencyProperty property)
748
public static object ReadLocalValue(
DocumentSequenceTextPointer
thisTp, DependencyProperty property)
759
public static LocalValueEnumerator GetLocalValueEnumerator(
DocumentSequenceTextPointer
thisTp)
764
public static ITextPointer CreatePointer(
DocumentSequenceTextPointer
thisTp)
769
public static ITextPointer CreatePointer(
DocumentSequenceTextPointer
thisTp, int distance)
774
public static ITextPointer CreatePointer(
DocumentSequenceTextPointer
thisTp, LogicalDirection gravity)
782
public static ITextPointer CreatePointer(
DocumentSequenceTextPointer
thisTp, int distance, LogicalDirection gravity)
790
DocumentSequenceTextPointer
newTp = new DocumentSequenceTextPointer(thisTp.ChildBlock, thisTp.ChildPointer.CreatePointer(gravity));
827
internal static bool iScan(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
839
internal static bool iScan(
DocumentSequenceTextPointer
thisTp, int distance)
851
internal static string ToString(
DocumentSequenceTextPointer
thisTp)
853
return $"{(thisTp is
DocumentSequenceTextPointer
? "DSTP" : "DSTN")} Id={thisTp.DebugId} B={thisTp.ChildBlock.DebugId} G={thisTp.ChildPointer.LogicalDirection}";
872
private static
DocumentSequenceTextPointer
xGetClingDSTP(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
922
private static TextPointerContext xGapAwareGetSymbolType(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
924
DocumentSequenceTextPointer
tp = xGetClingDSTP(thisTp, direction);
929
private static object xGapAwareGetEmbeddedElement(
DocumentSequenceTextPointer
thisTp, LogicalDirection direction)
931
DocumentSequenceTextPointer
tp = xGetClingDSTP(thisTp, direction);
940
private static int xGapAwareCompareTo(
DocumentSequenceTextPointer
thisTp,
DocumentSequenceTextPointer
tp)
969
private static bool xUnseparated(
DocumentSequenceTextPointer
tp1,
DocumentSequenceTextPointer
tp2)
996
private static int xGapAwareGetDistance(
DocumentSequenceTextPointer
tp1,
DocumentSequenceTextPointer
tp2)
1005
DocumentSequenceTextPointer
tpScan = new DocumentSequenceTextPointer(tp1.ChildBlock, tp1.ChildPointer);
1022
private static bool xGapAwareScan(
DocumentSequenceTextPointer
thisTp, int distance)
System\Windows\Documents\DocumentSequenceTextView.cs (16)
81
DocumentSequenceTextPointer
tp = null;
97
return tp == null ? null :
DocumentSequenceTextPointer
.CreatePointer(tp, edge);
128
DocumentSequenceTextPointer
tp = null;
158
DocumentSequenceTextPointer
startTp = null;
159
DocumentSequenceTextPointer
endTp = null;
212
DocumentSequenceTextPointer
newTp = null;
214
DocumentSequenceTextPointer
tp = null;
236
return
DocumentSequenceTextPointer
.CreatePointer(newTp, newEdge);
266
DocumentSequenceTextPointer
ftp = this.DocumentSequenceTextContainer.VerifyPosition(position);
313
DocumentSequenceTextPointer
ftp = this.DocumentSequenceTextContainer.VerifyPosition(position);
339
DocumentSequenceTextPointer
ftp = this.DocumentSequenceTextContainer.VerifyPosition(position);
361
DocumentSequenceTextPointer
tpStart = null;
362
DocumentSequenceTextPointer
tpEnd = null;
363
DocumentSequenceTextPointer
tpLine = null;
434
DocumentSequenceTextPointer
tp = null;
566
DocumentSequenceTextPointer
ptpStart, ptpEnd;
System\Windows\Documents\FixedFindEngine.cs (6)
39
Debug.Assert( ((start is
DocumentSequenceTextPointer
) && (end is
DocumentSequenceTextPointer
)) ||
301
DocumentSequenceTextPointer
endAsDSTP = end as
DocumentSequenceTextPointer
;
321
DocumentSequenceTextPointer
startAsDSTP = start as
DocumentSequenceTextPointer
;
System\windows\Documents\TextEditorSelection.cs (1)
2320
if (!(movingPosition is
DocumentSequenceTextPointer
|| movingPosition is FixedTextPointer) &&
System\Windows\Documents\TextFindEngine.cs (1)
136
if (findContainerStartPosition is
DocumentSequenceTextPointer
||