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