15 references to CreatePointerAtOffset
PresentationFramework (15)
MS\Internal\PtsHost\TextParaClient.cs (1)
2040
ITextPointer position = Paragraph.StructuralCache.TextContainer.
CreatePointerAtOffset
(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\TextParagraph.cs (2)
590
StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.
CreatePointerAtOffset
(dcpDependAbsolute, LogicalDirection.Backward);
774
StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.
CreatePointerAtOffset
(dcpDependAbsolute, LogicalDirection.Backward);
System\Windows\Controls\FlowDocumentReader.cs (1)
2042
TextPointer contentPosition = textContainer.
CreatePointerAtOffset
(viewerState.ContentPosition, viewerState.ContentPositionDirection);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1967
TextPointer contentPosition = textContainer.
CreatePointerAtOffset
(viewerState.ContentPosition, viewerState.ContentPositionDirection);
System\Windows\Controls\SinglePageViewer.cs (1)
1566
TextPointer contentPosition = textContainer.
CreatePointerAtOffset
(viewerState.ContentPosition, viewerState.ContentPositionDirection);
System\Windows\Controls\TextBox.cs (7)
166
TextPointer newStart = this.TextContainer.
CreatePointerAtOffset
(start, LogicalDirection.Forward);
269
TextPointer position = this.TextContainer.
CreatePointerAtOffset
(charIndex, LogicalDirection.Forward);
444
TextPointer textPointer = TextContainer.
CreatePointerAtOffset
(charIndex, LogicalDirection.Backward);
484
TextPointer position = this.TextContainer.
CreatePointerAtOffset
(charIndex, LogicalDirection.Forward);
489
position = this.TextContainer.
CreatePointerAtOffset
(charIndex + 1, LogicalDirection.Forward);
561
ITextPointer position = this.TextContainer.
CreatePointerAtOffset
(charIndex, direction);
860
TextPointer newStart = TextContainer.
CreatePointerAtOffset
(value, LogicalDirection.Forward);
System\Windows\Documents\TextContainer.cs (2)
436
return
CreatePointerAtOffset
(offset, direction);
480
return
CreatePointerAtOffset
(GetInternalOffset(position) - 1, direction);