5 implementations of CreatePointer
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
328ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
194ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
System\Windows\Documents\FixedTextPointer.cs (1)
263ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
System\Windows\Documents\NullTextNavigator.cs (1)
185ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
System\Windows\Documents\TextPointer.cs (1)
2575ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
86 references to CreatePointer
PresentationFramework (86)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (4)
96ITextPointer startPointer = segment.Start.CreatePointer(LogicalDirection.Forward); 103ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 599start = textView.TextSegments[0].Start.CreatePointer(LogicalDirection.Forward); 600end = textView.TextSegments[textView.TextSegments.Count - 1].End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
190IDocumentPaginatorSource content = GetPointerPage(pointer.CreatePointer(LogicalDirection.Forward), out pageNumber); 231return GetAnchorPointForPointer(anchor.Start.CreatePointer(LogicalDirection.Forward)); 423ITextPointer start = segment.Start.CreatePointer(LogicalDirection.Forward); 424ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (1)
1103ITextView parentView = TextSelectionHelper.GetDocumentPageTextView(TopOwner.Range.Start.CreatePointer(LogicalDirection.Forward));
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
655ITextPointer start = anchor.Start.CreatePointer(LogicalDirection.Forward); 656ITextPointer end = anchor.End.CreatePointer(LogicalDirection.Backward); 821nextPointer = nextPointer.CreatePointer(direction == LogicalDirection.Backward ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\Documents\DocumentGrid.cs (1)
299tp = tp.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\DocumentViewerHelper.cs (1)
402contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\TextContainerHelper.cs (2)
448positionsStart.Insert(0, position.CreatePointer(LogicalDirection.Forward)); 464positionsEnd.Insert(0, position.CreatePointer(LogicalDirection.Backward));
MS\Internal\Documents\TextDocumentView.cs (10)
765position = paragraph.StartPosition.CreatePointer(LogicalDirection.Forward); 769position = paragraph.EndPosition.CreatePointer(LogicalDirection.Backward); 885position = paragraph.StartPosition.CreatePointer(LogicalDirection.Forward); 889position = paragraph.EndPosition.CreatePointer(LogicalDirection.Backward); 2528positionOut = lines[lineIndex].StartPosition.CreatePointer(LogicalDirection.Forward); 2548positionOut = lines[0].StartPosition.CreatePointer(LogicalDirection.Forward); 2560positionOut = lines[lines.Count - 1].StartPosition.CreatePointer(LogicalDirection.Forward); 3010positionOut = lines[lineIndex].StartPosition.CreatePointer(LogicalDirection.Forward); 3025positionOut = lines[0].StartPosition.CreatePointer(LogicalDirection.Forward); 3037positionOut = lines[lines.Count - 1].StartPosition.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\TextParagraphView.cs (1)
178positionOut = lines[lineIndex].StartPosition.CreatePointer(LogicalDirection.Forward);
System\Windows\Controls\PasswordTextContainer.cs (1)
225return ((ITextPointer)position.Handle0).CreatePointer(direction);
System\Windows\Controls\TextAdaptor.cs (4)
620rangeStart = position.CreatePointer(LogicalDirection.Forward); 622rangeEnd = position.CreatePointer(LogicalDirection.Backward); 630rangeStart = position.CreatePointer(LogicalDirection.Forward); 632rangeEnd = position.CreatePointer(LogicalDirection.Backward);
System\Windows\Controls\TextBox.cs (2)
1442textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).GetLineRange(textPointer).Start.CreatePointer(textPointer.LogicalDirection); 1471textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).GetLineRange(textPointer).End.CreatePointer(textPointer.LogicalDirection);
System\Windows\Controls\TextRangeAdaptor.cs (6)
1673ITextPointer position = _end.CreatePointer(LogicalDirection.Backward); 1684attrEnd = position.CreatePointer(LogicalDirection.Backward); 1691attrStart = position.CreatePointer(LogicalDirection.Forward); 1704ITextPointer position = _start.CreatePointer(LogicalDirection.Forward); 1715attrStart = position.CreatePointer(LogicalDirection.Forward); 1722attrEnd = position.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\CompositionAdorner.cs (4)
325ITextPointer rangeStart = start.CreatePointer(LogicalDirection.Forward); 326ITextPointer rangeEnd = end.CreatePointer(LogicalDirection.Backward); 604endLinePointer = textSegment.End.CreatePointer(LogicalDirection.Backward); 619startLinePointer = textSegment.End.CreatePointer(LogicalDirection.Forward);
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
116return ((ITextPointer)position.Handle0).CreatePointer(direction);
System\Windows\Documents\DocumentSequenceTextPointer.cs (5)
192/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 369ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward); 784DocumentSequenceTextPointer newTp = new DocumentSequenceTextPointer(thisTp.ChildBlock, thisTp.ChildPointer.CreatePointer(gravity)); 1075cdb.ChildContainer.Start.CreatePointer(childTn.LogicalDirection) 1076: cdb.ChildContainer.End.CreatePointer(childTn.LogicalDirection)
System\Windows\Documents\DocumentSequenceTextView.cs (4)
136return ChildTextView.GetRawRectangleFromTextPosition(tp.ChildPointer.CreatePointer(position.LogicalDirection), out transform); 219ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.LogicalDirection), suggestedX, count, out newSuggestedX, out linesMoved); 365TextSegment childTR = ChildTextView.GetLineRange(tpLine.ChildPointer.CreatePointer(position.LogicalDirection)); 439return ChildTextView.Contains(tp.ChildPointer.CreatePointer(position.LogicalDirection));
System\Windows\Documents\FixedTextContainer.cs (1)
100return ((ITextPointer)position.Handle0).CreatePointer(direction);
System\Windows\Documents\FixedTextPointer.cs (2)
261/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 579ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward);
System\Windows\Documents\FixedTextView.cs (2)
868itp = ((ITextPointer)this.Start).CreatePointer(LogicalDirection.Forward); 873itp = ((ITextPointer)this.End).CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\ImmComposition.cs (6)
647ITextPointer startPosition = startNavigator.CreatePointer(LogicalDirection.Forward); 648ITextPointer endPosition = endNavigator.CreatePointer(LogicalDirection.Backward); 649ITextPointer caretPosition = caretNavigator.CreatePointer(LogicalDirection.Forward); 769rectCaret = view.GetRectangleFromTextPosition(_editor.Selection.End.CreatePointer(LogicalDirection.Backward)); 1535ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward); 1540ITextPointer end = start.CreatePointer(LogicalDirection.Forward);
System\Windows\Documents\NullTextContainer.cs (1)
93return ((ITextPointer)position.Handle0).CreatePointer(direction);
System\Windows\Documents\NullTextNavigator.cs (1)
183/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
System\windows\Documents\TextEditorContextMenu.cs (1)
198if (position != null && position.CreatePointer(direction).HasValidLayout)
System\windows\Documents\TextEditorSelection.cs (3)
113ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward); 115ITextPointer lineEnd = position.CreatePointer(LogicalDirection.Backward); 1603ExtendSelectionAndBringIntoView(lineRange.Start.CreatePointer(LogicalDirection.Forward), This);
System\windows\Documents\TextEditorSpelling.cs (1)
184textStart = spellingError.Start.CreatePointer(LogicalDirection.Backward);
System\windows\Documents\TextEditorTyping.cs (1)
1556ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\TextPointerBase.cs (2)
880Rect rect = textView.GetRectangleFromTextPosition(thisPointer.CreatePointer(direction)); 1107frozenPointer = thisPointer.CreatePointer(logicalDirection);
System\Windows\Documents\TextRangeBase.cs (2)
1373ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward); 1378TextPointer insertionPosition = (TextPointer)newStart.CreatePointer(LogicalDirection.Forward);
System\Windows\Documents\TextRangeSerialization.cs (1)
1922hyperlinkStart = range.Start.CreatePointer(LogicalDirection.Forward);
System\windows\Documents\TextSelection.cs (4)
456caretPosition = caretPosition.CreatePointer(direction); 466ITextPointer reversePosition = caretPosition.CreatePointer(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward); 2275nextCharacterPosition = focusedTextSelection.Start.CreatePointer(LogicalDirection.Forward); 2289nextCharacterPosition = focusedTextSelection.End.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\TextStore.cs (4)
981ITextPointer positionCur = position.CreatePointer(LogicalDirection.Backward); 982ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward); 1913pointer = this.TextSelection.Start.CreatePointer(direction); 3177ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward);