23 references to GetOffsetToPosition
PresentationFramework (23)
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
321int elementStartOffset = _structuralCache.TextContainer.Start.GetOffsetToPosition(elementStart); 326elementLength = elementStart.GetOffsetToPosition(elementEnd);
MS\Internal\PtsHost\TextParaClient.cs (6)
676int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 827int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 877int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 920int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1117int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1118int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
System\Windows\Controls\TextBox.cs (6)
166int maxLength = newStart.GetOffsetToPosition(TextContainer.End); 303length = textPointerStart.GetOffsetToPosition(textPointerEnd); 797return TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 804int maxLength = TextSelectionInternal.Start.GetOffsetToPosition(TextContainer.End); 845int selectionLength = TextSelectionInternal.Start.GetOffsetToPosition(TextSelectionInternal.End); 860int maxLength = newStart.GetOffsetToPosition(TextContainer.End);
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
22_cpTable = _textContainer.Start.GetOffsetToPosition(textPointerTable);
System\Windows\Documents\FixedTextPointer.cs (1)
83/// <see cref="TextPointer.GetOffsetToPosition"/>
System\Windows\Documents\NullTextNavigator.cs (1)
59/// <see cref="TextPointer.GetOffsetToPosition"/>
System\Windows\Documents\TextEffectResolver.cs (2)
73effectCopy.PositionStart = effectStart.TextContainer.Start.GetOffsetToPosition(effectStart); 76effectCopy.PositionCount = effectStart.GetOffsetToPosition(continuousTextEnd);
System\Windows\Documents\TextPointer.cs (2)
36/// a <see cref="TextPointer.GetOffsetToPosition"/> method).</para> 2380return GetOffsetToPosition((TextPointer)position);
System\Windows\Documents\TextRangeSerialization.cs (1)
1224if (fragment.ContentStart.GetOffsetToPosition(fragment.ContentEnd) == 3)
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
464_cpTable = table.TextContainer.Start.GetOffsetToPosition(table.ContentStart);