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