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