5 implementations of CreatePointerAtOffset
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
212
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
95
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\FixedTextContainer.cs (1)
80
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\NullTextContainer.cs (1)
80
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
System\Windows\Documents\TextContainer.cs (1)
429
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
44 references to CreatePointerAtOffset
PresentationFramework (44)
MS\Internal\Documents\TextBoxLine.cs (1)
112
ITextPointer position = _owner.Host.TextContainer.
CreatePointerAtOffset
(dcp, LogicalDirection.Backward);
MS\Internal\Documents\TextBoxView.cs (13)
743
ITextPointer endOfLinePosition = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
783
nextLinePosition = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward);
921
ITextPointer nextCaretUnitPosition = _host.TextContainer.
CreatePointerAtOffset
(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
969
ITextPointer backspaceUnitPosition = _host.TextContainer.
CreatePointerAtOffset
(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
984
ITextPointer start = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
985
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)
92
_textContainer.
CreatePointerAtOffset
(_cpFirst, LogicalDirection.Forward),
93
_textContainer.
CreatePointerAtOffset
(_cpLast, LogicalDirection.Backward),
102
_textContainer.
CreatePointerAtOffset
(_ranges[i * 2], LogicalDirection.Forward),
103
_textContainer.
CreatePointerAtOffset
(_ranges[i * 2 + 1], LogicalDirection.Backward),
157
startPosition = _textContainer.
CreatePointerAtOffset
(IsSimple ? _cpFirst : _ranges[0], LogicalDirection.Forward);
169
endPosition = _textContainer.
CreatePointerAtOffset
(IsSimple ? _cpLast : _ranges[(_size - 1) * 2 + 1], LogicalDirection.Backward);
549
textPointer = textContainer.
CreatePointerAtOffset
(0, LogicalDirection.Forward); // Start
586
return textContainer.
CreatePointerAtOffset
(cp, direction);
MS\Internal\Text\ComplexLine.cs (1)
89
ITextPointer position = _owner.TextContainer.
CreatePointerAtOffset
(dcp, LogicalDirection.Backward);
MS\Internal\Text\TextLineResult.cs (4)
102
return _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cchContent, LogicalDirection.Backward);
118
return _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cch - _cchEllipses, LogicalDirection.Forward);
170
_startPosition = _owner.TextContainer.
CreatePointerAtOffset
(_dcp, LogicalDirection.Forward);
185
_endPosition = _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cch, LogicalDirection.Backward);
System\Windows\Controls\PasswordTextContainer.cs (2)
220
return ((ITextContainer)this).
CreatePointerAtOffset
(charOffset, direction);
230
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
113
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\FixedTextContainer.cs (1)
98
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\NullTextContainer.cs (1)
98
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
System\Windows\Documents\TextParentUndoUnit.cs (2)
113
ITextPointer anchorPosition = textContainer.
CreatePointerAtOffset
(_undoAnchorPositionOffset, _undoAnchorPositionDirection);
114
ITextPointer movingPosition = textContainer.
CreatePointerAtOffset
(_undoMovingPositionOffset, _undoMovingPositionDirection);
System\Windows\Documents\TextStore.cs (10)
2385
_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionStartOffset, LogicalDirection.Backward);
2386
_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionEndOffset, LogicalDirection.Forward);
2404
_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionStartOffset, LogicalDirection.Backward);
2405
_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionEndOffset, LogicalDirection.Forward);
3637
ITextPointer start = this.TextContainer.
CreatePointerAtOffset
(record.StartOffsetBefore, LogicalDirection.Backward);
3638
ITextPointer end = this.TextContainer.
CreatePointerAtOffset
(record.EndOffsetBefore, LogicalDirection.Forward);
3956
ITextPointer anchor = this.TextContainer.
CreatePointerAtOffset
(appSelectionAnchorOffset, LogicalDirection.Forward);
3957
ITextPointer moving = this.TextContainer.
CreatePointerAtOffset
(appSelectionMovingOffset, LogicalDirection.Forward);
3977
ITextPointer anchor = this.TextContainer.
CreatePointerAtOffset
(imeSelectionAnchorOffset, LogicalDirection.Backward);
3978
ITextPointer moving = this.TextContainer.
CreatePointerAtOffset
(imeSelectionMovingOffset, LogicalDirection.Backward);