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