5 implementations of CreatePointerAtOffset
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
215
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
111
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\FixedTextContainer.cs (1)
96
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\NullTextContainer.cs (1)
84
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\TextContainer.cs (1)
434
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
44 references to CreatePointerAtOffset
PresentationFramework (44)
MS\Internal\Documents\TextBoxLine.cs (1)
119
ITextPointer position = _owner.Host.TextContainer.
CreatePointerAtOffset
(dcp, LogicalDirection.Backward);
MS\Internal\Documents\TextBoxView.cs (13)
745
ITextPointer endOfLinePosition = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
785
nextLinePosition = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward);
923
ITextPointer nextCaretUnitPosition = _host.TextContainer.
CreatePointerAtOffset
(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
971
ITextPointer backspaceUnitPosition = _host.TextContainer.
CreatePointerAtOffset
(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
986
ITextPointer start = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
987
ITextPointer end = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward);
1307
ITextPointer start = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[0].Offset, LogicalDirection.Backward);
1308
ITextPointer end = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward);
1765
return _host.TextContainer.
CreatePointerAtOffset
(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2059
ITextPointer position = _host.TextContainer.
CreatePointerAtOffset
(unclippedStartOffset, LogicalDirection.Backward);
2104
ITextPointer endOfLinePosition = _host.TextContainer.
CreatePointerAtOffset
(endOffset, LogicalDirection.Backward);
2155
ITextPointer position = _host.TextContainer.
CreatePointerAtOffset
(unclippedStartOffset, LogicalDirection.Backward);
2183
ITextPointer endOfLinePosition = _host.TextContainer.
CreatePointerAtOffset
(endOffset, LogicalDirection.Backward);
MS\Internal\Documents\TextContainerHelper.cs (8)
95
_textContainer.
CreatePointerAtOffset
(_cpFirst, LogicalDirection.Forward),
96
_textContainer.
CreatePointerAtOffset
(_cpLast, LogicalDirection.Backward),
105
_textContainer.
CreatePointerAtOffset
(_ranges[i * 2], LogicalDirection.Forward),
106
_textContainer.
CreatePointerAtOffset
(_ranges[i * 2 + 1], LogicalDirection.Backward),
160
startPosition = _textContainer.
CreatePointerAtOffset
(IsSimple ? _cpFirst : _ranges[0], LogicalDirection.Forward);
172
endPosition = _textContainer.
CreatePointerAtOffset
(IsSimple ? _cpLast : _ranges[(_size - 1) * 2 + 1], LogicalDirection.Backward);
552
textPointer = textContainer.
CreatePointerAtOffset
(0, LogicalDirection.Forward); // Start
589
return textContainer.
CreatePointerAtOffset
(cp, direction);
MS\Internal\Text\ComplexLine.cs (1)
94
ITextPointer position = _owner.TextContainer.
CreatePointerAtOffset
(dcp, LogicalDirection.Backward);
MS\Internal\Text\TextLineResult.cs (4)
106
return _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cchContent, LogicalDirection.Backward);
122
return _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cch - _cchEllipses, LogicalDirection.Forward);
174
_startPosition = _owner.TextContainer.
CreatePointerAtOffset
(_dcp, LogicalDirection.Forward);
189
_endPosition = _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cch, LogicalDirection.Backward);
System\Windows\Controls\PasswordTextContainer.cs (2)
223
return ((ITextContainer)this).
CreatePointerAtOffset
(charOffset, direction);
233
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
129
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\FixedTextContainer.cs (1)
114
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\NullTextContainer.cs (1)
102
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\TextParentUndoUnit.cs (2)
124
ITextPointer anchorPosition = textContainer.
CreatePointerAtOffset
(_undoAnchorPositionOffset, _undoAnchorPositionDirection);
125
ITextPointer movingPosition = textContainer.
CreatePointerAtOffset
(_undoMovingPositionOffset, _undoMovingPositionDirection);
System\Windows\Documents\TextStore.cs (10)
2396
_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionStartOffset, LogicalDirection.Backward);
2397
_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionEndOffset, LogicalDirection.Forward);
2415
_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionStartOffset, LogicalDirection.Backward);
2416
_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionEndOffset, LogicalDirection.Forward);
3646
ITextPointer start = this.TextContainer.
CreatePointerAtOffset
(record.StartOffsetBefore, LogicalDirection.Backward);
3647
ITextPointer end = this.TextContainer.
CreatePointerAtOffset
(record.EndOffsetBefore, LogicalDirection.Forward);
3965
ITextPointer anchor = this.TextContainer.
CreatePointerAtOffset
(appSelectionAnchorOffset, LogicalDirection.Forward);
3966
ITextPointer moving = this.TextContainer.
CreatePointerAtOffset
(appSelectionMovingOffset, LogicalDirection.Forward);
3986
ITextPointer anchor = this.TextContainer.
CreatePointerAtOffset
(imeSelectionAnchorOffset, LogicalDirection.Backward);
3987
ITextPointer moving = this.TextContainer.
CreatePointerAtOffset
(imeSelectionMovingOffset, LogicalDirection.Backward);