23 references to GetOffsetToPosition
PresentationFramework (23)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
331
int elementStartOffset = _structuralCache.TextContainer.Start.
GetOffsetToPosition
(elementStart);
336
elementLength = elementStart.
GetOffsetToPosition
(elementEnd);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (6)
782
int cp = Paragraph.StructuralCache.TextContainer.Start.
GetOffsetToPosition
((TextPointer)position);
952
int cp = Paragraph.StructuralCache.TextContainer.Start.
GetOffsetToPosition
(position as TextPointer);
1012
int cp = Paragraph.StructuralCache.TextContainer.Start.
GetOffsetToPosition
(position as TextPointer);
1065
int cp = Paragraph.StructuralCache.TextContainer.Start.
GetOffsetToPosition
(position as TextPointer);
1280
int dcpStart = Paragraph.StructuralCache.TextContainer.Start.
GetOffsetToPosition
((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition;
1281
int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.
GetOffsetToPosition
((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
src\Framework\System\Windows\Controls\TextBox.cs (6)
186
int maxLength = newStart.
GetOffsetToPosition
(TextContainer.End);
329
length = textPointerStart.
GetOffsetToPosition
(textPointerEnd);
833
return TextSelectionInternal.Start.
GetOffsetToPosition
(TextSelectionInternal.End);
843
int maxLength = TextSelectionInternal.Start.
GetOffsetToPosition
(TextContainer.End);
887
int selectionLength = TextSelectionInternal.Start.
GetOffsetToPosition
(TextSelectionInternal.End);
902
int maxLength = newStart.
GetOffsetToPosition
(TextContainer.End);
src\Framework\System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
28
_cpTable = _textContainer.Start.
GetOffsetToPosition
(textPointerTable);
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
94
/// <see cref="TextPointer.
GetOffsetToPosition
"/>
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
64
/// <see cref="TextPointer.
GetOffsetToPosition
"/>
src\Framework\System\Windows\Documents\TextEffectResolver.cs (2)
86
effectCopy.PositionStart = effectStart.TextContainer.Start.
GetOffsetToPosition
(effectStart);
89
effectCopy.PositionCount = effectStart.
GetOffsetToPosition
(continuousTextEnd);
src\Framework\System\Windows\Documents\TextPointer.cs (2)
43
/// a <see cref="TextPointer.
GetOffsetToPosition
"/> method).</para>
2405
return
GetOffsetToPosition
((TextPointer)position);
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (1)
1254
if (fragment.ContentStart.
GetOffsetToPosition
(fragment.ContentEnd) == 3)
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
489
_cpTable = table.TextContainer.Start.
GetOffsetToPosition
(table.ContentStart);