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