5 implementations of CreatePointerAtOffset
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
221
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
115
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
src\Framework\System\Windows\Documents\FixedTextContainer.cs (1)
100
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
87
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
src\Framework\System\Windows\Documents\TextContainer.cs (1)
449
ITextPointer ITextContainer.
CreatePointerAtOffset
(int offset, LogicalDirection direction)
44 references to CreatePointerAtOffset
PresentationFramework (44)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
121
ITextPointer position = _owner.Host.TextContainer.
CreatePointerAtOffset
(dcp, LogicalDirection.Backward);
src\Framework\MS\Internal\Documents\TextBoxView.cs (13)
749
ITextPointer endOfLinePosition = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
789
nextLinePosition = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward);
927
ITextPointer nextCaretUnitPosition = _host.TextContainer.
CreatePointerAtOffset
(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
975
ITextPointer backspaceUnitPosition = _host.TextContainer.
CreatePointerAtOffset
(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
990
ITextPointer start = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
991
ITextPointer end = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward);
1309
ITextPointer start = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[0].Offset, LogicalDirection.Backward);
1310
ITextPointer end = _host.TextContainer.
CreatePointerAtOffset
(_lineMetrics[_lineMetrics.Count-1].EndOffset, LogicalDirection.Forward);
1763
return _host.TextContainer.
CreatePointerAtOffset
(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2055
ITextPointer position = _host.TextContainer.
CreatePointerAtOffset
(unclippedStartOffset, LogicalDirection.Backward);
2100
ITextPointer endOfLinePosition = _host.TextContainer.
CreatePointerAtOffset
(endOffset, LogicalDirection.Backward);
2151
ITextPointer position = _host.TextContainer.
CreatePointerAtOffset
(unclippedStartOffset, LogicalDirection.Backward);
2179
ITextPointer endOfLinePosition = _host.TextContainer.
CreatePointerAtOffset
(endOffset, LogicalDirection.Backward);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (8)
100
_textContainer.
CreatePointerAtOffset
(_cpFirst, LogicalDirection.Forward),
101
_textContainer.
CreatePointerAtOffset
(_cpLast, LogicalDirection.Backward),
110
_textContainer.
CreatePointerAtOffset
(_ranges[i * 2], LogicalDirection.Forward),
111
_textContainer.
CreatePointerAtOffset
(_ranges[i * 2 + 1], LogicalDirection.Backward),
165
startPosition = _textContainer.
CreatePointerAtOffset
(IsSimple ? _cpFirst : _ranges[0], LogicalDirection.Forward);
177
endPosition = _textContainer.
CreatePointerAtOffset
(IsSimple ? _cpLast : _ranges[(_size - 1) * 2 + 1], LogicalDirection.Backward);
557
textPointer = textContainer.
CreatePointerAtOffset
(0, LogicalDirection.Forward); // Start
594
return textContainer.
CreatePointerAtOffset
(cp, direction);
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
97
ITextPointer position = _owner.TextContainer.
CreatePointerAtOffset
(dcp, LogicalDirection.Backward);
src\Framework\MS\Internal\Text\TextLineResult.cs (4)
111
return _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cchContent, LogicalDirection.Backward);
127
return _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cch - _cchEllipses, LogicalDirection.Forward);
179
_startPosition = _owner.TextContainer.
CreatePointerAtOffset
(_dcp, LogicalDirection.Forward);
194
_endPosition = _owner.TextContainer.
CreatePointerAtOffset
(_dcp + _cch, LogicalDirection.Backward);
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (2)
229
return ((ITextContainer)this).
CreatePointerAtOffset
(charOffset, direction);
239
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
133
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
src\Framework\System\Windows\Documents\FixedTextContainer.cs (1)
118
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
105
return new StaticTextPointer(this, ((ITextContainer)this).
CreatePointerAtOffset
(offset, LogicalDirection.Forward));
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (2)
129
ITextPointer anchorPosition = textContainer.
CreatePointerAtOffset
(_undoAnchorPositionOffset, _undoAnchorPositionDirection);
130
ITextPointer movingPosition = textContainer.
CreatePointerAtOffset
(_undoMovingPositionOffset, _undoMovingPositionDirection);
src\Framework\System\Windows\Documents\TextStore.cs (10)
2261
_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionStartOffset, LogicalDirection.Backward);
2262
_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionEndOffset, LogicalDirection.Forward);
2280
_previousCompositionStart = (_previousCompositionStartOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionStartOffset, LogicalDirection.Backward);
2281
_previousCompositionEnd = (_previousCompositionEndOffset == -1) ? null : textEditor.TextContainer.
CreatePointerAtOffset
(_previousCompositionEndOffset, LogicalDirection.Forward);
3548
ITextPointer start = this.TextContainer.
CreatePointerAtOffset
(record.StartOffsetBefore, LogicalDirection.Backward);
3549
ITextPointer end = this.TextContainer.
CreatePointerAtOffset
(record.EndOffsetBefore, LogicalDirection.Forward);
3808
ITextPointer anchor = this.TextContainer.
CreatePointerAtOffset
(appSelectionAnchorOffset, LogicalDirection.Forward);
3809
ITextPointer moving = this.TextContainer.
CreatePointerAtOffset
(appSelectionMovingOffset, LogicalDirection.Forward);
3829
ITextPointer anchor = this.TextContainer.
CreatePointerAtOffset
(imeSelectionAnchorOffset, LogicalDirection.Backward);
3830
ITextPointer moving = this.TextContainer.
CreatePointerAtOffset
(imeSelectionMovingOffset, LogicalDirection.Backward);