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