5 implementations of GetOffsetToPosition
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
122
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
80
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
System\Windows\Documents\FixedTextPointer.cs (1)
90
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
System\Windows\Documents\NullTextNavigator.cs (1)
64
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
System\Windows\Documents\TextPointer.cs (1)
2383
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
63 references to GetOffsetToPosition
PresentationFramework (63)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (4)
233
int textRangeLength = elementStart.
GetOffsetToPosition
(elementEnd);
537
startOffset = elementStart.
GetOffsetToPosition
(segment.Start);
542
endOffset = elementStart.
GetOffsetToPosition
(segment.End);
547
endOffset = elementStart.
GetOffsetToPosition
(elementEnd);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
248
startOffset = end.TextContainer.Start.
GetOffsetToPosition
(start);
249
endOffset = end.TextContainer.Start.
GetOffsetToPosition
(end);
MS\Internal\Documents\TextParagraphView.cs (1)
367
int dcp = lines[0].StartPosition.
GetOffsetToPosition
(position) + lines[0].StartPositionCP;
MS\Internal\LayoutDump.cs (2)
615
int cpStart = start.TextContainer.Start.
GetOffsetToPosition
(start);
616
int cpEnd = end.TextContainer.Start.
GetOffsetToPosition
(end);
MS\Internal\PtsHost\OptimalTextSource.cs (1)
193
return position.TextContainer.Start.
GetOffsetToPosition
(position);
MS\Internal\PtsHost\TextParagraph.cs (4)
899
return textPointerContentStart.
GetOffsetToPosition
(textPointer);
916
while(textPointerContentStart.
GetOffsetToPosition
(textPointer) < dcpLast)
989
FigureObject figureObject = new FigureObject(textPointerContentStart.
GetOffsetToPosition
(textElement.ElementStart), figurePara);
1012
FloaterObject floaterObject = new FloaterObject(textPointerContentStart.
GetOffsetToPosition
(textElement.ElementStart), floaterPara);
System\Windows\Controls\PasswordTextContainer.cs (1)
243
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
System\Windows\Controls\TextBlock.cs (8)
1786
int startOffset = _complexContent.TextContainer.Start.
GetOffsetToPosition
(start);
1787
int endOffset = _complexContent.TextContainer.Start.
GetOffsetToPosition
(end);
2186
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(orientedPosition);
2290
int dcpPositionStart = _complexContent.TextContainer.Start.
GetOffsetToPosition
(startPosition);
2291
int dcpPositionEnd = _complexContent.TextContainer.Start.
GetOffsetToPosition
(endPosition);
2398
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(position);
2464
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(position);
2593
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(position);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
139
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
313
return ((ITextContainer)this).Start.
GetOffsetToPosition
(((ITextContainer)this).End);
System\Windows\Documents\DocumentSequenceTextPointer.cs (4)
78
/// <see cref="ITextPointer.
GetOffsetToPosition
"/>
615
/// <see cref="ITextPointer.
GetOffsetToPosition
"/>
1009
count += tpScan.ChildPointer.
GetOffsetToPosition
(tpScan.ChildPointer.TextContainer.End);
1016
count += tpScan.ChildPointer.
GetOffsetToPosition
(tp2.ChildPointer);
System\Windows\Documents\FixedTextContainer.cs (2)
124
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
282
return ((ITextContainer)this).Start.
GetOffsetToPosition
(((ITextContainer)this).End);
System\Windows\Documents\FlowDocument.cs (2)
1428
textSegment.Start.
GetOffsetToPosition
(textSegment.End),
1429
textSegment.Start.
GetOffsetToPosition
(textSegment.End)
System\Windows\Documents\FrameworkTextComposition.cs (2)
208
_length = (_resultStart == null) ? -1 : _resultStart.
GetOffsetToPosition
(_resultEnd);
232
_length = (_compositionStart == null) ? -1 : _compositionStart.
GetOffsetToPosition
(_compositionEnd);
System\Windows\Documents\ImmComposition.cs (3)
1684
edge = _editor.TextContainer.Start.
GetOffsetToPosition
(positionCurrent);
1685
int startComposition = _editor.TextContainer.Start.
GetOffsetToPosition
(_startComposition);
1686
int endComposition = _editor.TextContainer.Start.
GetOffsetToPosition
(_endComposition);
System\Windows\Documents\NullTextContainer.cs (1)
112
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
System\Windows\Documents\Speller.cs (7)
663
if (start.
GetOffsetToPosition
(end) > MaxScanBlockSize)
1665
maxChars = contextStart.
GetOffsetToPosition
(contextEnd);
1694
runCount = Math.Min(runCount, position.
GetOffsetToPosition
(contextEnd));
1703
distance = position.
GetOffsetToPosition
(contentStart);
1706
_contentStartOffset = _textLength + position.
GetOffsetToPosition
(contentStart);
1708
distance = position.
GetOffsetToPosition
(contentEnd);
1711
_contentEndOffset = _textLength + position.
GetOffsetToPosition
(contentEnd);
System\Windows\Documents\SpellerStatusTable.cs (1)
739
Debug.WriteLine($"{i}: {run.Position.TextContainer.Start.
GetOffsetToPosition
(run.Position)} {runType}");
System\windows\Documents\TextEditor.cs (2)
1168
return _FilterText(textData, range.Start.
GetOffsetToPosition
(range.End));
1178
return _FilterText(textData, range.Start.
GetOffsetToPosition
(range.End), filterMaxLength);
System\windows\Documents\TextEditorDragDrop.cs (1)
490
int indexInWord = wordSegment.Start.
GetOffsetToPosition
(dropPosition);
System\windows\Documents\TextEditorSpelling.cs (2)
147
((TextPointer)textStart).DeleteTextInRun(textStart.
GetOffsetToPosition
(textEnd));
346
isSelectionIgnoringErrors = selection.Start.
GetOffsetToPosition
(selection.End) >= 256;
System\Windows\Documents\TextFindEngine.cs (3)
340
int maxCharCount = position.
GetOffsetToPosition
(nextPosition);
675
runCount = Math.Min(runCount, navigator.
GetOffsetToPosition
(endPosition));
685
runCount = Math.Min(runCount, startPosition.
GetOffsetToPosition
(navigator));
System\Windows\Documents\TextPointerBase.cs (3)
104
maxCount = Math.Min(count, thisPointer.
GetOffsetToPosition
(limit));
108
maxCount = Math.Min(count, limit.
GetOffsetToPosition
(thisPointer));
453
return thisPosition.TextContainer.Start.
GetOffsetToPosition
(thisPosition);
System\Windows\Documents\TextRangeBase.cs (1)
1635
if (context == TextPointerContext.EmbeddedElement && start.
GetOffsetToPosition
(end) == 1)
System\Windows\Documents\TextStore.cs (4)
515
string filteredText = FilterCompositionString(new string(text), start.
GetOffsetToPosition
(end)); // does NOT filter MaxLength.
716
string filteredText = FilterCompositionString(new string(text), range.Start.
GetOffsetToPosition
(range.End)); // does NOT filter MaxLength.
1520
string filteredText = FilterCompositionString(result, TextSelection.Start.
GetOffsetToPosition
(TextSelection.End)); // does NOT filter MaxLength.
2488
offset = limit.
GetOffsetToPosition
(navigator);