23 references to GetOffsetToPosition
PresentationFramework (23)
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
329int elementStartOffset = _structuralCache.TextContainer.Start.GetOffsetToPosition(elementStart); 334elementLength = elementStart.GetOffsetToPosition(elementEnd);
MS\Internal\PtsHost\TextParaClient.cs (6)
682int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 833int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 883int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 926int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1123int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1124int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
System\Windows\Controls\TextBox.cs (6)
173int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 310length = textPointerStart.GetOffsetToPosition(textPointerEnd); 804return TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 811int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 852int selectionLength = TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 867int maxLength = newStart.GetOffsetToPosition(TextContainer.End);
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
22_cpTable = _textContainer.Start.GetOffsetToPosition(textPointerTable);
System\Windows\Documents\FixedTextPointer.cs (1)
88/// <see cref="TextPointer.GetOffsetToPosition"/>
System\Windows\Documents\NullTextNavigator.cs (1)
62/// <see cref="TextPointer.GetOffsetToPosition"/>
System\Windows\Documents\TextEffectResolver.cs (2)
77effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart); 80effectCopy.PositionCount = effectStart.GetOffsetToPosition(continuousTextEnd);
System\Windows\Documents\TextPointer.cs (2)
41/// a <see cref="TextPointer.GetOffsetToPosition"/> method).</para> 2385return GetOffsetToPosition((TextPointer)position);
System\Windows\Documents\TextRangeSerialization.cs (1)
1230if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3)
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
466_cpTable = table.TextContainer.Start.GetOffsetToPosition(table.ContentStart);