23 references to GetOffsetToPosition
PresentationFramework (23)
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
320int elementStartOffset = _structuralCache.TextContainer.Start.GetOffsetToPosition(elementStart); 325elementLength = elementStart.GetOffsetToPosition(elementEnd);
MS\Internal\PtsHost\TextParaClient.cs (6)
675int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 826int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 876int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 919int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1116int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1117int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
System\Windows\Controls\TextBox.cs (6)
167int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 304length = textPointerStart.GetOffsetToPosition(textPointerEnd); 798return TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 805int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 846int selectionLength = TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 861int maxLength = newStart.GetOffsetToPosition(TextContainer.End);
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
21_cpTable = _textContainer.Start.GetOffsetToPosition(textPointerTable);
System\Windows\Documents\FixedTextPointer.cs (1)
80/// <see cref="TextPointer.GetOffsetToPosition"/>
System\Windows\Documents\NullTextNavigator.cs (1)
56/// <see cref="TextPointer.GetOffsetToPosition"/>
System\Windows\Documents\TextEffectResolver.cs (2)
72effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart); 75effectCopy.PositionCount = effectStart.GetOffsetToPosition(continuousTextEnd);
System\Windows\Documents\TextPointer.cs (2)
35/// a <see cref="TextPointer.GetOffsetToPosition"/> method).</para> 2379return GetOffsetToPosition((TextPointer)position);
System\Windows\Documents\TextRangeSerialization.cs (1)
1223if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3)
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
463_cpTable = table.TextContainer.Start.GetOffsetToPosition(table.ContentStart);