5 implementations of GetOffsetToPosition
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
124
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
84
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
96
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
66
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
src\Framework\System\Windows\Documents\TextPointer.cs (1)
2403
int ITextPointer.
GetOffsetToPosition
(ITextPointer position)
62 references to GetOffsetToPosition
PresentationFramework (62)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (4)
246
int textRangeLength = elementStart.
GetOffsetToPosition
(elementEnd);
551
startOffset = elementStart.
GetOffsetToPosition
(segment.Start);
556
endOffset = elementStart.
GetOffsetToPosition
(segment.End);
561
endOffset = elementStart.
GetOffsetToPosition
(elementEnd);
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
254
startOffset = end.TextContainer.Start.
GetOffsetToPosition
(start);
255
endOffset = end.TextContainer.Start.
GetOffsetToPosition
(end);
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
392
int dcp = lines[0].StartPosition.
GetOffsetToPosition
(position) + lines[0].StartPositionCP;
src\Framework\MS\Internal\LayoutDump.cs (2)
618
int cpStart = start.TextContainer.Start.
GetOffsetToPosition
(start);
619
int cpEnd = end.TextContainer.Start.
GetOffsetToPosition
(end);
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
197
return position.TextContainer.Start.
GetOffsetToPosition
(position);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (4)
906
return textPointerContentStart.
GetOffsetToPosition
(textPointer);
923
while(textPointerContentStart.
GetOffsetToPosition
(textPointer) < dcpLast)
997
FigureObject figureObject = new FigureObject(textPointerContentStart.
GetOffsetToPosition
(textElement.ElementStart), figurePara);
1020
FloaterObject floaterObject = new FloaterObject(textPointerContentStart.
GetOffsetToPosition
(textElement.ElementStart), floaterPara);
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
249
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
src\Framework\System\Windows\Controls\TextBlock.cs (8)
1874
int startOffset = _complexContent.TextContainer.Start.
GetOffsetToPosition
(start);
1875
int endOffset = _complexContent.TextContainer.Start.
GetOffsetToPosition
(end);
2273
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(orientedPosition);
2378
int dcpPositionStart = _complexContent.TextContainer.Start.
GetOffsetToPosition
(startPosition);
2379
int dcpPositionEnd = _complexContent.TextContainer.Start.
GetOffsetToPosition
(endPosition);
2486
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(position);
2552
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(position);
2682
int characterIndex = _complexContent.TextContainer.Start.
GetOffsetToPosition
(position);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
143
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
317
return ((ITextContainer)this).Start.
GetOffsetToPosition
(((ITextContainer)this).End);
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (4)
82
/// <see cref="ITextPointer.
GetOffsetToPosition
"/>
619
/// <see cref="ITextPointer.
GetOffsetToPosition
"/>
1026
count += tpScan.ChildPointer.
GetOffsetToPosition
(tpScan.ChildPointer.TextContainer.End);
1033
count += tpScan.ChildPointer.
GetOffsetToPosition
(tp2.ChildPointer);
src\Framework\System\Windows\Documents\FixedTextContainer.cs (2)
128
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
286
return ((ITextContainer)this).Start.
GetOffsetToPosition
(((ITextContainer)this).End);
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
1437
textSegment.Start.
GetOffsetToPosition
(textSegment.End),
1438
textSegment.Start.
GetOffsetToPosition
(textSegment.End)
src\Framework\System\Windows\Documents\FrameworkTextComposition.cs (2)
235
_length = (_resultStart == null) ? -1 : _resultStart.
GetOffsetToPosition
(_resultEnd);
259
_length = (_compositionStart == null) ? -1 : _compositionStart.
GetOffsetToPosition
(_compositionEnd);
src\Framework\System\Windows\Documents\ImmComposition.cs (3)
1858
edge = _editor.TextContainer.Start.
GetOffsetToPosition
(positionCurrent);
1859
int startComposition = _editor.TextContainer.Start.
GetOffsetToPosition
(_startComposition);
1860
int endComposition = _editor.TextContainer.Start.
GetOffsetToPosition
(_endComposition);
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
115
return ((ITextPointer)position1.Handle0).
GetOffsetToPosition
((ITextPointer)position2.Handle0);
src\Framework\System\Windows\Documents\Speller.cs (7)
725
if (start.
GetOffsetToPosition
(end) > MaxScanBlockSize)
1793
maxChars = contextStart.
GetOffsetToPosition
(contextEnd);
1822
runCount = Math.Min(runCount, position.
GetOffsetToPosition
(contextEnd));
1831
distance = position.
GetOffsetToPosition
(contentStart);
1834
_contentStartOffset = _textLength + position.
GetOffsetToPosition
(contentStart);
1836
distance = position.
GetOffsetToPosition
(contentEnd);
1839
_contentEndOffset = _textLength + position.
GetOffsetToPosition
(contentEnd);
src\Framework\System\windows\Documents\TextEditor.cs (2)
1195
return _FilterText(textData, range.Start.
GetOffsetToPosition
(range.End));
1205
return _FilterText(textData, range.Start.
GetOffsetToPosition
(range.End), filterMaxLength);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
502
int indexInWord = wordSegment.Start.
GetOffsetToPosition
(dropPosition);
src\Framework\System\windows\Documents\TextEditorSpelling.cs (2)
149
((TextPointer)textStart).DeleteTextInRun(textStart.
GetOffsetToPosition
(textEnd));
348
isSelectionIgnoringErrors = selection.Start.
GetOffsetToPosition
(selection.End) >= 256;
src\Framework\System\Windows\Documents\TextFindEngine.cs (3)
345
int maxCharCount = position.
GetOffsetToPosition
(nextPosition);
686
runCount = Math.Min(runCount, navigator.
GetOffsetToPosition
(endPosition));
696
runCount = Math.Min(runCount, startPosition.
GetOffsetToPosition
(navigator));
src\Framework\System\Windows\Documents\TextPointerBase.cs (3)
106
maxCount = Math.Min(count, thisPointer.
GetOffsetToPosition
(limit));
110
maxCount = Math.Min(count, limit.
GetOffsetToPosition
(thisPointer));
455
return thisPosition.TextContainer.Start.
GetOffsetToPosition
(thisPosition);
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
1663
if (context == TextPointerContext.EmbeddedElement && start.
GetOffsetToPosition
(end) == 1)
src\Framework\System\Windows\Documents\TextStore.cs (4)
394
string filteredText = FilterCompositionString(new string(text), start.
GetOffsetToPosition
(end)); // does NOT filter MaxLength.
584
string filteredText = FilterCompositionString(new string(text), range.Start.
GetOffsetToPosition
(range.End)); // does NOT filter MaxLength.
1385
string filteredText = FilterCompositionString(result, TextSelection.Start.
GetOffsetToPosition
(TextSelection.End)); // does NOT filter MaxLength.
2343
offset = limit.
GetOffsetToPosition
(navigator);