12 references to GetPositionAtOffset
PresentationFramework (12)
src\Framework\System\Windows\Controls\TextBox.cs (2)
479
textPointer = textPointer.
GetPositionAtOffset
(0, LogicalDirection.Backward);
484
textPointer = textPointer.
GetPositionAtOffset
(0, LogicalDirection.Forward);
src\Framework\System\Windows\Documents\TextContainer.cs (1)
1620
TextPointer positionForwardGravity = position.
GetPositionAtOffset
(0, LogicalDirection.Forward);
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (2)
1139
start = start.
GetPositionAtOffset
(0, LogicalDirection.Backward);
1140
TextPointer end = start.
GetPositionAtOffset
(0, LogicalDirection.Forward);
src\Framework\System\Windows\Documents\TextPointer.cs (1)
886
return
GetPositionAtOffset
(offset, this.LogicalDirection);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (5)
802
start = block.ElementEnd.
GetPositionAtOffset
(0, LogicalDirection.Forward);
809
TextPointer contentStart = block.ContentStart.
GetPositionAtOffset
(0, LogicalDirection.Forward); // Normalize forward;
830
start = block.ElementEnd.
GetPositionAtOffset
(0, LogicalDirection.Forward);
1897
TextPointer nextRunPosition = run.ElementEnd.
GetPositionAtOffset
(0, LogicalDirection.Forward);
2114
start = start.
GetPositionAtOffset
(0, LogicalDirection.Forward);
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (1)
1362
fragmentEnd = fragment.ElementEnd.
GetPositionAtOffset
(0, LogicalDirection.Forward); // need forward orientation to stick with the following content during merge at fragmentStart position