5 implementations of ITextPointer
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
15internal sealed class PasswordTextPointer : ITextPointer
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
19internal sealed class DocumentSequenceTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\FixedTextPointer.cs (1)
23internal class FixedTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\NullTextNavigator.cs (1)
18internal sealed class NullTextPointer : ITextPointer
System\Windows\Documents\TextPointer.cs (1)
234public class TextPointer : ContentPosition, ITextPointer
2108 references to ITextPointer
PresentationFramework (2108)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (11)
96ITextPointer startPointer = segment.Start.CreatePointer(LogicalDirection.Forward); 103ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 315ITextPointer segStart; 334ITextPointer segEnd; 432ITextPointer start = null; 538private static ITextPointer FindStartVisibleTextPointer(DocumentPage documentPage) 540ITextPointer start, end; 562private static ITextPointer FindEndVisibleTextPointer(DocumentPage documentPage) 564ITextPointer start, end; 587private static bool GetTextViewRange(DocumentPage documentPage, out ITextPointer start, out ITextPointer end)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (15)
109ITextPointer start = null; 110ITextPointer end = null; 126while (((ITextPointer)current).CompareTo(end) < 0) 152ITextPointer start = null; 153ITextPointer end = null; 168public static UIElement GetParent(ITextPointer pointer) 242public static Point GetAnchorPointForPointer(ITextPointer pointer) 266public static Point GetPointForPointer(ITextPointer pointer) 289public static Rect GetAnchorRectangle(ITextPointer pointer) 324public static IDocumentPaginatorSource GetPointerPage(ITextPointer pointer, out int pageNumber) 357internal static void CheckSelection(object selection, out ITextPointer start, out ITextPointer end, out IList<TextSegment> segments) 384internal static ITextView GetDocumentPageTextView(ITextPointer pointer) 423ITextPointer start = segment.Start.CreatePointer(LogicalDirection.Forward); 424ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (14)
130ITextPointer start; 131ITextPointer end; 138ITextPointer elementStart; 139ITextPointer elementEnd; 216ITextPointer elementStart; 217ITextPointer elementEnd; 227ITextPointer start = elementStart.CreatePointer(startOffset);// new TextPointer((TextPointer)elementStart, startOffset); 229ITextPointer end = (textRangeLength <= endOffset) ? 250ITextPointer currentStart = anchor.Start; 251ITextPointer currentEnd = anchor.End; 481private bool GetNodesStartAndEnd(DependencyObject startNode, out ITextPointer start, out ITextPointer end) 515private void GetTextSegmentValues(TextSegment segment, ITextPointer elementStart, ITextPointer elementEnd, out int startOffset, out int endOffset)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
233ITextPointer start = segments[0].Start; 234ITextPointer end = segments[segments.Count - 1].End;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (36)
70ITextPointer start = highlightRange.Range.Start; 71ITextPointer end = highlightRange.Range.End; 90ITextPointer invalidateStart; 91ITextPointer invalidateEnd; 122ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 123ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 173ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 174ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 201ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 202ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 273ITextPointer dynamicPosition; 339private void ProcessOverlapingSegments(IHighlightRange highlightRange, out ITextPointer invalidateStart, out ITextPointer invalidateEnd) 452private ITextPointer GetNextForwardPosition(StaticTextPointer pos) 476private ITextPointer GetNextBackwardPosition(StaticTextPointer pos) 495void GetSpannedSegments(ITextPointer start, ITextPointer end, out int startSeg, out int endSeg) 553internal AnnotationHighlightChangedEventArgs(ITextPointer start, ITextPointer end) 603internal HighlightSegment(ITextPointer start, ITextPointer end, IHighlightRange owner) 619internal HighlightSegment(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners) 634private void Init(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners) 760internal IList<HighlightSegment> Split(ITextPointer ps, LogicalDirection side) 790internal IList<HighlightSegment> Split(ITextPointer ps1, ITextPointer ps2, IHighlightRange newOwner) 983ITextPointer cursor = _segment.Start.CreatePointer(); 984ITextPointer segmentStart = null; 1048private void OpenSegment(ref ITextPointer segmentStart, ITextPointer cursor) 1059private void CloseSegment(ref ITextPointer segmentStart, ITextPointer cursor, ITextPointer end) 1070ITextPointer segmentEnd = cursor.GetInsertionPosition(LogicalDirection.Backward);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (9)
358private void SetMarkerTransform(Path marker, ITextPointer anchor, ITextPointer baseAnchor, int xScaleFactor) 659ITextPointer start = anchor.Start.CreatePointer(LogicalDirection.Forward); 660ITextPointer end = anchor.End.CreatePointer(LogicalDirection.Backward); 706private void CheckPosition(ITextPointer position) 789private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 819ITextPointer nextPointer = pointer.GetNextInsertionPosition(direction); 943ITextPointer pos = textView.GetTextPositionFromPoint(currentPosition, false); 954private static void CheckAllHighlightRanges(ITextPointer pos)
MS\Internal\Annotations\TextAnchor.cs (7)
100internal bool Contains(ITextPointer textPointer) 138internal void AddTextSegment(ITextPointer start, ITextPointer end) 504internal ITextPointer Start 515internal ITextPointer End 651private static TextSegment CreateNormalizedSegment(ITextPointer start, ITextPointer end)
MS\Internal\Documents\ColumnResult.cs (3)
93internal bool Contains(ITextPointer position, bool strict) 112internal ITextPointer StartPosition 124internal ITextPointer EndPosition
MS\Internal\Documents\DocumentGrid.cs (11)
295ITextPointer tp = TextEditor.Selection.Start; 1820ITextPointer tp = data.ContentPosition as ITextPointer; 1952ITextPointer selection = GetVisibleSelection(); 2526private ITextPointer GetVisibleSelection() 2528ITextPointer selection = null; 2532ITextPointer tp = TextEditor.Selection.Start; 2560private int GetPageNumberForVisibleSelection(ITextPointer selection) 2592ITextPointer tp = GetVisibleSelection(); 2663private bool TextViewContains(ITextPointer tp) 2849ITextPointer selection = GetVisibleSelection();
MS\Internal\Documents\DocumentPageTextView.cs (21)
96internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 115internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 143internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 169internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 171ITextPointer positionOut; 198internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 200ITextPointer positionOut = position; 239internal override bool IsAtCaretUnitBoundary(ITextPointer position) 256internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 273internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 290internal override TextSegment GetLineRange(ITextPointer position) 307internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 324internal override bool Contains(ITextPointer position) 404/// <see cref="ITextView.Validate(ITextPointer)"/> 406internal override bool Validate(ITextPointer position)
MS\Internal\Documents\DocumentViewerHelper.cs (5)
82ITextPointer contentStart; 83ITextPointer contentEnd; 84ITextPointer startPointer = null; 222ITextPointer temp = contentStart; 390ITextPointer contextMenuPosition = null;
MS\Internal\Documents\FlowDocumentFormatter.cs (2)
322void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
MS\Internal\Documents\FlowDocumentPaginator.cs (5)
347ITextPointer position; 691private void InvalidateBRTLayout(ITextPointer start, ITextPointer end) 1104void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
MS\Internal\Documents\HostedElements.cs (4)
87Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 88((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 98Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 99while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0)
MS\Internal\Documents\IFlowDocumentFormatter.cs (2)
30void OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end);
MS\Internal\Documents\LineResult.cs (12)
32internal abstract ITextPointer GetTextPositionFromDistance(double distance); 37internal abstract bool IsAtCaretUnitBoundary(ITextPointer position); 42internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 47internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 52internal abstract ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 62internal abstract ITextPointer GetContentEndPosition(); 72internal abstract ITextPointer GetEllipsesPosition(); 107internal abstract ITextPointer StartPosition { get; } 112internal abstract ITextPointer EndPosition { get; }
MS\Internal\Documents\MultiPageTextView.cs (47)
90internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 92ITextPointer position = null; 114internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 143internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 161ITextPointer startPositionInTextSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 162ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 186internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 201internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 214internal override bool IsAtCaretUnitBoundary(ITextPointer position) 236internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 238ITextPointer positionOut = null; 258internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 260ITextPointer positionOut = null; 280internal override TextSegment GetLineRange(ITextPointer position) 302internal override bool Contains(ITextPointer position) 315internal override void BringPositionIntoViewAsync(ITextPointer position, object userState) 379ITextPointer position; 478internal override void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 501internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 601internal ITextView GetPageTextViewFromPosition(ITextPointer position) 753ITextPointer newPosition; 825ITextPointer newPosition; 862private ITextPointer GetPositionAtNextLineCore(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved, out int pageNumber) 864ITextPointer positionOut; 966private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber) 969ITextPointer positionOut = position; 1020private ITextPointer GetPositionAtPageBoundary(bool pageTop, ITextView pageTextView, ITextPointer position, double suggestedX) 1024ITextPointer positionOut; 1134private DocumentPageTextView GetTextViewFromPosition(ITextPointer position) 1361ITextPointer newPosition; 1592internal BringPositionIntoViewRequest(ITextPointer position, object userState) 1598internal readonly ITextPointer Position; 1614internal ITextPointer Position; 1622internal BringLineIntoViewRequest(ITextPointer position, double suggestedX, int count, object userState) 1632internal readonly ITextPointer Position; 1635internal ITextPointer NewPosition; 1646internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState) 1656internal readonly ITextPointer Position; 1659internal ITextPointer NewPosition;
MS\Internal\Documents\ParagraphResult.cs (29)
75internal virtual bool Contains(ITextPointer position, bool strict) 94internal ITextPointer StartPosition 106internal ITextPointer EndPosition 239internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 348internal Rect GetRectangleFromTextPosition(ITextPointer position) 361internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 370internal bool IsAtCaretUnitBoundary(ITextPointer position) 382internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 391internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 405internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 419internal override bool Contains(ITextPointer position, bool strict) 628internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position) 640internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 652internal CellParaClient GetCellParaClientFromPosition(ITextPointer position) 704internal Rect GetRectangleFromRowEndPosition(ITextPointer position) 1080internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success) 1087ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition; 1252internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success) 1259ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition; 1336internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
MS\Internal\Documents\TextBoxLine.cs (1)
112ITextPointer position = _owner.Host.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
MS\Internal\Documents\TextBoxView.cs (40)
556ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 563ITextPointer position; 581Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 635Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 645Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 701ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward); 724ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 734ITextPointer nextLinePosition; 756ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 771bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 810ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 879ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 887ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 927ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 935TextSegment ITextView.GetLineRange(ITextPointer position) 942ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 943ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 951ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 961bool ITextView.Contains(ITextPointer position) 969void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 991void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 1002void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 1039/// <see cref="ITextView.Validate(ITextPointer)"/> 1041bool ITextView.Validate(ITextPointer position) 1265ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1266ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward); 1654private int GetLineIndexFromPosition(ITextPointer position) 1660private int GetLineIndexFromPosition(ITextPointer position, LogicalDirection direction) 1710private ITextPointer GetTextPositionFromDistance(int lineIndex, double x) 2017ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2062ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2113ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2141ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2878private bool Contains(ITextPointer position)
MS\Internal\Documents\TextContainerHelper.cs (24)
110internal bool Contains(ITextPointer position, bool strict) 150internal ITextPointer StartPosition 154ITextPointer startPosition = null; 162internal ITextPointer EndPosition 166ITextPointer endPosition = null; 308internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart) 392internal static bool IsImmediateAutomationChild(ITextPointer elementStart, ITextPointer ownerContentStart) 397ITextPointer position = elementStart.CreatePointer(); 428internal static AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end, out ITextPointer elementStart, out ITextPointer elementEnd) 432ITextPointer position; 434List<ITextPointer> positionsStart, positionsEnd; 439positionsStart = new List<ITextPointer>(); 455positionsEnd = new List<ITextPointer>(); 535internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element) 537ITextPointer textPointer; 584internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction) 600internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 603ITextPointer position;
MS\Internal\Documents\TextDocumentView.cs (88)
60internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 83internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 108internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 153ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 154ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 223internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 225ITextPointer positionOut; 277internal override bool IsAtCaretUnitBoundary(ITextPointer position) 296internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 316internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 335internal override TextSegment GetLineRange(ITextPointer position) 354internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 383internal override bool Contains(ITextPointer position) 460internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments) 678private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements) 680ITextPointer position; 740private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText) 742ITextPointer position = null; 894private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText) 896ITextPointer position = null; 1090private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1127private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position) 1226private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1249ITextPointer startPosition, 1250ITextPointer endPosition, 1317ITextPointer startPosition, 1318ITextPointer endPosition, 1343ITextPointer startPosition, 1344ITextPointer endPosition, 1423private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1458private bool IsAtCaretUnitBoundary(ParagraphResult paragraph, ITextPointer position) 1526private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1545private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction) 1549ITextPointer nextCaretPosition = position; 1582private ITextPointer GetNextCaretUnitPosition(ParagraphResult paragraph, ITextPointer position, LogicalDirection direction) 1584ITextPointer nextCaretPosition = position; 1651private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction) 1668private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1672ITextPointer backspaceCaretPosition = position; 1703private ITextPointer GetBackspaceCaretUnitPosition(ParagraphResult paragraph, ITextPointer position) 1705ITextPointer backspaceCaretPosition = position; 1770private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2087private int GetColumnFromPosition(ReadOnlyCollection<ColumnResult> columns, ITextPointer position) 2138private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, out bool isFloatingPara) 2164private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position) 2235private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2270private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position) 2371private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2402private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position, double suggestedX, ref int count, out bool positionFound) 2407ITextPointer positionOut = position; 2620private ITextPointer GetPositionAtNextLineInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out bool positionFound) 2623ITextPointer positionOut = position; 2671private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out double newSuggestedX, out bool positionFound) 2673ITextPointer positionOut = null; 2712ITextPointer siblingColumnPosition = GetPositionAtNextLineFromSiblingColumn(columns, columnIndex, suggestedX, ref newSuggestedX, ref count); 2743private ITextPointer GetPositionAtNextLineFromSiblingPara(ReadOnlyCollection<ParagraphResult> paragraphs, int paragraphIndex, double suggestedX, ref int count) 2748ITextPointer positionOut = null; 2905private ITextPointer GetPositionAtNextLineFromSiblingTextPara(TextParagraphResult paragraph, double suggestedX, ref int count) 2907ITextPointer positionOut = null; 3023private ITextPointer GetPositionAtNextLineFromSiblingColumn(ReadOnlyCollection<ColumnResult> columns, int columnIndex, double columnSuggestedX, ref double newSuggestedX, ref int count) 3025ITextPointer positionOut = null; 3071private bool ContainsCore(ITextPointer position) 3086private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs) 3099ITextPointer startRange = start.CompareTo(tpr.StartPosition) < 0 ? tpr.StartPosition : start; 3100ITextPointer endRange = end.CompareTo(tpr.EndPosition) < 0 ? end : tpr.EndPosition; 3138private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success) 3150ITextPointer endThisPara = end.CompareTo(paragraph.EndPosition) < 0 ? end : paragraph.EndPosition; 3181private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements) 3240ITextPointer segmentEnd = _textContainer.End; 3431private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer) 3461private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
MS\Internal\Documents\TextParagraphView.cs (20)
57internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 59ITextPointer position; 80internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 99internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 125internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 127ITextPointer positionOut; 188internal override bool IsAtCaretUnitBoundary(ITextPointer position) 207internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 220ITextPointer positionOut = _owner.GetNextCaretUnitPosition(position, direction, dcp, lineIndex); 230internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 243ITextPointer positionOut = _owner.GetBackspaceCaretUnitPosition(position, dcp, lineIndex); 253internal override TextSegment GetLineRange(ITextPointer position) 279internal override bool Contains(ITextPointer position) 318internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText) 321ITextPointer orientedPosition; 353internal static int GetLineFromPosition(ReadOnlyCollection<LineResult> lines, ITextPointer position)
MS\Internal\Documents\TextViewBase.cs (49)
35internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 44internal virtual Rect GetRectangleFromTextPosition(ITextPointer position) 60internal abstract Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 65internal abstract Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition); 70internal abstract ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved); 75internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 85internal abstract bool IsAtCaretUnitBoundary(ITextPointer position); 90internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 95internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 100internal abstract TextSegment GetLineRange(ITextPointer position); 105internal virtual ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 118internal abstract bool Contains(ITextPointer position); 176internal virtual void BringPositionIntoViewAsync(ITextPointer position, object userState) 191ITextPointer position; 205internal virtual void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 207ITextPointer newPosition; 223internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 225ITextPointer newPosition; 262/// <see cref="ITextView.Validate(ITextPointer)"/> 264internal virtual bool Validate(ITextPointer position) 465ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 473Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 481Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 489Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 497ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 505ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 513bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 521ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 529ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 537TextSegment ITextView.GetLineRange(ITextPointer position) 545ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 553bool ITextView.Contains(ITextPointer position) 561void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 577void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 585void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 615/// <see cref="ITextView.Validate(ITextPointer)"/> 617bool ITextView.Validate(ITextPointer position)
MS\Internal\LayoutDump.cs (2)
612private static void DumpTextRange(XmlTextWriter writer, ITextPointer start, ITextPointer end)
MS\Internal\PtsHost\BreakRecordTable.cs (6)
174internal void OnInvalidateLayout(ITextPointer start, ITextPointer end) 224internal void OnInvalidateRender(ITextPointer start, ITextPointer end) 432private void GetAffectedPages(ITextPointer start, ITextPointer end, out int pageStart, out int pageCount)
MS\Internal\PtsHost\CellParaClient.cs (2)
309internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\ContainerParaClient.cs (2)
396internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\ContainerParagraph.cs (3)
142ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 231ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 1005protected virtual BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
MS\Internal\PtsHost\FigureParaClient.cs (2)
732internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\FloaterParaClient.cs (2)
741internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
946while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.TextContainer.End) < 0) 981if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 982((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
MS\Internal\PtsHost\Line.cs (2)
187ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 188ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\ListParagraph.cs (1)
60protected override BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
MS\Internal\PtsHost\OptimalTextSource.cs (3)
138ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 139ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 177ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\TableParaClient.cs (5)
801internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position) 818internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 889internal CellParaClient GetCellParaClientFromPosition(ITextPointer position) 1118internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
MS\Internal\PtsHost\TextParaClient.cs (29)
660internal ITextPointer GetTextPosition(int dcp, LogicalDirection direction) 672internal Rect GetRectangleFromTextPosition(ITextPointer position) 732internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 821internal bool IsAtCaretUnitBoundary(ITextPointer position) 871internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 873ITextPointer nextCaretPosition = position; 914internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 916ITextPointer backspaceCaretPosition = position; 967internal ITextPointer GetTextPositionFromDistance(int dcpLine, double distance) 1105internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 2034ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2365ITextPointer position, 2457ITextPointer position, 2580private ITextPointer NextCaretUnitPositionFromDcpSimpleLines( 2582ITextPointer position, 2596ITextPointer nextCaretPosition = position; 2705private ITextPointer NextCaretUnitPositionFromDcpCompositeLines( 2707ITextPointer position, 2721ITextPointer nextCaretPosition = position; 2871private ITextPointer BackspaceCaretUnitPositionFromDcpSimpleLines( 2873ITextPointer position, 2886ITextPointer backspaceCaretPosition = position; 2963private ITextPointer BackspaceCaretUnitPositionFromDcpCompositeLines( 2965ITextPointer position, 2978ITextPointer backspaceCaretPosition = position;
MS\Internal\PtsHost\TextParagraph.cs (5)
862ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 863ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 885ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 886ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 938ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element);
MS\Internal\PtsHost\TextParaLineResult.cs (14)
39internal override ITextPointer GetTextPositionFromDistance(double distance) 51internal override bool IsAtCaretUnitBoundary(ITextPointer position) 67internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 80internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 96internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 106internal override ITextPointer GetContentEndPosition() 116internal override ITextPointer GetEllipsesPosition() 167internal override ITextPointer StartPosition 182internal override ITextPointer EndPosition 352private ITextPointer _startPosition; 357private ITextPointer _endPosition;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
140internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
MS\Internal\Text\ComplexLine.cs (1)
89ITextPointer position = _owner.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
MS\Internal\Text\TextLineResult.cs (14)
40internal override ITextPointer GetTextPositionFromDistance(double distance) 50internal override bool IsAtCaretUnitBoundary(ITextPointer position) 62internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 73internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 85internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 99internal override ITextPointer GetContentEndPosition() 113internal override ITextPointer GetEllipsesPosition() 164internal override ITextPointer StartPosition 179internal override ITextPointer EndPosition 304private ITextPointer _startPosition; 309private ITextPointer _endPosition;
System\Windows\Annotations\AnnotationHelper.cs (2)
671ITextPointer start = selection.Start.CreatePointer(); 672ITextPointer end = selection.End.CreatePointer();
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (2)
87internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
202internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end) 273private ITextPointer _childrenStart; 274private ITextPointer _childrenEnd;
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (2)
153internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
79internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextAutomationPeer.cs (2)
112internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
124internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
205internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
837ITextPointer contentPosition = arg as ITextPointer;
System\Windows\Controls\PasswordBox.cs (2)
1053ITextPointer selectionStart; 1054ITextPointer selectionEnd;
System\Windows\Controls\PasswordTextContainer.cs (24)
71internal void InsertText(ITextPointer position, string textData) 110internal void DeleteContent(ITextPointer startPosition, ITextPointer endPosition) 212ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 218ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 223ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 225return ((ITextPointer)position.Handle0).CreatePointer(direction); 235return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 240return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 245return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 250return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 260return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 265return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 270return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 273int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 275return ((ITextPointer)position1.Handle0).CompareTo(position2); 280return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 364ITextPointer ITextContainer.Start 378ITextPointer ITextContainer.End 510internal ITextPointer Start 524internal ITextPointer End 620private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
System\Windows\Controls\PasswordTextNavigator.cs (74)
48/// <see cref="ITextPointer.SetLogicalDirection"/> 50void ITextPointer.SetLogicalDirection(LogicalDirection direction) 78int ITextPointer.CompareTo(ITextPointer position) 101int ITextPointer.CompareTo(StaticTextPointer position) 103return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 118int ITextPointer.GetOffsetToPosition(ITextPointer position) 134TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 166int ITextPointer.GetTextRunLength(LogicalDirection direction) 183string ITextPointer.GetTextInRun(LogicalDirection direction) 188int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 223object ITextPointer.GetAdjacentElement(LogicalDirection direction) 243Type ITextPointer.GetElementType(LogicalDirection direction) 262bool ITextPointer.HasEqualScope(ITextPointer position) 283object ITextPointer.GetValue(DependencyProperty formattingProperty) 294object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 306LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 311ITextPointer ITextPointer.CreatePointer() 318StaticTextPointer ITextPointer.CreateStaticPointer() 320return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 323ITextPointer ITextPointer.CreatePointer(int distance) 328ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 350ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 356void ITextPointer.Freeze() 362/// <see cref="ITextPointer.GetFrozenPointer"/> 364ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 375void ITextPointer.InsertTextInRun(string textData) 387void ITextPointer.DeleteContentToPosition(ITextPointer limit) 419bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 460int ITextPointer.MoveByOffset(int distance) 488void ITextPointer.MoveToPosition(ITextPointer position) 506void ITextPointer.MoveToElementEdge(ElementEdge edge) 513int ITextPointer.MoveToLineBoundary(int count) 519Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 524bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 529bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 536ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 538ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 551ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 553ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 560ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 562ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 577ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 579ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 585/// <see cref="ITextPointer.ValidateLayout"/> 586bool ITextPointer.ValidateLayout() 602Type ITextPointer.ParentType 611ITextContainer ITextPointer.TextContainer 620bool ITextPointer.HasValidLayout 629bool ITextPointer.IsAtCaretUnitBoundary 649LogicalDirection ITextPointer.LogicalDirection 657bool ITextPointer.IsAtInsertionPosition 663bool ITextPointer.IsFrozen 672int ITextPointer.Offset 681int ITextPointer.CharOffset
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
760private ITextPointer GetMasterPageTextPointer(bool startOfPage) 762ITextPointer masterPointer = null;
System\Windows\Controls\TextAdaptor.cs (19)
89internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool clipToView, bool transformToScreen) 133ITextPointer position = start.CreatePointer(); 141ITextPointer first = (lineRange.Start.CompareTo(start) <= 0) ? start : lineRange.Start; 142ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End; 202internal void Select(ITextPointer start, ITextPointer end) 212internal void ScrollIntoView(ITextPointer start, ITextPointer end, bool alignToTop) 271ITextPointer pointer = alignToTop ? start.CreatePointer() : end.CreatePointer(); 280internal ITextRangeProvider TextRangeFromTextPointers(ITextPointer rangeStart, ITextPointer rangeEnd) 297ITextPointer temp = rangeStart; 533ITextPointer visibleStart = textView.GetTextPositionFromPoint(visibleRect.TopLeft, true); 534ITextPointer visibleEnd = textView.GetTextPositionFromPoint(visibleRect.BottomRight, true); 583ITextPointer rangeStart = null; 584ITextPointer rangeEnd = null; 606ITextPointer position = _textContainer.Start.CreatePointer(); 663ITextPointer position = textView.GetTextPositionFromPoint(location, true);
System\Windows\Controls\TextBlock.cs (14)
2104internal ITextPointer GetTextPositionFromDistance(int dcp, double distance, double lineVOffset, int index) 2122ITextPointer pos; 2151internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition) 2253internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 2279ITextPointer endOfLineTextPointer = _complexContent.TextContainer.Start.CreatePointer(0); 2367internal bool IsAtCaretUnitBoundary(ITextPointer position, int dcp, int lineIndex) 2435internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction, int dcp, int lineIndex) 2543ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 2563internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position, int dcp, int lineIndex) 2631ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 2815private static void InsertTextRun(ITextPointer position, string text, bool whitespacesIgnorable)
System\Windows\Controls\TextBox.cs (1)
556ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction);
System\Windows\Controls\TextRangeAdaptor.cs (69)
48delegate(ITextPointer tp) 59delegate(ITextPointer tp) 69delegate(ITextPointer tp) 108delegate(ITextPointer tp) 148delegate(ITextPointer tp) 159delegate(ITextPointer tp) 169delegate(ITextPointer tp) 179delegate(ITextPointer tp) 190delegate(ITextPointer tp) 200delegate(ITextPointer tp) 228delegate(ITextPointer tp) 238delegate(ITextPointer tp) 249delegate(ITextPointer tp) 260delegate(ITextPointer tp) { return false; }, 267delegate(ITextPointer tp) 279delegate(ITextPointer tp) 294delegate(ITextPointer tp) 305delegate(ITextPointer tp) 316delegate(ITextPointer tp) 327delegate(ITextPointer tp) 338delegate(ITextPointer tp) 349delegate(ITextPointer tp) 360delegate(ITextPointer tp) { return OutlineStyles.None; }, 367delegate(ITextPointer tp) 378delegate(ITextPointer tp) 389delegate(ITextPointer tp) 400delegate(ITextPointer tp) 411delegate(ITextPointer tp) 433delegate(ITextPointer tp) 444delegate(ITextPointer tp) 457internal TextRangeAdaptor(TextAdaptor textAdaptor, ITextPointer start, ITextPointer end, AutomationPeer textPeer) 480internal static bool MoveToInsertionPosition(ITextPointer position, LogicalDirection direction) 725private bool MoveToUnitBoundary(ITextPointer position, bool isStart, LogicalDirection direction, TextUnit unit) 793ITextPointer nextLineStart = null; 820ITextPointer previousLineEnd = null; 856ITextPointer nextParagraphStart = textRange.End; 877ITextPointer previousParagraphEnd = textRange.Start; 989private int MovePositionByUnits(ITextPointer position, TextUnit unit, int count) 1027ITextPointer positionOrig = position.CreatePointer(); 1154ITextPointer positionTemp = position.CreatePointer(); 1204ITextPointer start = _start.CreatePointer(); 1205ITextPointer end = _end.CreatePointer(); 1265private static string GetFontFamilyName(FontFamily fontFamily, ITextPointer context) 1377private AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end) 1380ITextPointer elementStart, elementEnd; 1419private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end) 1439private static bool IsAtWordBoundary(ITextPointer position) 1454private static bool MoveToNextWordBoundary(ITextPointer position, LogicalDirection direction) 1457ITextPointer startPosition = position.CreatePointer(); 1505private ITextPointer GetInsertionPosition(ITextPointer position, LogicalDirection direction) 1524private ITextPointer _start; 1525private ITextPointer _end; 1547internal delegate object GetValueAtDelegate(ITextPointer textPointer); 1619ITextPointer position = (endpoint == TextPatternRangeEndpoint.Start) ? _start : _end; 1620ITextPointer targetPosition = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end; 1667ITextPointer attrStart = null; 1668ITextPointer attrEnd = null; 1672ITextPointer stop = _start; 1673ITextPointer position = _end.CreatePointer(LogicalDirection.Backward); 1703ITextPointer stop = _end; 1704ITextPointer position = _start.CreatePointer(LogicalDirection.Forward); 1893ITextPointer position = _start.CreatePointer(); 1945ITextPointer positionRef = start ? _start : _end; 1946ITextPointer position = positionRef.CreatePointer(); 2007ITextPointer targetPointer = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
System\Windows\Documents\ChildDocumentBlock.cs (1)
145internal ITextPointer End
System\Windows\Documents\CompositionAdorner.cs (12)
324internal void AddAttributeRange(ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServiceDisplayAttribute) 327ITextPointer rangeStart = start.CreatePointer(LogicalDirection.Forward); 328ITextPointer rangeEnd = end.CreatePointer(LogicalDirection.Backward); 454internal AttributeRange(ITextView textView, ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServicesDisplayAttribute) 481ITextPointer start = _textView.TextContainer.Start.CreatePointer(_startOffset, LogicalDirection.Forward); 482ITextPointer end = _textView.TextContainer.Start.CreatePointer(_endOffset, LogicalDirection.Backward); 566private void AddMultipleCompositionLines(ITextPointer start, ITextPointer end) 569ITextPointer startLinePointer = start; 570ITextPointer endLinePointer = startLinePointer;
System\Windows\Documents\DocumentSequence.cs (4)
367if (cp != ContentPosition.Missing && (cp is ITextPointer)) 370return new DocumentSequenceTextPointer(childBlock, (ITextPointer)cp); 1140ITextPointer childPosition = _documentPaginator.GetPagePosition(_documentPage) as ITextPointer;
System\Windows\Documents\DocumentSequenceTextContainer.cs (25)
95ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 101ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 106ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 108return ((ITextPointer)position.Handle0).CreatePointer(direction); 118return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 123return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 128return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 133return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 143return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 148return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 153return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 156int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 158return ((ITextPointer)position1.Handle0).CompareTo(position2); 163return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 213ITextPointer ITextContainer.Start 226ITextPointer ITextContainer.End 341internal DocumentSequenceTextPointer VerifyPosition(ITextPointer position) 362internal DocumentSequenceTextPointer MapChildPositionToParent(ITextPointer tp) 535private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 719ITextPointer tpChildStart, tpChildEnd; 988ITextPointer dynamicTextPointer = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward); 989ITextPointer parentTextPointer = ((DocumentSequenceTextContainer)this.TextContainer).MapChildPositionToParent(dynamicTextPointer); 1017ITextPointer childTp = parentChangePosition.ChildPointer;
System\Windows\Documents\DocumentSequenceTextPointer.cs (134)
28internal DocumentSequenceTextPointer(ChildDocumentBlock childBlock, ITextPointer childPosition) 45/// <see cref="ITextPointer.SetLogicalDirection"/> 47void ITextPointer.SetLogicalDirection(LogicalDirection direction) 54/// <see cref="ITextPointer.CompareTo(ITextPointer)"/> 56int ITextPointer.CompareTo(ITextPointer position) 62/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/> 64int ITextPointer.CompareTo(StaticTextPointer position) 66return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 70/// <see cref="ITextPointer.GetOffsetToPosition"/> 72int ITextPointer.GetOffsetToPosition(ITextPointer position) 78/// <see cref="ITextPointer.GetPointerContext"/> 80TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 86/// <see cref="ITextPointer.GetTextRunLength"/> 89int ITextPointer.GetTextRunLength(LogicalDirection direction) 95string ITextPointer.GetTextInRun(LogicalDirection direction) 101/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 104int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 110/// <see cref="ITextPointer.GetAdjacentElement"/> 113object ITextPointer.GetAdjacentElement(LogicalDirection direction) 119/// <see cref="ITextPointer.GetElementType"/> 122Type ITextPointer.GetElementType(LogicalDirection direction) 128/// <see cref="ITextPointer.HasEqualScope"/> 130bool ITextPointer.HasEqualScope(ITextPointer position) 137/// <see cref="ITextPointer.GetValue"/> 140object ITextPointer.GetValue(DependencyProperty property) 146/// <see cref="ITextPointer.ReadLocalValue"/> 149object ITextPointer.ReadLocalValue(DependencyProperty property) 155/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 158LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 164/// <see cref="ITextPointer.CreatePointer()"/> 166ITextPointer ITextPointer.CreatePointer() 174/// <see cref="ITextPointer.CreateStaticPointer"/> 176StaticTextPointer ITextPointer.CreateStaticPointer() 178return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 182/// <see cref="ITextPointer.CreatePointer(int)"/> 184ITextPointer ITextPointer.CreatePointer(int distance) 190/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 192ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 198/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 200ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 206void ITextPointer.Freeze() 212/// <see cref="ITextPointer.GetFrozenPointer"/> 214ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 225void ITextPointer.InsertTextInRun(string textData) 237void ITextPointer.DeleteContentToPosition(ITextPointer limit) 243ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 245ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 258ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 260ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 269ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 271ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 278ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 280ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 292/// <see cref="ITextPointer.ValidateLayout"/> 293bool ITextPointer.ValidateLayout() 295return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 323Type ITextPointer.ParentType 332/// <see cref="ITextPointer.TextContainer"/> 334ITextContainer ITextPointer.TextContainer 340bool ITextPointer.HasValidLayout 344return (((ITextPointer)this).TextContainer.TextView != null && 345((ITextPointer)this).TextContainer.TextView.IsValid && 346((ITextPointer)this).TextContainer.TextView.Contains(this)); 351bool ITextPointer.IsAtCaretUnitBoundary 355Invariant.Assert(((ITextPointer)this).HasValidLayout); 356ITextView textView = ((ITextPointer)this).TextContainer.TextView; 359if (!isAtCaretUnitBoundary && ((ITextPointer)this).LogicalDirection == LogicalDirection.Backward) 367ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward); 375/// <see cref="ITextPointer.LogicalDirection"/> 377LogicalDirection ITextPointer.LogicalDirection 385bool ITextPointer.IsAtInsertionPosition 391bool ITextPointer.IsFrozen 400int ITextPointer.Offset 409int ITextPointer.CharOffset 440/// <see cref="ITextPointer.MoveByOffset"/> 442bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 450/// <see cref="ITextPointer.MoveByOffset"/> 452int ITextPointer.MoveByOffset(int offset) 467/// <see cref="ITextPointer.MoveToPosition"/> 469void ITextPointer.MoveToPosition(ITextPointer position) 489/// <see cref="ITextPointer.MoveToElementEdge"/> 491void ITextPointer.MoveToElementEdge(ElementEdge edge) 499int ITextPointer.MoveToLineBoundary(int count) 501return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 505Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 510bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 515bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 551internal ITextPointer ChildPointer 594/// <see cref="ITextPointer.CompareTo(ITextPointer)"/> 596public static int CompareTo(DocumentSequenceTextPointer thisTp, ITextPointer position) 606/// <see cref="ITextPointer.GetOffsetToPosition"/> 608public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position) 628/// <see cref="ITextPointer.GetPointerContext"/> 638/// <see cref="ITextPointer.GetTextRunLength"/> 649/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 678/// <see cref="ITextPointer.GetAdjacentElement"/> 689/// <see cref="ITextPointer.GetElementType"/> 702/// <see cref="ITextPointer.GetElementType"/> 710/// <see cref="ITextPointer.HasEqualScope"/> 712public static bool HasEqualScope(DocumentSequenceTextPointer thisTp, ITextPointer position) 725/// <see cref="ITextPointer.GetValue"/> 736/// <see cref="ITextPointer.ReadLocalValue"/> 747/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 755public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp) 760public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance) 765public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, LogicalDirection gravity) 771/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 773public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance, LogicalDirection gravity) 873ITextPointer pointer = thisTp.ChildPointer; 1023ITextPointer childTn = thisTp.ChildPointer; 1112private ITextPointer _childTp;
System\Windows\Documents\DocumentSequenceTextView.cs (17)
70internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 78ITextPointer childOTP = ChildTextView.GetTextPositionFromPoint(point, snapToText); 117internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 146internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 198internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 219ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.LogicalDirection), suggestedX, count, out newSuggestedX, out linesMoved); 251internal override bool IsAtCaretUnitBoundary(ITextPointer position) 298internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 324internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 350internal override TextSegment GetLineRange(ITextPointer position) 403internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 423internal override bool Contains(ITextPointer position)
System\Windows\Documents\FixedElement.cs (3)
263ITextPointer pos = ((ITextPointer)_start).CreatePointer(); 265while (pos.CompareTo((ITextPointer)_end) < 0)
System\Windows\Documents\FixedFindEngine.cs (8)
24internal static TextRange Find ( ITextPointer start, 25ITextPointer end, 80ITextPointer firstSearchPageStart = null; 81ITextPointer firstSearchPageEnd = null; 285private static void _GetFirstPageSearchPointers ( ITextPointer start, 286ITextPointer end, 289out ITextPointer firstSearchPageStart, 290out ITextPointer firstSearchPageEnd)
System\Windows\Documents\FixedTextContainer.cs (22)
80ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 86ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 91ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 93return ((ITextPointer)position.Handle0).CreatePointer(direction); 103return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 108return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 113return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 118return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 128return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 133return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 138return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 141int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 143return ((ITextPointer)position1.Handle0).CompareTo(position2); 148return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 182ITextPointer ITextContainer.Start 195ITextPointer ITextContainer.End 308internal FixedTextPointer VerifyPosition(ITextPointer position) 328internal int GetPageNumber(ITextPointer textPointer) 600private bool _GetFixedNodesForFlowRange(ITextPointer start, ITextPointer end, out FixedSOMElement[] elements, out int startIndex, out int endIndex)
System\Windows\Documents\FixedTextPointer.cs (124)
58internal int CompareTo(ITextPointer position) 65int ITextPointer.CompareTo(StaticTextPointer position) 67return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 75int ITextPointer.CompareTo(ITextPointer position) 83int ITextPointer.GetOffsetToPosition(ITextPointer position) 93TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 103int ITextPointer.GetTextRunLength(LogicalDirection direction) 114string ITextPointer.GetTextInRun(LogicalDirection direction) 120/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 123int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 140/// <see cref="ITextPointer.GetAdjacentElement"/> 143object ITextPointer.GetAdjacentElement(LogicalDirection direction) 155/// <see cref="ITextPointer.GetElementType"/> 158Type ITextPointer.GetElementType(LogicalDirection direction) 174/// <see cref="ITextPointer.HasEqualScope"/> 176bool ITextPointer.HasEqualScope(ITextPointer position) 188/// <see cref="ITextPointer.GetValue"/> 191object ITextPointer.GetValue(DependencyProperty property) 200/// <see cref="ITextPointer.ReadLocalValue"/> 203object ITextPointer.ReadLocalValue(DependencyProperty property) 217/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 220LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 233/// <see cref="ITextPointer.CreatePointer()"/> 235ITextPointer ITextPointer.CreatePointer() 237return ((ITextPointer)this).CreatePointer(0, ((ITextPointer)this).LogicalDirection); 243/// <see cref="ITextPointer.CreateStaticPointer"/> 245StaticTextPointer ITextPointer.CreateStaticPointer() 247return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 251/// <see cref="ITextPointer.CreatePointer(int)"/> 253ITextPointer ITextPointer.CreatePointer(int distance) 255return ((ITextPointer)this).CreatePointer(distance, ((ITextPointer)this).LogicalDirection); 259/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 261ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 263return ((ITextPointer)this).CreatePointer(0, gravity); 267/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 269ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 283/// <see cref="ITextPointer.Freeze"/> 285void ITextPointer.Freeze() 291/// <see cref="ITextPointer.GetFrozenPointer"/> 293ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 300/// <see cref="ITextPointer.GetNextContextPosition"/> 302ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 304ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 318/// <see cref="ITextPointer.GetInsertionPosition"/> 320ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 322ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 332/// <see cref="ITextPointer.GetFormatNormalizedPosition"/> 334ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 336ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 344/// <see cref="ITextPointer.GetNextInsertionPosition"/> 346ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 348ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 363/// <see cref="ITextPointer.SetLogicalDirection"/> 366void ITextPointer.SetLogicalDirection(LogicalDirection direction) 374/// <see cref="ITextPointer.MoveByOffset"/> 376bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 388/// <see cref="ITextPointer.MoveByOffset"/> 390int ITextPointer.MoveByOffset(int offset) 405/// <see cref="ITextPointer.MoveToPosition"/> 407void ITextPointer.MoveToPosition(ITextPointer position) 417/// <see cref="ITextPointer.MoveToElementEdge"/> 419void ITextPointer.MoveToElementEdge(ElementEdge edge) 453/// <see cref="ITextPointer.MoveToLineBoundary"/> 455int ITextPointer.MoveToLineBoundary(int count) 457return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 461/// <see cref="ITextPointer.GetCharacterRect"/> 463Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 469/// <see cref="ITextPointer.MoveToInsertionPosition"/> 471bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 477/// <see cref="ITextPointer.MoveToNextInsertionPosition"/> 479bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 492void ITextPointer.InsertTextInRun(string textData) 500/// <see cref="ITextPointer.DeleteContentToPosition"/> 502void ITextPointer.DeleteContentToPosition(ITextPointer limit) 508/// <see cref="ITextPointer.ValidateLayout"/> 510bool ITextPointer.ValidateLayout() 512return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 526/// <see cref="ITextPointer.ParentType"/> 528Type ITextPointer.ParentType 538/// <see cref="ITextPointer.TextContainer"/> 540ITextContainer ITextPointer.TextContainer 546/// <see cref="ITextPointer.HasValidLayout"/> 548bool ITextPointer.HasValidLayout 552return (((ITextPointer)this).TextContainer.TextView != null && 553((ITextPointer)this).TextContainer.TextView.IsValid && 554((ITextPointer)this).TextContainer.TextView.Contains(this)); 559/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/> 561bool ITextPointer.IsAtCaretUnitBoundary 565Invariant.Assert(((ITextPointer)this).HasValidLayout); 566ITextView textView = ((ITextPointer)this).TextContainer.TextView; 577ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward); 585/// <see cref="ITextPointer.LogicalDirection"/> 587LogicalDirection ITextPointer.LogicalDirection 596/// <see cref="ITextPointer.IsAtInsertionPosition"/> 598bool ITextPointer.IsAtInsertionPosition 604/// <see cref="ITextPointer.IsFrozen"/> 606bool ITextPointer.IsFrozen 615/// <see cref="ITextPointer.Offset"/> 617int ITextPointer.Offset 627/// <see cref="ITextPointer.CharOffset"/> 629int ITextPointer.CharOffset
System\Windows\Documents\FixedTextView.cs (34)
66internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 72ITextPointer textPos = this.End; 84ITextPointer pos = null; 147internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 178ITextPointer psNext = position.CreatePointer(1); 232internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 326internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 337ITextPointer pos = position; 366((ITextPointer)nav).MoveToInsertionPosition(scanDir); 367((ITextPointer)nav).MoveToNextInsertionPosition(scanDir); 432internal override bool IsAtCaretUnitBoundary(ITextPointer position) 502internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 537ITextPointer pointer = position.CreatePointer(); 556internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 575internal override TextSegment GetLineRange(ITextPointer position) 605ITextPointer begin = _CreateTextPointer(new FixedPosition(fixedNodes[0], 0), LogicalDirection.Forward); 606ITextPointer end = _CreateTextPointer(new FixedPosition(lastNode, lastIndex), LogicalDirection.Backward); 610ITextPointer temp = begin; 633internal override bool Contains(ITextPointer position) 810private ITextPointer _SnapToText(Point point) 812ITextPointer itp = null; 860itp = ((ITextPointer)this.Start).CreatePointer(LogicalDirection.Forward); 865itp = ((ITextPointer)this.End).CreatePointer(LogicalDirection.Backward); 1074TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1098symbolType = ((ITextPointer)nav).GetPointerContext(textdir); 1102if (((ITextPointer)nav).MoveToNextInsertionPosition(textdir) && 1140((ITextPointer)nav).MoveToNextInsertionPosition(dir); 1160private ITextPointer _CreateTextPointer(FixedPosition fixedPosition, LogicalDirection edge) 1176private ITextPointer _CreateTextPointerFromGlyphs(Glyphs g, Point point) 1188private void _SkipFormattingTags(ITextPointer textPointer)
System\Windows\Documents\FlowDocument.cs (2)
882ITextPointer textPointer = null; 1457ITextPointer segmentEnd;
System\Windows\Documents\FrameworkTextComposition.cs (12)
184internal void SetResultPositions(ITextPointer start, ITextPointer end, string text) 208internal void SetCompositionPositions(ITextPointer start, ITextPointer end, string text) 240internal ITextPointer _ResultStart 251internal ITextPointer _ResultEnd 262internal ITextPointer _CompositionStart 273internal ITextPointer _CompositionEnd 337private ITextPointer _resultStart; 340private ITextPointer _resultEnd; 343private ITextPointer _compositionStart; 346private ITextPointer _compositionEnd;
System\Windows\Documents\ImmComposition.cs (23)
591ITextPointer startNavigator; 592ITextPointer endNavigator; 593ITextPointer caretNavigator; 632ITextPointer startPosition = startNavigator.CreatePointer(LogicalDirection.Forward); 633ITextPointer endPosition = endNavigator.CreatePointer(LogicalDirection.Backward); 634ITextPointer caretPosition = caretNavigator.CreatePointer(LogicalDirection.Forward); 1048ITextPointer start; 1049ITextPointer end; 1060internal void UpdateCompositionText(FrameworkTextComposition composition, int resultLength, bool includeResultText, out ITextPointer start, out ITextPointer end) 1128ITextPointer caretPosition = _caretOffset >= 0 ? start.CreatePointer(_caretOffset, LogicalDirection.Forward) : end; 1167ITextPointer startAttribute = _startComposition.CreatePointer(startOffset, LogicalDirection.Backward); 1168ITextPointer endAttribute = _startComposition.CreatePointer(i + 1, LogicalDirection.Forward); 1385ITextPointer navigator; 1522ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward); 1527ITextPointer end = start.CreatePointer(LogicalDirection.Forward); 1542private static ITextPointer MoveToNextCharPos(ITextPointer position, int offset) 1623ITextPointer positionCurrent; 1624ITextPointer positionNext; 1779private void CloseCompositionUndoUnit(UndoCloseAction undoCloseAction, ITextPointer compositionEnd) 1909private ITextPointer _startComposition; 1915private ITextPointer _endComposition;
System\Windows\Documents\ITextContainer.cs (6)
37ITextPointer CreatePointerAtOffset(int offset, LogicalDirection direction); 42ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction); 44ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 64int CompareTo(StaticTextPointer position1, ITextPointer position2); 98ITextPointer Start { get; } 106ITextPointer End { get; }
System\Windows\Documents\ITextPointer.cs (14)
24ITextPointer CreatePointer(); 30ITextPointer CreatePointer(int offset); 33ITextPointer CreatePointer(LogicalDirection gravity); 36ITextPointer CreatePointer(int offset, LogicalDirection gravity); 45int CompareTo(ITextPointer position); 49bool HasEqualScope(ITextPointer position); 55int GetOffsetToPosition(ITextPointer position); 74void MoveToPosition(ITextPointer position); 83ITextPointer GetNextContextPosition(LogicalDirection direction); 89ITextPointer GetInsertionPosition(LogicalDirection direction); 92ITextPointer GetFormatNormalizedPosition(LogicalDirection direction); 98ITextPointer GetNextInsertionPosition(LogicalDirection direction); 113ITextPointer GetFrozenPointer(LogicalDirection logicalDirection); 119void DeleteContentToPosition(ITextPointer limit);
System\Windows\Documents\ITextRange.cs (7)
58bool Contains(ITextPointer position); 62void Select(ITextPointer position1, ITextPointer position2); 70void SelectWord(ITextPointer position); 79void SelectParagraph(ITextPointer position); 233ITextPointer Start { get; } 238ITextPointer End { get; }
System\Windows\Documents\ITextSelection.cs (6)
60void SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace); 67void ExtendToPosition(ITextPointer textPosition); 112void SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint); 115void ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection); 165ITextPointer AnchorPosition { get; } 172ITextPointer MovingPosition { get; }
System\Windows\Documents\ITextView.cs (38)
60ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 94Rect GetRectangleFromTextPosition(ITextPointer position); 133Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 141Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition); 193ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved); 203ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved); 230bool IsAtCaretUnitBoundary(ITextPointer position); 276ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 301ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 327TextSegment GetLineRange(ITextPointer position); 359ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 389bool Contains(ITextPointer position); 395void BringPositionIntoViewAsync(ITextPointer position, object userState); 412void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState); 423void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState); 469bool Validate(ITextPointer position); 595public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 623public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 647public ITextPointer Position 665private readonly ITextPointer _position; 692public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState) 707public ITextPointer Position 733public ITextPointer NewPosition 759private readonly ITextPointer _position; 773private readonly ITextPointer _newPosition; 808public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState) 823public ITextPointer Position 849public ITextPointer NewPosition 875private readonly ITextPointer _position; 889private readonly ITextPointer _newPosition;
System\Windows\Documents\NullTextContainer.cs (18)
80ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 86ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 91ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 93return ((ITextPointer)position.Handle0).CreatePointer(direction); 103return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 108return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 113return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 118return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 128return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 133return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 138return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 141int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 143return ((ITextPointer)position1.Handle0).CompareTo(position2); 148return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 175ITextPointer ITextContainer.Start 188ITextPointer ITextContainer.End
System\Windows\Documents\NullTextNavigator.cs (112)
43int ITextPointer.CompareTo(ITextPointer position) 50int ITextPointer.CompareTo(StaticTextPointer position) 59int ITextPointer.GetOffsetToPosition(ITextPointer position) 67/// <see cref="ITextPointer.GetPointerContext"/> 69TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 76/// <see cref="ITextPointer.GetTextRunLength"/> 79int ITextPointer.GetTextRunLength(LogicalDirection direction) 86/// <see cref="ITextPointer.GetTextInRun(LogicalDirection)"/> 88string ITextPointer.GetTextInRun(LogicalDirection direction) 94/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 97int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 104/// <see cref="ITextPointer.GetAdjacentElement"/> 107object ITextPointer.GetAdjacentElement(LogicalDirection direction) 114/// <see cref="ITextPointer.GetElementType"/> 117Type ITextPointer.GetElementType(LogicalDirection direction) 124/// <see cref="ITextPointer.HasEqualScope"/> 126bool ITextPointer.HasEqualScope(ITextPointer position) 132/// <see cref="ITextPointer.GetValue"/> 135object ITextPointer.GetValue(DependencyProperty property) 141/// <see cref="ITextPointer.ReadLocalValue"/> 143object ITextPointer.ReadLocalValue(DependencyProperty property) 149/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 152LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 158/// <see cref="ITextPointer.CreatePointer()"/> 160ITextPointer ITextPointer.CreatePointer() 162return ((ITextPointer)this).CreatePointer(0, _gravity); 167StaticTextPointer ITextPointer.CreateStaticPointer() 169return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 173/// <see cref="ITextPointer.CreatePointer(int)"/> 175ITextPointer ITextPointer.CreatePointer(int distance) 177return ((ITextPointer)this).CreatePointer(distance, _gravity); 181/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 183ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 185return ((ITextPointer)this).CreatePointer(0, gravity); 189/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 191ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 199void ITextPointer.Freeze() 205/// <see cref="ITextPointer.GetFrozenPointer"/> 207ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 217/// <see cref="ITextPointer.SetLogicalDirection"/> 220void ITextPointer.SetLogicalDirection(LogicalDirection direction) 229/// <see cref="ITextPointer.MoveByOffset"/> 231bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 241/// <see cref="ITextPointer.MoveByOffset"/> 243int ITextPointer.MoveByOffset(int distance) 253/// <see cref="ITextPointer.MoveToPosition"/> 255void ITextPointer.MoveToPosition(ITextPointer position) 263/// <see cref="ITextPointer.MoveToElementEdge"/> 265void ITextPointer.MoveToElementEdge(ElementEdge edge) 273/// <see cref="ITextPointer.MoveToLineBoundary"/> 275int ITextPointer.MoveToLineBoundary(int count) 282/// <see cref="ITextPointer.GetCharacterRect"/> 284Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 291/// <see cref="ITextPointer.MoveToInsertionPosition"/> 293bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 299/// <see cref="ITextPointer.MoveToNextInsertionPosition"/> 301bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 307/// <see cref="ITextPointer.InsertTextInRun"/> 309void ITextPointer.InsertTextInRun(string textData) 315/// <see cref="ITextPointer.DeleteContentToPosition"/> 317void ITextPointer.DeleteContentToPosition(ITextPointer limit) 324/// <see cref="ITextPointer.GetNextContextPosition"/> 326ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 328ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 342/// <see cref="ITextPointer.GetInsertionPosition"/> 344ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 346ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 356/// <see cref="ITextPointer.GetFormatNormalizedPosition"/> 358ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 360ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 368/// <see cref="ITextPointer.GetNextInsertionPosition"/> 370ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 372ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 385/// <see cref="ITextPointer.ValidateLayout"/> 387bool ITextPointer.ValidateLayout() 404/// <see cref="ITextPointer.ParentType"/> 406Type ITextPointer.ParentType 418/// <see cref="ITextPointer.TextContainer"/> 420ITextContainer ITextPointer.TextContainer 426/// <see cref="ITextPointer.HasValidLayout"/> 428bool ITextPointer.HasValidLayout 438/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/> 440bool ITextPointer.IsAtCaretUnitBoundary 450/// <see cref="ITextPointer.LogicalDirection"/> 452LogicalDirection ITextPointer.LogicalDirection 458/// <see cref="ITextPointer.IsAtInsertionPosition"/> 460bool ITextPointer.IsAtInsertionPosition 466/// <see cref="ITextPointer.IsFrozen"/> 468bool ITextPointer.IsFrozen 477/// <see cref="ITextPointer.Offset"/> 479int ITextPointer.Offset 489/// <see cref="ITextPointer.CharOffset"/> 491int ITextPointer.CharOffset
System\Windows\Documents\Paragraph.cs (2)
248ITextPointer navigator = paragraph.ContentStart.CreatePointer(); 249ITextPointer end = paragraph.ContentEnd;
System\Windows\Documents\RubberbandSelector.cs (3)
319private ITextPointer _GetTextPosition(FixedNode node, int charIndex) 617public ITextPointer first; 618public ITextPointer second;
System\Windows\Documents\Speller.cs (73)
107internal SpellingError GetError(ITextPointer position, LogicalDirection direction, bool forceEvaluation) 109ITextPointer start; 110ITextPointer end; 141internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 190ExpandToWordBreakAndContext(error.Start, LogicalDirection.Backward, language, out ITextPointer contentStart, out ITextPointer contextStart); 191ExpandToWordBreakAndContext(error.End, LogicalDirection.Forward, language, out ITextPointer contentEnd, out ITextPointer contextEnd); 230ITextPointer errorStart; 231ITextPointer errorEnd; 539ITextPointer start; 540ITextPointer end; 611private bool GetNextScanRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 613ITextPointer rawStart; 614ITextPointer rawEnd; 641private void GetNextScanRangeRaw(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 670private void AdjustScanRangeAroundComposition(ITextPointer rawStart, ITextPointer rawEnd, 671out ITextPointer start, out ITextPointer end) 690ITextPointer wordBreakLeft; 691ITextPointer wordBreakRight; 692ITextPointer caretPosition; 756private ScanStatus ScanRange(ITextPointer start, ITextPointer end, long timeLimit) 758ITextPointer contextStart; 759ITextPointer contextEnd; 760ITextPointer contentStart; 761ITextPointer contentEnd; 1010ITextPointer timeoutPosition = data.TextMap.MapOffsetToPosition(timeOutOffset); 1038ITextPointer errorStart; 1039ITextPointer errorEnd; 1082private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language, 1083out ITextPointer contentPosition, out ITextPointer contextPosition) 1085ITextPointer start; 1086ITextPointer end; 1087ITextPointer outwardPosition; 1088ITextPointer inwardPosition; 1312private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError) 1314ITextPointer closestErrorPosition; 1315ITextPointer searchPosition; 1316ITextPointer start; 1317ITextPointer end; 1352ITextPointer closestLanguageTransition = GetNextLanguageTransition(position, direction, language, searchPosition); 1384private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition) 1386ITextPointer navigator = position.CreatePointer(); 1461private void ScanPosition(ITextPointer position, LogicalDirection direction) 1463ITextPointer start; 1464ITextPointer end; 1481private XmlLanguage GetCurrentLanguage(ITextPointer position) 1492private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language) 1642internal TextMap(ITextPointer contextStart, ITextPointer contextEnd, 1643ITextPointer contentStart, ITextPointer contentEnd) 1645ITextPointer position; 1757internal ITextPointer MapOffsetToPosition(int offset) 1793private bool IsAdjacentToFormatElement(ITextPointer pointer) 1817private readonly ITextPointer _basePosition; 1842internal ScanStatus(long timeLimit, ITextPointer startPosition) 1869internal ITextPointer TimeoutPosition 1876internal ITextPointer StartPosition 1885private readonly ITextPointer _startPosition; 1889private ITextPointer _timeoutPosition;
System\Windows\Documents\SpellerError.cs (6)
28internal SpellingError(Speller speller, ITextPointer start, ITextPointer end) 111internal ITextPointer Start 122internal ITextPointer End 144private readonly ITextPointer _start; 147private readonly ITextPointer _end;
System\Windows\Documents\SpellerHighlightLayer.cs (4)
83internal void FireChangedEvent(ITextPointer start, ITextPointer end) 199internal SpellerHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
System\Windows\Documents\SpellerStatusTable.cs (29)
36internal SpellerStatusTable(ITextPointer textContainerStart, SpellerHighlightLayer highlightLayer) 72ITextPointer end = e.ITextPosition.CreatePointer(e.Count); 82internal void GetFirstDirtyRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 107internal void MarkCleanRange(ITextPointer start, ITextPointer end) 114internal void MarkDirtyRange(ITextPointer start, ITextPointer end) 122internal void MarkErrorRange(ITextPointer start, ITextPointer end) 244out ITextPointer start, out ITextPointer end) 379private void MarkRange(ITextPointer start, ITextPointer end, RunType runType) 435private void AddRun(int index, ITextPointer start, ITextPointer end, RunType runType) 512ITextPointer errorStart; 513ITextPointer errorEnd; 553ITextPointer start; 554ITextPointer end; 585private void OnContentRemoved(ITextPointer position) 623ITextPointer runPosition = GetRun(i).Position; 653ITextPointer errorStart; 654ITextPointer errorEnd; 749private ITextPointer GetRunEndPositionDynamic(int index) 797internal Run(ITextPointer position, RunType runType) 803internal ITextPointer Position 815private ITextPointer _position;
System\Windows\Documents\StaticTextPointer.cs (2)
45internal ITextPointer CreateDynamicTextPointer(LogicalDirection direction) 101internal int CompareTo(ITextPointer position)
System\Windows\Documents\TextContainer.cs (6)
429ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 446ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 473ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 693int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 1698ITextPointer ITextContainer.Start 1706ITextPointer ITextContainer.End
System\Windows\Documents\TextContainerChangeEventArgs.cs (4)
25internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange) : 30internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 51internal ITextPointer ITextPosition 120private readonly ITextPointer _textPosition;
System\windows\Documents\TextEditor.cs (8)
399internal SpellingError GetSpellingErrorAtPosition(ITextPointer position, LogicalDirection direction) 411internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 468XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 491FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 1390internal ITextPointer _NextLineAdvanceMovingPosition 1472ITextPointer cursorPosition; 2053private ITextPointer _nextLineAdvanceMovingPosition;
System\windows\Documents\TextEditorContextMenu.cs (4)
169ITextPointer position = null; 259private static void GetClippedPositionOffsets(TextEditor This, ITextPointer position, LogicalDirection direction, 398private static ITextPointer GetContentPosition(ITextPointer position)
System\windows\Documents\TextEditorDragDrop.cs (6)
127ITextPointer cursorPosition = this.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 405ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 436private ITextPointer GetDropPosition(Visual target, Point point) 448ITextPointer dropPosition = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/true); 535ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 605private bool IsSelectionContainsDropPosition(ITextSelection selection, ITextPointer dropPosition)
System\windows\Documents\TextEditorMouse.cs (6)
65ITextPointer cursorPosition = This.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 126ITextPointer position; 484ITextPointer snappedCursorPosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true); 510ITextPointer acceleratedCursorPosition = null; // cursorPosition corrected to accelerate scrolling 713ITextPointer mouseMovePosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false); 731ITextPointer otherEdgePosition = mouseMovePosition.GetNextContextPosition(mouseMovePosition.LogicalDirection);
System\windows\Documents\TextEditorSelection.cs (72)
103internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position) 113ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward); 115ITextPointer lineEnd = position.CreatePointer(LogicalDirection.Backward); 268ITextPointer position = TextEditorSelection.GetEndInner(This); 278ITextPointer originalMovingPosition; 290ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved); 312ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition); 313ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward); 357ITextPointer position = TextEditorSelection.GetStartInner(This); 367ITextPointer originalMovingPosition; 379ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved); 402ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition); 403ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward); 454ITextPointer position = TextEditorSelection.GetEndInner(This); 459ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 506ITextPointer position = TextEditorSelection.GetStartInner(This); 510ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 559ITextPointer position = TextEditorSelection.GetEndInner(This); 564ITextPointer movingPosition; 573ITextPointer targetPosition; 676ITextPointer position = TextEditorSelection.GetStartInner(This); 681ITextPointer movingPosition; 690ITextPointer targetPosition; 782ITextPointer startPositionInner = TextEditorSelection.GetStartInner(This); 803ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward); 834ITextPointer endPositionInner = TextEditorSelection.GetEndInner(This); 855ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation); 1020ITextPointer originalMovingPosition; 1041ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition); 1069ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition); 1070ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward); 1106private static void AdjustMovingPositionForSelectDownByLine(TextEditor This, ITextPointer newMovingPosition, ITextPointer originalMovingPosition, double suggestedX) 1192ITextPointer originalMovingPosition; 1213ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition); 1259ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition); 1260ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward); 1316ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 1357ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 1390ITextPointer movingPosition; 1401ITextPointer targetPosition; 1486ITextPointer movingPosition; 1497ITextPointer targetPosition; 1586ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This); 1631ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This); 1653ITextPointer destination = lineRange.End; 1674ITextPointer newDestination = destination.GetNextInsertionPosition(LogicalDirection.Forward); 2021ITextPointer position = textEditor.Selection.MovingPosition.CreatePointer(); 2057ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2127ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer(); 2147ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer(); 2191ITextPointer wordBoundary = textEditor.Selection.MovingPosition.CreatePointer(); 2219private static Double GetSuggestedX(TextEditor This, out ITextPointer innerMovingPosition) 2267private static Double GetSuggestedYFromPosition(TextEditor This, ITextPointer position) 2301private static ITextPointer GetMovingPositionInner(TextEditor This) 2303ITextPointer movingPosition = This.Selection.MovingPosition; 2331private static ITextPointer GetStartInner(TextEditor This) 2343private static ITextPointer GetEndInner(TextEditor This) 2345ITextPointer end = This.Selection.End; 2354private static ITextPointer GetPositionAtLineStart(ITextPointer position) 2363private static ITextPointer GetPositionAtLineEnd(ITextPointer position) 2370private static void ExtendSelectionAndBringIntoView(ITextPointer position, TextEditor textEditor) 2376private static void BringIntoView(ITextPointer position, TextEditor textEditor) 2396ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward); 2408private static ITextPointer AdjustPositionAtTableRowEnd(ITextPointer position) 2412ITextPointer cellEnd = position.GetNextInsertionPosition(LogicalDirection.Backward); 2423private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position) 2425ITextPointer navigator = position.CreatePointer(); 2440private static double GetAbsoluteXOffset(ITextView textview, ITextPointer position)
System\windows\Documents\TextEditorSpelling.cs (15)
36internal static SpellingError GetSpellingErrorAtPosition(TextEditor This, ITextPointer position, LogicalDirection direction) 62ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 101internal static ITextPointer GetNextSpellingErrorPosition(TextEditor This, ITextPointer position, LogicalDirection direction) 136ITextPointer textStart; 137ITextPointer textEnd; 140ITextPointer caretPosition; 180private static bool IsErrorAtNonMergeableInlineEdge(SpellingError spellingError, out ITextPointer textStart, out ITextPointer textEnd) 253private static ITextPointer GetNextTextPosition(ITextPointer position, ITextPointer limit, LogicalDirection direction, out char character) 302private static ITextPointer GetNextNonWhiteSpacePosition(ITextPointer position, ITextPointer limit)
System\windows\Documents\TextEditorTyping.cs (12)
531ITextPointer position = This.Selection.End; 534ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); 581ITextPointer position = This.Selection.Start; 585ITextPointer backspacePosition = null; 611ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Backward); 775private static bool IsAtIndentedParagraphOrBlockUIContainerStart(ITextPointer position) 797private static bool IsAtListItemStart(ITextPointer position) 832private static bool IsAtListItemChildStart(ITextPointer position, bool emptyChildOnly) 845ITextPointer navigator = position.CreatePointer(); 896ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 955ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 1544ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\TextFindEngine.cs (17)
81ITextPointer findContainerStartPosition, 82ITextPointer findContainerEndPosition, 170ITextPointer startPosition, 171ITextPointer endPosition, 183ITextPointer navigator; 213ITextPointer startFindTextPosition = navigator.CreatePointer(); 268ITextPointer startMatchPosition = startFindTextPosition.CreatePointer(); 271ITextPointer endMatchPosition = startFindTextPosition.CreatePointer(); 296private static void GetContextualInformation(ITextPointer position, int oppositeEndOffset, 299ITextPointer oppositeEndPosition = position.CreatePointer(oppositeEndOffset, position.LogicalDirection); 315private static bool HasNeighboringSeparatorChar(ITextPointer position, LogicalDirection direction) 317ITextPointer nextPosition = position.GetNextInsertionPosition(direction); 326ITextPointer temp = position; 634ITextPointer startPosition, 635ITextPointer endPosition, 636ITextPointer navigator, 887private static bool IsAdjacentToFormatElement(ITextPointer pointer, LogicalDirection direction)
System\Windows\Documents\TextParentUndoUnit.cs (6)
39internal TextParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition) 113ITextPointer anchorPosition = textContainer.CreatePointerAtOffset(_undoAnchorPositionOffset, _undoAnchorPositionDirection); 114ITextPointer movingPosition = textContainer.CreatePointerAtOffset(_undoMovingPositionOffset, _undoMovingPositionDirection); 180internal void RecordRedoSelectionState(ITextPointer anchorPosition, ITextPointer movingPosition)
System\Windows\Documents\TextPointer.cs (75)
987return (TextPointer)((ITextPointer)this).GetNextContextPosition(direction); 1060return (TextPointer)((ITextPointer)this).GetInsertionPosition(direction); 1127return (TextPointer)((ITextPointer)this).GetNextInsertionPosition(direction); 2343void ITextPointer.SetLogicalDirection(LogicalDirection direction) 2348int ITextPointer.CompareTo(ITextPointer position) 2353int ITextPointer.CompareTo(StaticTextPointer position) 2378int ITextPointer.GetOffsetToPosition(ITextPointer position) 2383TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 2388int ITextPointer.GetTextRunLength(LogicalDirection direction) 2394string ITextPointer.GetTextInRun(LogicalDirection direction) 2399int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 2404object ITextPointer.GetAdjacentElement(LogicalDirection direction) 2409Type ITextPointer.GetElementType(LogicalDirection direction) 2424bool ITextPointer.HasEqualScope(ITextPointer position) 2446ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 2448ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2461ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 2463ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2472ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 2474ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2481ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 2483ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2495object ITextPointer.GetValue(DependencyProperty formattingProperty) 2520object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 2539LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 2557ITextPointer ITextPointer.CreatePointer() 2559return ((ITextPointer)this).CreatePointer(0, this.LogicalDirection); 2562StaticTextPointer ITextPointer.CreateStaticPointer() 2570ITextPointer ITextPointer.CreatePointer(int offset) 2572return ((ITextPointer)this).CreatePointer(offset, this.LogicalDirection); 2575ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 2577return ((ITextPointer)this).CreatePointer(0, gravity); 2580ITextPointer ITextPointer.CreatePointer(int offset, LogicalDirection gravity) 2586void ITextPointer.Freeze() 2591ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 2597bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 2602int ITextPointer.MoveByOffset(int offset) 2607void ITextPointer.MoveToPosition(ITextPointer position) 2612void ITextPointer.MoveToElementEdge(ElementEdge edge) 2648int ITextPointer.MoveToLineBoundary(int count) 2654Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 2659bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 2664bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 2772void ITextPointer.InsertTextInRun(string textData) 2782void ITextPointer.DeleteContentToPosition(ITextPointer limit) 2796/// <see cref="ITextPointer.ValidateLayout"/> 2797bool ITextPointer.ValidateLayout() 2802/// <see cref="ITextPointer.ValidateLayout"/> 3609Type ITextPointer.ParentType 3626ITextContainer ITextPointer.TextContainer 3635bool ITextPointer.HasValidLayout 3644bool ITextPointer.IsAtCaretUnitBoundary 3673LogicalDirection ITextPointer.LogicalDirection 3688bool ITextPointer.IsAtInsertionPosition 3694bool ITextPointer.IsFrozen 3703int ITextPointer.Offset 3724int ITextPointer.CharOffset
System\Windows\Documents\TextPointerBase.cs (79)
36internal static ITextPointer Min(ITextPointer position1, ITextPointer position2) 50internal static ITextPointer Max(ITextPointer position1, ITextPointer position2) 56internal static string GetTextInRun(ITextPointer position, LogicalDirection direction) 74internal static int GetTextWithLimit(ITextPointer thisPointer, LogicalDirection direction, char[] textBuffer, int startIndex, int count, ITextPointer limit) 132internal static bool IsAtInsertionPosition(ITextPointer position) 140internal static bool IsAtPotentialRunPosition(ITextPointer position) 176private static bool IsAtPotentialRunPosition(ITextPointer backwardPosition, ITextPointer forwardPosition) 225internal static bool IsAtPotentialParagraphPosition(ITextPointer position) 250internal static bool IsBeforeFirstTable(ITextPointer position) 262internal static bool IsInBlockUIContainer(ITextPointer position) 267internal static bool IsAtBlockUIContainerStart(ITextPointer position) 273internal static bool IsAtBlockUIContainerEnd(ITextPointer position) 280private static bool IsInAncestorScope(ITextPointer position, Type allowedParentType, Type limitingType) 282ITextPointer navigator = position.CreatePointer(); 299internal static bool IsInAnchoredBlock(ITextPointer position) 305internal static bool IsInHyperlinkScope(ITextPointer position) 313internal static ITextPointer GetFollowingNonMergeableInlineContentStart(ITextPointer position) 315ITextPointer navigator = position.CreatePointer(); 384internal static bool IsAtNonMergeableInlineStart(ITextPointer position) 390internal static bool IsAtNonMergeableInlineEnd(ITextPointer position) 397internal static bool IsPositionAtNonMergeableInlineBoundary(ITextPointer position) 402internal static bool IsAtFormatNormalizedPosition(ITextPointer position, LogicalDirection direction) 407internal static bool IsAtInsertionPosition(ITextPointer position, LogicalDirection direction) 412internal static bool IsAtNormalizedPosition(ITextPointer position, LogicalDirection direction, bool respectCaretUnitBoundaries) 449internal static int GetOffset(ITextPointer thisPosition) 467internal static bool IsAtWordBoundary(ITextPointer thisPosition, LogicalDirection insideWordDirection) 470ITextPointer navigator = thisPosition.CreatePointer(); 508internal static TextSegment GetWordRange(ITextPointer thisPosition) 522internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction) 538ITextPointer navigator = thisPosition.CreatePointer(); 541ITextPointer wordEnd = navigator; 544ITextPointer wordStart; 584private static ITextPointer RestrictWithinBlock(ITextPointer position, ITextPointer limit, LogicalDirection direction) 619internal static bool IsNextToPlainLineBreak(ITextPointer thisPosition, LogicalDirection direction) 647internal static bool IsNextToRichLineBreak(ITextPointer thisPosition, LogicalDirection direction) 656internal static bool IsNextToParagraphBreak(ITextPointer thisPosition, LogicalDirection direction) 667internal static bool IsNextToAnyBreak(ITextPointer thisPosition, LogicalDirection direction) 680internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView) 709internal static bool IsAtRowEnd(ITextPointer thisPosition) 721internal static bool IsAfterLastParagraph(ITextPointer thisPosition) 729internal static bool IsAtParagraphOrBlockUIContainerStart(ITextPointer pointer) 796internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count) 802internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart) 804ITextPointer position; 854internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction) 860internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope) 872ITextPointer insertionPosition = thisPointer.GetInsertionPosition(direction); 921internal static bool MoveToFormatNormalizedPosition(ITextPointer thisNavigator, LogicalDirection direction) 934internal static bool MoveToInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 957internal static bool MoveToNextInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 965ITextPointer initialPosition = thisNavigator.CreatePointer(); 1065internal static bool MoveToNextWordBoundary(ITextPointer thisNavigator, LogicalDirection movingDirection) 1070ITextPointer startPosition = thisNavigator.CreatePointer(); 1097internal static ITextPointer GetFrozenPointer(ITextPointer thisPointer, LogicalDirection logicalDirection) 1099ITextPointer frozenPointer; 1114/// <see cref="ITextPointer.ValidateLayout"/> 1115internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView) 1136private static bool NormalizePosition(ITextPointer thisNavigator, LogicalDirection direction, bool respectCaretUnitBoundaries) 1252private static int LeaveNonMergeableInlineBoundary(ITextPointer thisNavigator, LogicalDirection direction, int symbolCount) 1281private static int LeaveNonMergeableAncestor(ITextPointer thisNavigator, LogicalDirection direction) 1299private static bool IsAtNormalizedPosition(ITextPointer position, bool respectCaretUnitBoundaries) 1325private static bool IsAtCaretUnitBoundary(ITextPointer position) 1358private static bool IsInsideCompoundSequence(ITextPointer position) 1410private static void GetWordBreakerText(ITextPointer pointer, out char[] text, out int position) 1417ITextPointer navigator; 1467private static bool IsAtNonMergeableInlineEdge(ITextPointer position, LogicalDirection direction) 1473ITextPointer navigator = position.CreatePointer(); 1487private static BorderingElementCategory GetBorderingElementCategory(ITextPointer position, LogicalDirection direction) 1513private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType)
System\Windows\Documents\TextRange.cs (16)
52this((ITextPointer)position1, (ITextPointer)position2) 56internal TextRange(ITextPointer position1, ITextPointer position2) 74this((ITextPointer)position1, (ITextPointer)position2) 82internal TextRange(ITextPointer position1, ITextPointer position2, bool ignoreTextUnitBoundaries) 124bool ITextRange.Contains(ITextPointer position) 134void ITextRange.Select(ITextPointer position1, ITextPointer position2) 144void ITextRange.SelectWord(ITextPointer position) 154void ITextRange.SelectParagraph(ITextPointer position) 313ITextPointer ITextRange.Start 326ITextPointer ITextRange.End 700internal void SelectParagraph(ITextPointer position)
System\Windows\Documents\TextRangeBase.cs (56)
58internal static bool Contains(ITextRange thisRange, ITextPointer textPointer) 113internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2) 152internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition) 184internal static void SelectWord(ITextRange thisRange, ITextPointer position) 191ITextPointer normalizedPosition = position.CreatePointer(); 234internal static void SelectParagraph(ITextRange thisRange, ITextPointer position) 238ITextPointer start; 239ITextPointer end; 288ITextPointer nextPosition = thisRange.End.CreatePointer(); 305ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward); 327internal static void FindParagraphOrListItemBoundaries(ITextPointer position, out ITextPointer start, out ITextPointer end) 341private static void SkipParagraphContent(ITextPointer navigator, LogicalDirection direction) 399ITextPointer position = textSegment.Start.CreatePointer(); 431private static object GetCharacterValueFromPosition(ITextPointer pointer, DependencyProperty formattingProperty) 468ITextPointer position = textSegment.Start.CreatePointer(); 511ITextPointer startNavigator = thisRange.Start.CreatePointer(); 512ITextPointer endNavigator = thisRange.End.CreatePointer(); 650internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition) 662internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition, ref Char[] charArray) 670ITextPointer navigator = startPosition.CreatePointer(); 745private static void PlainConvertTextRun(StringBuilder textBuffer, ITextPointer navigator, ITextPointer endPosition, ref Char[] charArray) 757private static void PlainConvertParagraphEnd(StringBuilder textBuffer, ITextPointer navigator) 794private static void PlainConvertListStart(ITextPointer navigator, ref Stack<int> listItemCounter) 808private static void PlainConvertListEnd(ITextPointer navigator, ref Stack<int> listItemCounter) 822private static void PlainConvertListItemStart(StringBuilder textBuffer, ITextPointer navigator, ref Stack<int> listItemCounter) 856private static void PlainConvertAccessKey(StringBuilder textBuffer, ITextPointer navigator) 1187internal static ITextPointer GetStart(ITextRange thisRange) 1195internal static ITextPointer GetEnd(ITextRange thisRange) 1250ITextPointer start = thisRange.Start; 1287ITextPointer explicitInsertPosition = null; 1348ITextPointer insertPosition = explicitInsertPosition ?? thisRange.Start; 1372ITextPointer newStart = insertPosition.GetFrozenPointer(LogicalDirection.Backward); 1373ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward); 1616ITextPointer start = range.Start.CreatePointer(); 1625ITextPointer end = range.End.CreatePointer(); 1699private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end) 1783private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1799private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1801ITextPointer normalizedPosition; 1918ITextPointer start = thisRange._TextSegments[0].Start; 1919ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 1981private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged) 2015ITextPointer newStart = position1; 2016ITextPointer newEnd = position2; 2038ITextPointer finalStart = thisRange._TextSegments[0].Start; 2039ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeEdit.cs (10)
496object outerContextValue = ((ITextPointer)source.ElementStart).GetValue(nonFormattingCharacterProperties[i]); 1246internal static ITextPointer GetAdjustedRangeEnd(ITextPointer rangeStart, ITextPointer rangeEnd) 1391internal static void DeleteInlineContent(ITextPointer start, ITextPointer end) 1408internal static void DeleteParagraphContent(ITextPointer start, ITextPointer end) 1636((ITextPointer)nextPosition).MoveToElementEdge(edgeAfterElement); 1642((ITextPointer)nextPosition).MoveToElementEdge(edgeBeforeElement);
System\Windows\Documents\TextRangeEditTables.cs (4)
178internal static bool IsTableStructureCrossed(ITextPointer anchorPosition, ITextPointer movingPosition) 397internal static void IdentifyValidBoundaries(ITextRange range, out ITextPointer start, out ITextPointer end)
System\Windows\Documents\TextRangeSerialization.cs (37)
71ITextPointer commonAncestor = FindSerializationCommonAncestor(range); 160if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 189private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements) 199ITextPointer textReader = rangeStart.CreatePointer(); 243ITextPointer ptr = textReader.CreatePointer(); 277ITextPointer endPointer = textReader.CreatePointer(); 353ITextPointer pointer = textSegment.Start.CreatePointer(); 415private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 427ITextPointer previousLevel = thisElement.CreatePointer(); 445ITextPointer position = thisElement.CreatePointer(); 464ITextPointer position = thisElement.CreatePointer(); 488ITextPointer position = thisElement.CreatePointer(); 535private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 644private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 764private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 767ITextPointer outerContext = null; 829private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 834ITextPointer parentContext = onlyAffected ? null : context.CreatePointer(); 948private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties) 1666private static ITextPointer FindSerializationCommonAncestor(ITextRange range) 1669ITextPointer commonAncestor = range.Start.CreatePointer(); 1670ITextPointer runningEnd = range.End.CreatePointer(); 1702ITextPointer hyperlinkStart = GetHyperlinkStart(range); 1719private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range) 1735ITextPointer navigator = commonAncestor.CreatePointer(); 1843private static bool IsPartialNonTypographic(ITextPointer textReader, ITextPointer rangeEnd) 1849ITextPointer elementNavigation = textReader.CreatePointer(); 1850ITextPointer elementEnd = textReader.CreatePointer(); 1871private static bool IsHyperlinkInvalid(ITextPointer textReader, ITextPointer rangeEnd) 1882ITextPointer hyperlinkNavigation = textReader.CreatePointer(); 1883ITextPointer hyperlinkEnd = textReader.CreatePointer(); 1915private static ITextPointer GetHyperlinkStart(ITextRange range) 1917ITextPointer hyperlinkStart = null;
System\Windows\Documents\TextSchema.cs (2)
89internal static bool IsInTextContent(ITextPointer position) 216internal static bool IsValidChild(ITextPointer position, Type childType)
System\windows\Documents\TextSegment.cs (9)
43internal TextSegment(ITextPointer startPosition, ITextPointer endPosition) : 60internal TextSegment(ITextPointer startPosition, ITextPointer endPosition, bool preserveLogicalDirection) 94internal bool Contains(ITextPointer position) 112internal ITextPointer Start 123internal ITextPointer End 158private readonly ITextPointer _start; 161private readonly ITextPointer _end;
System\windows\Documents\TextSelection.cs (44)
85void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition) 102void ITextRange.SelectWord(ITextPointer position) 121void ITextRange.SelectParagraph(ITextPointer position) 241ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 379ITextPointer ITextSelection.AnchorPosition 392ITextPointer ITextSelection.MovingPosition 397ITextPointer movingPosition; 439void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace) 454ITextPointer reversePosition = caretPosition.CreatePointer(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward); 546void ITextSelection.ExtendToPosition(ITextPointer position) 554ITextPointer anchorPosition = thisSelection.AnchorPosition; 576ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 577ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 578ITextPointer newMovingPosition; 641private ITextPointer GetNextTextSegmentInsertionPosition(LogicalDirection direction) 665ITextPointer position = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/false); 776void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 793void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection) 813ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 821ITextPointer startPosition; 822ITextPointer movingPosition; 854private bool BeginMouseSelectionProcess(ITextPointer cursorPosition) 880private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange) 1065ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer(); 1832private void SetActivePositions(ITextPointer anchorPosition, ITextPointer movingPosition) 1872private MovingEdge ConvertToMovingEdge(ITextPointer anchorPosition, ITextPointer movingPosition) 1924private void MoveSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 1934ITextPointer movingPosition = null; 1960private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect) 2103ITextPointer caretPosition = IdentifyCaretPosition(this); 2153private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection) 2155ITextPointer caretPosition = currentTextSelection.MovingPosition; 2194private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition) 2251ITextPointer nextCharacterPosition; 2344private static double CalculateScrollToOriginPosition(TextEditor textEditor, ITextPointer caretPosition, double horizontalCaretPosition) 2656private ITextPointer PropertyPosition 2661ITextPointer position = null; 2730private ITextPointer _anchorPosition; 2749private ITextPointer _previousCursorPosition; 2752private ITextPointer _reenterPosition;
System\windows\Documents\TextSelectionHighlightLayer.cs (12)
180ITextPointer newStart; 181ITextPointer newEnd; 182ITextPointer invalidRangeLeftStart; 183ITextPointer invalidRangeLeftEnd; 184ITextPointer invalidRangeRightStart; 185ITextPointer invalidRangeRightEnd; 326internal TextSelectionHighlightChangedEventArgs(ITextPointer invalidRangeLeftStart, ITextPointer invalidRangeLeftEnd, 327ITextPointer invalidRangeRightStart, ITextPointer invalidRangeRightEnd) 390private ITextPointer _oldStart; 391private ITextPointer _oldEnd;
System\Windows\Documents\TextServicesDisplayAttribute.cs (4)
60internal void Apply(ITextPointer start, ITextPointer end) 85internal static Color GetColor(UnsafeNativeMethods.TF_DA_COLOR dacolor, ITextPointer position) 105internal Color GetLineColor(ITextPointer position)
System\Windows\Documents\TextServicesDisplayAttributePropertyRanges.cs (4)
61ITextPointer start; 62ITextPointer end; 86ITextPointer start; 87ITextPointer end;
System\Windows\Documents\TextServicesPropertyRanges.cs (4)
72ITextPointer start; 73ITextPointer end; 111out ITextPointer start, 112out ITextPointer end)
System\Windows\Documents\TextStore.cs (71)
349ITextPointer start; 350ITextPointer end; 394ITextPointer navigator; 395ITextPointer limit; 484ITextPointer start; 485ITextPointer end; 644ITextPointer startNavigator; 645ITextPointer endNavigator; 677ITextPointer start; 678ITextPointer end; 863ITextPointer position; 936ITextPointer position; 978ITextPointer positionCur = position.CreatePointer(LogicalDirection.Backward); 979ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward); 1011ITextPointer startPointer; 1012ITextPointer endPointer; 1065ITextPointer navigator = startPointer.CreatePointer(); 1074ITextPointer end; 1080ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start; 1228ITextPointer start; 1229ITextPointer end; 1326ITextPointer oldStart; 1327ITextPointer oldEnd; 1331ITextPointer newStart = null; 1332ITextPointer newEnd = null; 1395ITextPointer start; 1396ITextPointer end; 1480ITextPointer navigator; 1753ITextPointer compositionStart; 1754ITextPointer compositionEnd; 1817private bool GetFnReconv(ITextPointer textStart, ITextPointer textEnd, out UnsafeNativeMethods.ITfFnReconversion funcReconv, out UnsafeNativeMethods.ITfRange rangeNew) 1896internal ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 1900ITextPointer pointer = this.TextContainer.CreatePointerAtCharOffset(charOffset, direction); 2440private static bool WalkTextRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2501private static bool WalkObjectRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2543private static bool WalkRegionBoundary(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2889private void TextPositionsFromITfRange(UnsafeNativeMethods.ITfRange range, out ITextPointer start, out ITextPointer end) 2909private void GetCompositionPositions(out ITextPointer start, out ITextPointer end) 2925private void GetCompositionPositions(UnsafeNativeMethods.ITfCompositionView view, out ITextPointer start, out ITextPointer end) 2991ITextPointer positionCurrent; 2992ITextPointer positionNext; 3108private CompositionParentUndoUnit OpenCompositionUndoUnit(ITextPointer compositionStart, ITextPointer compositionEnd) 3128ITextPointer start; 3160private static Rect GetLineBounds(ITextPointer start, ITextPointer end) 3173ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward); 3348private void BreakTypingSequence(ITextPointer caretPosition) 3362private static void GetAdjustedSelection(ITextPointer startIn, ITextPointer endIn, out ITextPointer startOut, out ITextPointer endOut) 3445private void GetNormalizedRange(int startCharOffset, int endCharOffset, out ITextPointer start, out ITextPointer end) 3628ITextPointer start = this.TextContainer.CreatePointerAtOffset(record.StartOffsetBefore, LogicalDirection.Backward); 3629ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward); 3947ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward); 3948ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward); 3968ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(imeSelectionAnchorOffset, LogicalDirection.Backward); 3969ITextPointer moving = this.TextContainer.CreatePointerAtOffset(imeSelectionMovingOffset, LogicalDirection.Backward); 4333internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit) 4548private ITextPointer _previousCompositionStart; 4551private ITextPointer _previousCompositionEnd;
System\Windows\Documents\ValidationHelper.cs (4)
28internal static void VerifyPosition(ITextContainer tree, ITextPointer position) 36internal static void VerifyPosition(ITextContainer container, ITextPointer position, string paramName) 54internal static void VerifyPositionPair(ITextPointer startPosition, ITextPointer endPosition)