5 implementations of ITextPointer
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
14internal sealed class PasswordTextPointer : ITextPointer
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
18internal sealed class DocumentSequenceTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\FixedTextPointer.cs (1)
22internal class FixedTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\NullTextNavigator.cs (1)
17internal sealed class NullTextPointer : ITextPointer
System\Windows\Documents\TextPointer.cs (1)
233public class TextPointer : ContentPosition, ITextPointer
2108 references to ITextPointer
PresentationFramework (2108)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (11)
95ITextPointer startPointer = segment.Start.CreatePointer(LogicalDirection.Forward); 102ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 314ITextPointer segStart; 333ITextPointer segEnd; 431ITextPointer start = null; 537private static ITextPointer FindStartVisibleTextPointer(DocumentPage documentPage) 539ITextPointer start, end; 561private static ITextPointer FindEndVisibleTextPointer(DocumentPage documentPage) 563ITextPointer start, end; 586private static bool GetTextViewRange(DocumentPage documentPage, out ITextPointer start, out ITextPointer end)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (15)
108ITextPointer start = null; 109ITextPointer end = null; 125while (((ITextPointer)current).CompareTo(end) < 0) 151ITextPointer start = null; 152ITextPointer end = null; 167public static UIElement GetParent(ITextPointer pointer) 241public static Point GetAnchorPointForPointer(ITextPointer pointer) 265public static Point GetPointForPointer(ITextPointer pointer) 288public static Rect GetAnchorRectangle(ITextPointer pointer) 323public static IDocumentPaginatorSource GetPointerPage(ITextPointer pointer, out int pageNumber) 356internal static void CheckSelection(object selection, out ITextPointer start, out ITextPointer end, out IList<TextSegment> segments) 383internal static ITextView GetDocumentPageTextView(ITextPointer pointer) 422ITextPointer start = segment.Start.CreatePointer(LogicalDirection.Forward); 423ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (14)
129ITextPointer start; 130ITextPointer end; 137ITextPointer elementStart; 138ITextPointer elementEnd; 215ITextPointer elementStart; 216ITextPointer elementEnd; 226ITextPointer start = elementStart.CreatePointer(startOffset);// new TextPointer((TextPointer)elementStart, startOffset); 228ITextPointer end = (textRangeLength <= endOffset) ? 249ITextPointer currentStart = anchor.Start; 250ITextPointer currentEnd = anchor.End; 480private bool GetNodesStartAndEnd(DependencyObject startNode, out ITextPointer start, out ITextPointer end) 514private void GetTextSegmentValues(TextSegment segment, ITextPointer elementStart, ITextPointer elementEnd, out int startOffset, out int endOffset)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
232ITextPointer start = segments[0].Start; 233ITextPointer end = segments[segments.Count - 1].End;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (36)
69ITextPointer start = highlightRange.Range.Start; 70ITextPointer end = highlightRange.Range.End; 89ITextPointer invalidateStart; 90ITextPointer invalidateEnd; 121ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 122ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 172ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 173ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 200ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 201ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 272ITextPointer dynamicPosition; 338private void ProcessOverlapingSegments(IHighlightRange highlightRange, out ITextPointer invalidateStart, out ITextPointer invalidateEnd) 451private ITextPointer GetNextForwardPosition(StaticTextPointer pos) 475private ITextPointer GetNextBackwardPosition(StaticTextPointer pos) 494private void GetSpannedSegments(ITextPointer start, ITextPointer end, out int startSeg, out int endSeg) 552internal AnnotationHighlightChangedEventArgs(ITextPointer start, ITextPointer end) 602internal HighlightSegment(ITextPointer start, ITextPointer end, IHighlightRange owner) 618internal HighlightSegment(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners) 633private void Init(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners) 759internal IList<HighlightSegment> Split(ITextPointer ps, LogicalDirection side) 789internal IList<HighlightSegment> Split(ITextPointer ps1, ITextPointer ps2, IHighlightRange newOwner) 982ITextPointer cursor = _segment.Start.CreatePointer(); 983ITextPointer segmentStart = null; 1047private void OpenSegment(ref ITextPointer segmentStart, ITextPointer cursor) 1058private void CloseSegment(ref ITextPointer segmentStart, ITextPointer cursor, ITextPointer end) 1069ITextPointer segmentEnd = cursor.GetInsertionPosition(LogicalDirection.Backward);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (9)
357private void SetMarkerTransform(Path marker, ITextPointer anchor, ITextPointer baseAnchor, int xScaleFactor) 658ITextPointer start = anchor.Start.CreatePointer(LogicalDirection.Forward); 659ITextPointer end = anchor.End.CreatePointer(LogicalDirection.Backward); 705private void CheckPosition(ITextPointer position) 788private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 818ITextPointer nextPointer = pointer.GetNextInsertionPosition(direction); 942ITextPointer pos = textView.GetTextPositionFromPoint(currentPosition, false); 953private static void CheckAllHighlightRanges(ITextPointer pos)
MS\Internal\Annotations\TextAnchor.cs (7)
99internal bool Contains(ITextPointer textPointer) 137internal void AddTextSegment(ITextPointer start, ITextPointer end) 503internal ITextPointer Start 514internal ITextPointer End 650private static TextSegment CreateNormalizedSegment(ITextPointer start, ITextPointer end)
MS\Internal\Documents\ColumnResult.cs (3)
92internal bool Contains(ITextPointer position, bool strict) 111internal ITextPointer StartPosition 123internal ITextPointer EndPosition
MS\Internal\Documents\DocumentGrid.cs (11)
294ITextPointer tp = TextEditor.Selection.Start; 1819ITextPointer tp = data.ContentPosition as ITextPointer; 1951ITextPointer selection = GetVisibleSelection(); 2525private ITextPointer GetVisibleSelection() 2527ITextPointer selection = null; 2531ITextPointer tp = TextEditor.Selection.Start; 2559private int GetPageNumberForVisibleSelection(ITextPointer selection) 2591ITextPointer tp = GetVisibleSelection(); 2662private bool TextViewContains(ITextPointer tp) 2848ITextPointer selection = GetVisibleSelection();
MS\Internal\Documents\DocumentPageTextView.cs (21)
95internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 114internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 142internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 168internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 170ITextPointer positionOut; 197internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 199ITextPointer positionOut = position; 238internal override bool IsAtCaretUnitBoundary(ITextPointer position) 255internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 272internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 289internal override TextSegment GetLineRange(ITextPointer position) 306internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 323internal override bool Contains(ITextPointer position) 403/// <see cref="ITextView.Validate(ITextPointer)"/> 405internal override bool Validate(ITextPointer position)
MS\Internal\Documents\DocumentViewerHelper.cs (5)
81ITextPointer contentStart; 82ITextPointer contentEnd; 83ITextPointer startPointer = null; 221ITextPointer temp = contentStart; 389ITextPointer contextMenuPosition = null;
MS\Internal\Documents\FlowDocumentFormatter.cs (2)
321void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
MS\Internal\Documents\FlowDocumentPaginator.cs (5)
346ITextPointer position; 690private void InvalidateBRTLayout(ITextPointer start, ITextPointer end) 1103void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
MS\Internal\Documents\HostedElements.cs (4)
86Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 87((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 97Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 98while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0)
MS\Internal\Documents\IFlowDocumentFormatter.cs (2)
29void OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end);
MS\Internal\Documents\LineResult.cs (12)
31internal abstract ITextPointer GetTextPositionFromDistance(double distance); 36internal abstract bool IsAtCaretUnitBoundary(ITextPointer position); 41internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 46internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 51internal abstract ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 61internal abstract ITextPointer GetContentEndPosition(); 71internal abstract ITextPointer GetEllipsesPosition(); 106internal abstract ITextPointer StartPosition { get; } 111internal abstract ITextPointer EndPosition { get; }
MS\Internal\Documents\MultiPageTextView.cs (47)
89internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 91ITextPointer position = null; 113internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 142internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 160ITextPointer startPositionInTextSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 161ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 185internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 200internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 213internal override bool IsAtCaretUnitBoundary(ITextPointer position) 235internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 237ITextPointer positionOut = null; 257internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 259ITextPointer positionOut = null; 279internal override TextSegment GetLineRange(ITextPointer position) 301internal override bool Contains(ITextPointer position) 314internal override void BringPositionIntoViewAsync(ITextPointer position, object userState) 378ITextPointer position; 477internal override void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 500internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 600internal ITextView GetPageTextViewFromPosition(ITextPointer position) 752ITextPointer newPosition; 824ITextPointer newPosition; 861private ITextPointer GetPositionAtNextLineCore(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved, out int pageNumber) 863ITextPointer positionOut; 965private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber) 968ITextPointer positionOut = position; 1019private ITextPointer GetPositionAtPageBoundary(bool pageTop, ITextView pageTextView, ITextPointer position, double suggestedX) 1023ITextPointer positionOut; 1133private DocumentPageTextView GetTextViewFromPosition(ITextPointer position) 1360ITextPointer newPosition; 1591internal BringPositionIntoViewRequest(ITextPointer position, object userState) 1597internal readonly ITextPointer Position; 1613internal ITextPointer Position; 1621internal BringLineIntoViewRequest(ITextPointer position, double suggestedX, int count, object userState) 1631internal readonly ITextPointer Position; 1634internal ITextPointer NewPosition; 1645internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState) 1655internal readonly ITextPointer Position; 1658internal ITextPointer NewPosition;
MS\Internal\Documents\ParagraphResult.cs (29)
74internal virtual bool Contains(ITextPointer position, bool strict) 93internal ITextPointer StartPosition 105internal ITextPointer EndPosition 238internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 347internal Rect GetRectangleFromTextPosition(ITextPointer position) 360internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 369internal bool IsAtCaretUnitBoundary(ITextPointer position) 381internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 390internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 404internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 418internal override bool Contains(ITextPointer position, bool strict) 627internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position) 639internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 651internal CellParaClient GetCellParaClientFromPosition(ITextPointer position) 703internal Rect GetRectangleFromRowEndPosition(ITextPointer position) 1079internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success) 1086ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition; 1251internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success) 1258ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition; 1335internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
MS\Internal\Documents\TextBoxLine.cs (1)
111ITextPointer position = _owner.Host.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
MS\Internal\Documents\TextBoxView.cs (40)
555ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 562ITextPointer position; 580Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 634Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 644Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 700ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward); 723ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 733ITextPointer nextLinePosition; 755ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 770bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 809ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 878ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 886ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 926ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 934TextSegment ITextView.GetLineRange(ITextPointer position) 941ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 942ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 950ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 960bool ITextView.Contains(ITextPointer position) 968void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 990void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 1001void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 1038/// <see cref="ITextView.Validate(ITextPointer)"/> 1040bool ITextView.Validate(ITextPointer position) 1264ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1265ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward); 1653private int GetLineIndexFromPosition(ITextPointer position) 1659private int GetLineIndexFromPosition(ITextPointer position, LogicalDirection direction) 1709private ITextPointer GetTextPositionFromDistance(int lineIndex, double x) 2016ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2061ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2112ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2140ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2877private bool Contains(ITextPointer position)
MS\Internal\Documents\TextContainerHelper.cs (24)
109internal bool Contains(ITextPointer position, bool strict) 149internal ITextPointer StartPosition 153ITextPointer startPosition = null; 161internal ITextPointer EndPosition 165ITextPointer endPosition = null; 307internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart) 391internal static bool IsImmediateAutomationChild(ITextPointer elementStart, ITextPointer ownerContentStart) 396ITextPointer position = elementStart.CreatePointer(); 427internal static AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end, out ITextPointer elementStart, out ITextPointer elementEnd) 431ITextPointer position; 433List<ITextPointer> positionsStart, positionsEnd; 438positionsStart = new List<ITextPointer>(); 454positionsEnd = new List<ITextPointer>(); 534internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element) 536ITextPointer textPointer; 583internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction) 599internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 602ITextPointer position;
MS\Internal\Documents\TextDocumentView.cs (88)
59internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 82internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 107internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 152ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 153ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 222internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 224ITextPointer positionOut; 276internal override bool IsAtCaretUnitBoundary(ITextPointer position) 295internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 315internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 334internal override TextSegment GetLineRange(ITextPointer position) 353internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 382internal override bool Contains(ITextPointer position) 459internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments) 677private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements) 679ITextPointer position; 739private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText) 741ITextPointer position = null; 893private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText) 895ITextPointer position = null; 1089private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1126private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position) 1225private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1248ITextPointer startPosition, 1249ITextPointer endPosition, 1316ITextPointer startPosition, 1317ITextPointer endPosition, 1342ITextPointer startPosition, 1343ITextPointer endPosition, 1422private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1457private bool IsAtCaretUnitBoundary(ParagraphResult paragraph, ITextPointer position) 1525private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1544private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction) 1548ITextPointer nextCaretPosition = position; 1581private ITextPointer GetNextCaretUnitPosition(ParagraphResult paragraph, ITextPointer position, LogicalDirection direction) 1583ITextPointer nextCaretPosition = position; 1650private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction) 1667private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1671ITextPointer backspaceCaretPosition = position; 1702private ITextPointer GetBackspaceCaretUnitPosition(ParagraphResult paragraph, ITextPointer position) 1704ITextPointer backspaceCaretPosition = position; 1769private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2086private int GetColumnFromPosition(ReadOnlyCollection<ColumnResult> columns, ITextPointer position) 2137private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, out bool isFloatingPara) 2163private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position) 2234private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2269private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position) 2370private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2401private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position, double suggestedX, ref int count, out bool positionFound) 2406ITextPointer positionOut = position; 2619private ITextPointer GetPositionAtNextLineInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out bool positionFound) 2622ITextPointer positionOut = position; 2670private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out double newSuggestedX, out bool positionFound) 2672ITextPointer positionOut = null; 2711ITextPointer siblingColumnPosition = GetPositionAtNextLineFromSiblingColumn(columns, columnIndex, suggestedX, ref newSuggestedX, ref count); 2742private ITextPointer GetPositionAtNextLineFromSiblingPara(ReadOnlyCollection<ParagraphResult> paragraphs, int paragraphIndex, double suggestedX, ref int count) 2747ITextPointer positionOut = null; 2904private ITextPointer GetPositionAtNextLineFromSiblingTextPara(TextParagraphResult paragraph, double suggestedX, ref int count) 2906ITextPointer positionOut = null; 3022private ITextPointer GetPositionAtNextLineFromSiblingColumn(ReadOnlyCollection<ColumnResult> columns, int columnIndex, double columnSuggestedX, ref double newSuggestedX, ref int count) 3024ITextPointer positionOut = null; 3070private bool ContainsCore(ITextPointer position) 3085private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs) 3098ITextPointer startRange = start.CompareTo(tpr.StartPosition) < 0 ? tpr.StartPosition : start; 3099ITextPointer endRange = end.CompareTo(tpr.EndPosition) < 0 ? end : tpr.EndPosition; 3137private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success) 3149ITextPointer endThisPara = end.CompareTo(paragraph.EndPosition) < 0 ? end : paragraph.EndPosition; 3180private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements) 3239ITextPointer segmentEnd = _textContainer.End; 3430private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer) 3460private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
MS\Internal\Documents\TextParagraphView.cs (20)
56internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 58ITextPointer position; 79internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 98internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 124internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 126ITextPointer positionOut; 187internal override bool IsAtCaretUnitBoundary(ITextPointer position) 206internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 219ITextPointer positionOut = _owner.GetNextCaretUnitPosition(position, direction, dcp, lineIndex); 229internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 242ITextPointer positionOut = _owner.GetBackspaceCaretUnitPosition(position, dcp, lineIndex); 252internal override TextSegment GetLineRange(ITextPointer position) 278internal override bool Contains(ITextPointer position) 317internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText) 320ITextPointer orientedPosition; 352internal static int GetLineFromPosition(ReadOnlyCollection<LineResult> lines, ITextPointer position)
MS\Internal\Documents\TextViewBase.cs (49)
34internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 43internal virtual Rect GetRectangleFromTextPosition(ITextPointer position) 59internal abstract Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 64internal abstract Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition); 69internal abstract ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved); 74internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 84internal abstract bool IsAtCaretUnitBoundary(ITextPointer position); 89internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 94internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 99internal abstract TextSegment GetLineRange(ITextPointer position); 104internal virtual ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 117internal abstract bool Contains(ITextPointer position); 175internal virtual void BringPositionIntoViewAsync(ITextPointer position, object userState) 190ITextPointer position; 204internal virtual void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 206ITextPointer newPosition; 222internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 224ITextPointer newPosition; 261/// <see cref="ITextView.Validate(ITextPointer)"/> 263internal virtual bool Validate(ITextPointer position) 464ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 472Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 480Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 488Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 496ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 504ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 512bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 520ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 528ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 536TextSegment ITextView.GetLineRange(ITextPointer position) 544ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 552bool ITextView.Contains(ITextPointer position) 560void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 576void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 584void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 614/// <see cref="ITextView.Validate(ITextPointer)"/> 616bool ITextView.Validate(ITextPointer position)
MS\Internal\LayoutDump.cs (2)
611private static void DumpTextRange(XmlTextWriter writer, ITextPointer start, ITextPointer end)
MS\Internal\PtsHost\BreakRecordTable.cs (6)
173internal void OnInvalidateLayout(ITextPointer start, ITextPointer end) 223internal void OnInvalidateRender(ITextPointer start, ITextPointer end) 431private void GetAffectedPages(ITextPointer start, ITextPointer end, out int pageStart, out int pageCount)
MS\Internal\PtsHost\CellParaClient.cs (2)
308internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\ContainerParaClient.cs (2)
395internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\ContainerParagraph.cs (3)
141ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 230ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 1004protected virtual BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
MS\Internal\PtsHost\FigureParaClient.cs (2)
731internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\FloaterParaClient.cs (2)
740internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
945while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.TextContainer.End) < 0) 980if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 981((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
MS\Internal\PtsHost\Line.cs (2)
186ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 187ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\ListParagraph.cs (1)
59protected override BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
MS\Internal\PtsHost\OptimalTextSource.cs (3)
137ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 138ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 176ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\TableParaClient.cs (5)
800internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position) 817internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 888internal CellParaClient GetCellParaClientFromPosition(ITextPointer position) 1117internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
MS\Internal\PtsHost\TextParaClient.cs (29)
659internal ITextPointer GetTextPosition(int dcp, LogicalDirection direction) 671internal Rect GetRectangleFromTextPosition(ITextPointer position) 731internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 820internal bool IsAtCaretUnitBoundary(ITextPointer position) 870internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 872ITextPointer nextCaretPosition = position; 913internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 915ITextPointer backspaceCaretPosition = position; 966internal ITextPointer GetTextPositionFromDistance(int dcpLine, double distance) 1104internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 2033ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2364ITextPointer position, 2456ITextPointer position, 2579private ITextPointer NextCaretUnitPositionFromDcpSimpleLines( 2581ITextPointer position, 2595ITextPointer nextCaretPosition = position; 2704private ITextPointer NextCaretUnitPositionFromDcpCompositeLines( 2706ITextPointer position, 2720ITextPointer nextCaretPosition = position; 2870private ITextPointer BackspaceCaretUnitPositionFromDcpSimpleLines( 2872ITextPointer position, 2885ITextPointer backspaceCaretPosition = position; 2962private ITextPointer BackspaceCaretUnitPositionFromDcpCompositeLines( 2964ITextPointer position, 2977ITextPointer backspaceCaretPosition = position;
MS\Internal\PtsHost\TextParagraph.cs (5)
861ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 862ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 884ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 885ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 937ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element);
MS\Internal\PtsHost\TextParaLineResult.cs (14)
38internal override ITextPointer GetTextPositionFromDistance(double distance) 50internal override bool IsAtCaretUnitBoundary(ITextPointer position) 66internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 79internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 95internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 105internal override ITextPointer GetContentEndPosition() 115internal override ITextPointer GetEllipsesPosition() 166internal override ITextPointer StartPosition 181internal override ITextPointer EndPosition 351private ITextPointer _startPosition; 356private ITextPointer _endPosition;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
139internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
MS\Internal\Text\ComplexLine.cs (1)
88ITextPointer position = _owner.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
MS\Internal\Text\TextLineResult.cs (14)
39internal override ITextPointer GetTextPositionFromDistance(double distance) 49internal override bool IsAtCaretUnitBoundary(ITextPointer position) 61internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 72internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 84internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 98internal override ITextPointer GetContentEndPosition() 112internal override ITextPointer GetEllipsesPosition() 163internal override ITextPointer StartPosition 178internal override ITextPointer EndPosition 303private ITextPointer _startPosition; 308private ITextPointer _endPosition;
System\Windows\Annotations\AnnotationHelper.cs (2)
670ITextPointer start = selection.Start.CreatePointer(); 671ITextPointer end = selection.End.CreatePointer();
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (2)
86internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
201internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end) 272private ITextPointer _childrenStart; 273private ITextPointer _childrenEnd;
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (2)
152internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
78internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextAutomationPeer.cs (2)
111internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
123internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
204internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
836ITextPointer contentPosition = arg as ITextPointer;
System\Windows\Controls\PasswordBox.cs (2)
1052ITextPointer selectionStart; 1053ITextPointer selectionEnd;
System\Windows\Controls\PasswordTextContainer.cs (24)
70internal void InsertText(ITextPointer position, string textData) 109internal void DeleteContent(ITextPointer startPosition, ITextPointer endPosition) 211ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 217ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 222ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 224return ((ITextPointer)position.Handle0).CreatePointer(direction); 234return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 239return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 244return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 249return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 259return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 264return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 269return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 272int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 274return ((ITextPointer)position1.Handle0).CompareTo(position2); 279return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 363ITextPointer ITextContainer.Start 377ITextPointer ITextContainer.End 509internal ITextPointer Start 523internal ITextPointer End 619private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
System\Windows\Controls\PasswordTextNavigator.cs (74)
47/// <see cref="ITextPointer.SetLogicalDirection"/> 49void ITextPointer.SetLogicalDirection(LogicalDirection direction) 77int ITextPointer.CompareTo(ITextPointer position) 100int ITextPointer.CompareTo(StaticTextPointer position) 102return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 117int ITextPointer.GetOffsetToPosition(ITextPointer position) 133TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 165int ITextPointer.GetTextRunLength(LogicalDirection direction) 182string ITextPointer.GetTextInRun(LogicalDirection direction) 187int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 222object ITextPointer.GetAdjacentElement(LogicalDirection direction) 242Type ITextPointer.GetElementType(LogicalDirection direction) 261bool ITextPointer.HasEqualScope(ITextPointer position) 282object ITextPointer.GetValue(DependencyProperty formattingProperty) 293object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 305LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 310ITextPointer ITextPointer.CreatePointer() 317StaticTextPointer ITextPointer.CreateStaticPointer() 319return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 322ITextPointer ITextPointer.CreatePointer(int distance) 327ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 349ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 355void ITextPointer.Freeze() 361/// <see cref="ITextPointer.GetFrozenPointer"/> 363ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 374void ITextPointer.InsertTextInRun(string textData) 386void ITextPointer.DeleteContentToPosition(ITextPointer limit) 418bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 459int ITextPointer.MoveByOffset(int distance) 487void ITextPointer.MoveToPosition(ITextPointer position) 505void ITextPointer.MoveToElementEdge(ElementEdge edge) 512int ITextPointer.MoveToLineBoundary(int count) 518Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 523bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 528bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 535ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 537ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 550ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 552ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 559ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 561ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 576ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 578ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 584/// <see cref="ITextPointer.ValidateLayout"/> 585bool ITextPointer.ValidateLayout() 601Type ITextPointer.ParentType 610ITextContainer ITextPointer.TextContainer 619bool ITextPointer.HasValidLayout 628bool ITextPointer.IsAtCaretUnitBoundary 648LogicalDirection ITextPointer.LogicalDirection 656bool ITextPointer.IsAtInsertionPosition 662bool ITextPointer.IsFrozen 671int ITextPointer.Offset 680int ITextPointer.CharOffset
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
759private ITextPointer GetMasterPageTextPointer(bool startOfPage) 761ITextPointer masterPointer = null;
System\Windows\Controls\TextAdaptor.cs (19)
88internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool clipToView, bool transformToScreen) 132ITextPointer position = start.CreatePointer(); 140ITextPointer first = (lineRange.Start.CompareTo(start) <= 0) ? start : lineRange.Start; 141ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End; 201internal void Select(ITextPointer start, ITextPointer end) 211internal void ScrollIntoView(ITextPointer start, ITextPointer end, bool alignToTop) 270ITextPointer pointer = alignToTop ? start.CreatePointer() : end.CreatePointer(); 279internal ITextRangeProvider TextRangeFromTextPointers(ITextPointer rangeStart, ITextPointer rangeEnd) 296ITextPointer temp = rangeStart; 532ITextPointer visibleStart = textView.GetTextPositionFromPoint(visibleRect.TopLeft, true); 533ITextPointer visibleEnd = textView.GetTextPositionFromPoint(visibleRect.BottomRight, true); 582ITextPointer rangeStart = null; 583ITextPointer rangeEnd = null; 605ITextPointer position = _textContainer.Start.CreatePointer(); 662ITextPointer position = textView.GetTextPositionFromPoint(location, true);
System\Windows\Controls\TextBlock.cs (14)
2103internal ITextPointer GetTextPositionFromDistance(int dcp, double distance, double lineVOffset, int index) 2121ITextPointer pos; 2150internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition) 2252internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 2278ITextPointer endOfLineTextPointer = _complexContent.TextContainer.Start.CreatePointer(0); 2366internal bool IsAtCaretUnitBoundary(ITextPointer position, int dcp, int lineIndex) 2434internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction, int dcp, int lineIndex) 2542ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 2562internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position, int dcp, int lineIndex) 2630ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 2814private static void InsertTextRun(ITextPointer position, string text, bool whitespacesIgnorable)
System\Windows\Controls\TextBox.cs (1)
555ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction);
System\Windows\Controls\TextRangeAdaptor.cs (69)
47delegate(ITextPointer tp) 58delegate(ITextPointer tp) 68delegate(ITextPointer tp) 107delegate(ITextPointer tp) 147delegate(ITextPointer tp) 158delegate(ITextPointer tp) 168delegate(ITextPointer tp) 178delegate(ITextPointer tp) 189delegate(ITextPointer tp) 199delegate(ITextPointer tp) 227delegate(ITextPointer tp) 237delegate(ITextPointer tp) 248delegate(ITextPointer tp) 259delegate(ITextPointer tp) { return false; }, 266delegate(ITextPointer tp) 278delegate(ITextPointer tp) 293delegate(ITextPointer tp) 304delegate(ITextPointer tp) 315delegate(ITextPointer tp) 326delegate(ITextPointer tp) 337delegate(ITextPointer tp) 348delegate(ITextPointer tp) 359delegate(ITextPointer tp) { return OutlineStyles.None; }, 366delegate(ITextPointer tp) 377delegate(ITextPointer tp) 388delegate(ITextPointer tp) 399delegate(ITextPointer tp) 410delegate(ITextPointer tp) 432delegate(ITextPointer tp) 443delegate(ITextPointer tp) 456internal TextRangeAdaptor(TextAdaptor textAdaptor, ITextPointer start, ITextPointer end, AutomationPeer textPeer) 479internal static bool MoveToInsertionPosition(ITextPointer position, LogicalDirection direction) 724private bool MoveToUnitBoundary(ITextPointer position, bool isStart, LogicalDirection direction, TextUnit unit) 792ITextPointer nextLineStart = null; 819ITextPointer previousLineEnd = null; 855ITextPointer nextParagraphStart = textRange.End; 876ITextPointer previousParagraphEnd = textRange.Start; 988private int MovePositionByUnits(ITextPointer position, TextUnit unit, int count) 1026ITextPointer positionOrig = position.CreatePointer(); 1153ITextPointer positionTemp = position.CreatePointer(); 1203ITextPointer start = _start.CreatePointer(); 1204ITextPointer end = _end.CreatePointer(); 1264private static string GetFontFamilyName(FontFamily fontFamily, ITextPointer context) 1376private AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end) 1379ITextPointer elementStart, elementEnd; 1418private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end) 1438private static bool IsAtWordBoundary(ITextPointer position) 1453private static bool MoveToNextWordBoundary(ITextPointer position, LogicalDirection direction) 1456ITextPointer startPosition = position.CreatePointer(); 1504private ITextPointer GetInsertionPosition(ITextPointer position, LogicalDirection direction) 1523private ITextPointer _start; 1524private ITextPointer _end; 1546internal delegate object GetValueAtDelegate(ITextPointer textPointer); 1618ITextPointer position = (endpoint == TextPatternRangeEndpoint.Start) ? _start : _end; 1619ITextPointer targetPosition = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end; 1666ITextPointer attrStart = null; 1667ITextPointer attrEnd = null; 1671ITextPointer stop = _start; 1672ITextPointer position = _end.CreatePointer(LogicalDirection.Backward); 1702ITextPointer stop = _end; 1703ITextPointer position = _start.CreatePointer(LogicalDirection.Forward); 1892ITextPointer position = _start.CreatePointer(); 1944ITextPointer positionRef = start ? _start : _end; 1945ITextPointer position = positionRef.CreatePointer(); 2006ITextPointer targetPointer = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
System\Windows\Documents\ChildDocumentBlock.cs (1)
144internal ITextPointer End
System\Windows\Documents\CompositionAdorner.cs (12)
323internal void AddAttributeRange(ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServiceDisplayAttribute) 326ITextPointer rangeStart = start.CreatePointer(LogicalDirection.Forward); 327ITextPointer rangeEnd = end.CreatePointer(LogicalDirection.Backward); 453internal AttributeRange(ITextView textView, ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServicesDisplayAttribute) 480ITextPointer start = _textView.TextContainer.Start.CreatePointer(_startOffset, LogicalDirection.Forward); 481ITextPointer end = _textView.TextContainer.Start.CreatePointer(_endOffset, LogicalDirection.Backward); 565private void AddMultipleCompositionLines(ITextPointer start, ITextPointer end) 568ITextPointer startLinePointer = start; 569ITextPointer endLinePointer = startLinePointer;
System\Windows\Documents\DocumentSequence.cs (4)
366if (cp != ContentPosition.Missing && (cp is ITextPointer)) 369return new DocumentSequenceTextPointer(childBlock, (ITextPointer)cp); 1139ITextPointer childPosition = _documentPaginator.GetPagePosition(_documentPage) as ITextPointer;
System\Windows\Documents\DocumentSequenceTextContainer.cs (25)
94ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 100ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 105ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 107return ((ITextPointer)position.Handle0).CreatePointer(direction); 117return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 122return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 127return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 132return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 142return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 147return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 152return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 155int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 157return ((ITextPointer)position1.Handle0).CompareTo(position2); 162return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 212ITextPointer ITextContainer.Start 225ITextPointer ITextContainer.End 340internal DocumentSequenceTextPointer VerifyPosition(ITextPointer position) 361internal DocumentSequenceTextPointer MapChildPositionToParent(ITextPointer tp) 534private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 718ITextPointer tpChildStart, tpChildEnd; 987ITextPointer dynamicTextPointer = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward); 988ITextPointer parentTextPointer = ((DocumentSequenceTextContainer)this.TextContainer).MapChildPositionToParent(dynamicTextPointer); 1016ITextPointer childTp = parentChangePosition.ChildPointer;
System\Windows\Documents\DocumentSequenceTextPointer.cs (134)
27internal DocumentSequenceTextPointer(ChildDocumentBlock childBlock, ITextPointer childPosition) 44/// <see cref="ITextPointer.SetLogicalDirection"/> 46void ITextPointer.SetLogicalDirection(LogicalDirection direction) 53/// <see cref="ITextPointer.CompareTo(ITextPointer)"/> 55int ITextPointer.CompareTo(ITextPointer position) 61/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/> 63int ITextPointer.CompareTo(StaticTextPointer position) 65return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 69/// <see cref="ITextPointer.GetOffsetToPosition"/> 71int ITextPointer.GetOffsetToPosition(ITextPointer position) 77/// <see cref="ITextPointer.GetPointerContext"/> 79TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 85/// <see cref="ITextPointer.GetTextRunLength"/> 88int ITextPointer.GetTextRunLength(LogicalDirection direction) 94string ITextPointer.GetTextInRun(LogicalDirection direction) 100/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 103int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 109/// <see cref="ITextPointer.GetAdjacentElement"/> 112object ITextPointer.GetAdjacentElement(LogicalDirection direction) 118/// <see cref="ITextPointer.GetElementType"/> 121Type ITextPointer.GetElementType(LogicalDirection direction) 127/// <see cref="ITextPointer.HasEqualScope"/> 129bool ITextPointer.HasEqualScope(ITextPointer position) 136/// <see cref="ITextPointer.GetValue"/> 139object ITextPointer.GetValue(DependencyProperty property) 145/// <see cref="ITextPointer.ReadLocalValue"/> 148object ITextPointer.ReadLocalValue(DependencyProperty property) 154/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 157LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 163/// <see cref="ITextPointer.CreatePointer()"/> 165ITextPointer ITextPointer.CreatePointer() 173/// <see cref="ITextPointer.CreateStaticPointer"/> 175StaticTextPointer ITextPointer.CreateStaticPointer() 177return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 181/// <see cref="ITextPointer.CreatePointer(int)"/> 183ITextPointer ITextPointer.CreatePointer(int distance) 189/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 191ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 197/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 199ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 205void ITextPointer.Freeze() 211/// <see cref="ITextPointer.GetFrozenPointer"/> 213ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 224void ITextPointer.InsertTextInRun(string textData) 236void ITextPointer.DeleteContentToPosition(ITextPointer limit) 242ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 244ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 257ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 259ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 268ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 270ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 277ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 279ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 291/// <see cref="ITextPointer.ValidateLayout"/> 292bool ITextPointer.ValidateLayout() 294return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 322Type ITextPointer.ParentType 331/// <see cref="ITextPointer.TextContainer"/> 333ITextContainer ITextPointer.TextContainer 339bool ITextPointer.HasValidLayout 343return (((ITextPointer)this).TextContainer.TextView != null && 344((ITextPointer)this).TextContainer.TextView.IsValid && 345((ITextPointer)this).TextContainer.TextView.Contains(this)); 350bool ITextPointer.IsAtCaretUnitBoundary 354Invariant.Assert(((ITextPointer)this).HasValidLayout); 355ITextView textView = ((ITextPointer)this).TextContainer.TextView; 358if (!isAtCaretUnitBoundary && ((ITextPointer)this).LogicalDirection == LogicalDirection.Backward) 366ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward); 374/// <see cref="ITextPointer.LogicalDirection"/> 376LogicalDirection ITextPointer.LogicalDirection 384bool ITextPointer.IsAtInsertionPosition 390bool ITextPointer.IsFrozen 399int ITextPointer.Offset 408int ITextPointer.CharOffset 439/// <see cref="ITextPointer.MoveByOffset"/> 441bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 449/// <see cref="ITextPointer.MoveByOffset"/> 451int ITextPointer.MoveByOffset(int offset) 466/// <see cref="ITextPointer.MoveToPosition"/> 468void ITextPointer.MoveToPosition(ITextPointer position) 488/// <see cref="ITextPointer.MoveToElementEdge"/> 490void ITextPointer.MoveToElementEdge(ElementEdge edge) 498int ITextPointer.MoveToLineBoundary(int count) 500return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 504Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 509bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 514bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 550internal ITextPointer ChildPointer 593/// <see cref="ITextPointer.CompareTo(ITextPointer)"/> 595public static int CompareTo(DocumentSequenceTextPointer thisTp, ITextPointer position) 605/// <see cref="ITextPointer.GetOffsetToPosition"/> 607public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position) 627/// <see cref="ITextPointer.GetPointerContext"/> 637/// <see cref="ITextPointer.GetTextRunLength"/> 648/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 677/// <see cref="ITextPointer.GetAdjacentElement"/> 688/// <see cref="ITextPointer.GetElementType"/> 701/// <see cref="ITextPointer.GetElementType"/> 709/// <see cref="ITextPointer.HasEqualScope"/> 711public static bool HasEqualScope(DocumentSequenceTextPointer thisTp, ITextPointer position) 724/// <see cref="ITextPointer.GetValue"/> 735/// <see cref="ITextPointer.ReadLocalValue"/> 746/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 754public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp) 759public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance) 764public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, LogicalDirection gravity) 770/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 772public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance, LogicalDirection gravity) 872ITextPointer pointer = thisTp.ChildPointer; 1022ITextPointer childTn = thisTp.ChildPointer; 1111private ITextPointer _childTp;
System\Windows\Documents\DocumentSequenceTextView.cs (17)
69internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 77ITextPointer childOTP = ChildTextView.GetTextPositionFromPoint(point, snapToText); 116internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 145internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 197internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 218ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.LogicalDirection), suggestedX, count, out newSuggestedX, out linesMoved); 250internal override bool IsAtCaretUnitBoundary(ITextPointer position) 297internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 323internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 349internal override TextSegment GetLineRange(ITextPointer position) 402internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 422internal override bool Contains(ITextPointer position)
System\Windows\Documents\FixedElement.cs (3)
262ITextPointer pos = ((ITextPointer)_start).CreatePointer(); 264while (pos.CompareTo((ITextPointer)_end) < 0)
System\Windows\Documents\FixedFindEngine.cs (8)
23internal static TextRange Find ( ITextPointer start, 24ITextPointer end, 79ITextPointer firstSearchPageStart = null; 80ITextPointer firstSearchPageEnd = null; 284private static void _GetFirstPageSearchPointers ( ITextPointer start, 285ITextPointer end, 288out ITextPointer firstSearchPageStart, 289out ITextPointer firstSearchPageEnd)
System\Windows\Documents\FixedTextContainer.cs (22)
79ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 85ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 90ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 92return ((ITextPointer)position.Handle0).CreatePointer(direction); 102return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 107return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 112return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 117return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 127return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 132return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 137return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 140int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 142return ((ITextPointer)position1.Handle0).CompareTo(position2); 147return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 181ITextPointer ITextContainer.Start 194ITextPointer ITextContainer.End 307internal FixedTextPointer VerifyPosition(ITextPointer position) 327internal int GetPageNumber(ITextPointer textPointer) 599private bool _GetFixedNodesForFlowRange(ITextPointer start, ITextPointer end, out FixedSOMElement[] elements, out int startIndex, out int endIndex)
System\Windows\Documents\FixedTextPointer.cs (124)
57internal int CompareTo(ITextPointer position) 64int ITextPointer.CompareTo(StaticTextPointer position) 66return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 74int ITextPointer.CompareTo(ITextPointer position) 82int ITextPointer.GetOffsetToPosition(ITextPointer position) 92TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 102int ITextPointer.GetTextRunLength(LogicalDirection direction) 113string ITextPointer.GetTextInRun(LogicalDirection direction) 119/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 122int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 139/// <see cref="ITextPointer.GetAdjacentElement"/> 142object ITextPointer.GetAdjacentElement(LogicalDirection direction) 154/// <see cref="ITextPointer.GetElementType"/> 157Type ITextPointer.GetElementType(LogicalDirection direction) 173/// <see cref="ITextPointer.HasEqualScope"/> 175bool ITextPointer.HasEqualScope(ITextPointer position) 187/// <see cref="ITextPointer.GetValue"/> 190object ITextPointer.GetValue(DependencyProperty property) 199/// <see cref="ITextPointer.ReadLocalValue"/> 202object ITextPointer.ReadLocalValue(DependencyProperty property) 216/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 219LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 232/// <see cref="ITextPointer.CreatePointer()"/> 234ITextPointer ITextPointer.CreatePointer() 236return ((ITextPointer)this).CreatePointer(0, ((ITextPointer)this).LogicalDirection); 242/// <see cref="ITextPointer.CreateStaticPointer"/> 244StaticTextPointer ITextPointer.CreateStaticPointer() 246return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 250/// <see cref="ITextPointer.CreatePointer(int)"/> 252ITextPointer ITextPointer.CreatePointer(int distance) 254return ((ITextPointer)this).CreatePointer(distance, ((ITextPointer)this).LogicalDirection); 258/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 260ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 262return ((ITextPointer)this).CreatePointer(0, gravity); 266/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 268ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 282/// <see cref="ITextPointer.Freeze"/> 284void ITextPointer.Freeze() 290/// <see cref="ITextPointer.GetFrozenPointer"/> 292ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 299/// <see cref="ITextPointer.GetNextContextPosition"/> 301ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 303ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 317/// <see cref="ITextPointer.GetInsertionPosition"/> 319ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 321ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 331/// <see cref="ITextPointer.GetFormatNormalizedPosition"/> 333ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 335ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 343/// <see cref="ITextPointer.GetNextInsertionPosition"/> 345ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 347ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 362/// <see cref="ITextPointer.SetLogicalDirection"/> 365void ITextPointer.SetLogicalDirection(LogicalDirection direction) 373/// <see cref="ITextPointer.MoveByOffset"/> 375bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 387/// <see cref="ITextPointer.MoveByOffset"/> 389int ITextPointer.MoveByOffset(int offset) 404/// <see cref="ITextPointer.MoveToPosition"/> 406void ITextPointer.MoveToPosition(ITextPointer position) 416/// <see cref="ITextPointer.MoveToElementEdge"/> 418void ITextPointer.MoveToElementEdge(ElementEdge edge) 452/// <see cref="ITextPointer.MoveToLineBoundary"/> 454int ITextPointer.MoveToLineBoundary(int count) 456return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 460/// <see cref="ITextPointer.GetCharacterRect"/> 462Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 468/// <see cref="ITextPointer.MoveToInsertionPosition"/> 470bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 476/// <see cref="ITextPointer.MoveToNextInsertionPosition"/> 478bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 491void ITextPointer.InsertTextInRun(string textData) 499/// <see cref="ITextPointer.DeleteContentToPosition"/> 501void ITextPointer.DeleteContentToPosition(ITextPointer limit) 507/// <see cref="ITextPointer.ValidateLayout"/> 509bool ITextPointer.ValidateLayout() 511return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 525/// <see cref="ITextPointer.ParentType"/> 527Type ITextPointer.ParentType 537/// <see cref="ITextPointer.TextContainer"/> 539ITextContainer ITextPointer.TextContainer 545/// <see cref="ITextPointer.HasValidLayout"/> 547bool ITextPointer.HasValidLayout 551return (((ITextPointer)this).TextContainer.TextView != null && 552((ITextPointer)this).TextContainer.TextView.IsValid && 553((ITextPointer)this).TextContainer.TextView.Contains(this)); 558/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/> 560bool ITextPointer.IsAtCaretUnitBoundary 564Invariant.Assert(((ITextPointer)this).HasValidLayout); 565ITextView textView = ((ITextPointer)this).TextContainer.TextView; 576ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward); 584/// <see cref="ITextPointer.LogicalDirection"/> 586LogicalDirection ITextPointer.LogicalDirection 595/// <see cref="ITextPointer.IsAtInsertionPosition"/> 597bool ITextPointer.IsAtInsertionPosition 603/// <see cref="ITextPointer.IsFrozen"/> 605bool ITextPointer.IsFrozen 614/// <see cref="ITextPointer.Offset"/> 616int ITextPointer.Offset 626/// <see cref="ITextPointer.CharOffset"/> 628int ITextPointer.CharOffset
System\Windows\Documents\FixedTextView.cs (34)
65internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 71ITextPointer textPos = this.End; 83ITextPointer pos = null; 146internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 177ITextPointer psNext = position.CreatePointer(1); 231internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 325internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 336ITextPointer pos = position; 365((ITextPointer)nav).MoveToInsertionPosition(scanDir); 366((ITextPointer)nav).MoveToNextInsertionPosition(scanDir); 431internal override bool IsAtCaretUnitBoundary(ITextPointer position) 501internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 536ITextPointer pointer = position.CreatePointer(); 555internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 574internal override TextSegment GetLineRange(ITextPointer position) 604ITextPointer begin = _CreateTextPointer(new FixedPosition(fixedNodes[0], 0), LogicalDirection.Forward); 605ITextPointer end = _CreateTextPointer(new FixedPosition(lastNode, lastIndex), LogicalDirection.Backward); 609ITextPointer temp = begin; 632internal override bool Contains(ITextPointer position) 809private ITextPointer _SnapToText(Point point) 811ITextPointer itp = null; 859itp = ((ITextPointer)this.Start).CreatePointer(LogicalDirection.Forward); 864itp = ((ITextPointer)this.End).CreatePointer(LogicalDirection.Backward); 1073TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1097symbolType = ((ITextPointer)nav).GetPointerContext(textdir); 1101if (((ITextPointer)nav).MoveToNextInsertionPosition(textdir) && 1139((ITextPointer)nav).MoveToNextInsertionPosition(dir); 1159private ITextPointer _CreateTextPointer(FixedPosition fixedPosition, LogicalDirection edge) 1175private ITextPointer _CreateTextPointerFromGlyphs(Glyphs g, Point point) 1187private void _SkipFormattingTags(ITextPointer textPointer)
System\Windows\Documents\FlowDocument.cs (2)
881ITextPointer textPointer = null; 1456ITextPointer segmentEnd;
System\Windows\Documents\FrameworkTextComposition.cs (12)
183internal void SetResultPositions(ITextPointer start, ITextPointer end, string text) 207internal void SetCompositionPositions(ITextPointer start, ITextPointer end, string text) 239internal ITextPointer _ResultStart 250internal ITextPointer _ResultEnd 261internal ITextPointer _CompositionStart 272internal ITextPointer _CompositionEnd 336private ITextPointer _resultStart; 339private ITextPointer _resultEnd; 342private ITextPointer _compositionStart; 345private ITextPointer _compositionEnd;
System\Windows\Documents\ImmComposition.cs (23)
590ITextPointer startNavigator; 591ITextPointer endNavigator; 592ITextPointer caretNavigator; 631ITextPointer startPosition = startNavigator.CreatePointer(LogicalDirection.Forward); 632ITextPointer endPosition = endNavigator.CreatePointer(LogicalDirection.Backward); 633ITextPointer caretPosition = caretNavigator.CreatePointer(LogicalDirection.Forward); 1047ITextPointer start; 1048ITextPointer end; 1059internal void UpdateCompositionText(FrameworkTextComposition composition, int resultLength, bool includeResultText, out ITextPointer start, out ITextPointer end) 1127ITextPointer caretPosition = _caretOffset >= 0 ? start.CreatePointer(_caretOffset, LogicalDirection.Forward) : end; 1166ITextPointer startAttribute = _startComposition.CreatePointer(startOffset, LogicalDirection.Backward); 1167ITextPointer endAttribute = _startComposition.CreatePointer(i + 1, LogicalDirection.Forward); 1384ITextPointer navigator; 1521ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward); 1526ITextPointer end = start.CreatePointer(LogicalDirection.Forward); 1541private static ITextPointer MoveToNextCharPos(ITextPointer position, int offset) 1622ITextPointer positionCurrent; 1623ITextPointer positionNext; 1778private void CloseCompositionUndoUnit(UndoCloseAction undoCloseAction, ITextPointer compositionEnd) 1908private ITextPointer _startComposition; 1914private ITextPointer _endComposition;
System\Windows\Documents\ITextContainer.cs (6)
36ITextPointer CreatePointerAtOffset(int offset, LogicalDirection direction); 41ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction); 43ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 63int CompareTo(StaticTextPointer position1, ITextPointer position2); 97ITextPointer Start { get; } 105ITextPointer End { get; }
System\Windows\Documents\ITextPointer.cs (14)
23ITextPointer CreatePointer(); 29ITextPointer CreatePointer(int offset); 32ITextPointer CreatePointer(LogicalDirection gravity); 35ITextPointer CreatePointer(int offset, LogicalDirection gravity); 44int CompareTo(ITextPointer position); 48bool HasEqualScope(ITextPointer position); 54int GetOffsetToPosition(ITextPointer position); 73void MoveToPosition(ITextPointer position); 82ITextPointer GetNextContextPosition(LogicalDirection direction); 88ITextPointer GetInsertionPosition(LogicalDirection direction); 91ITextPointer GetFormatNormalizedPosition(LogicalDirection direction); 97ITextPointer GetNextInsertionPosition(LogicalDirection direction); 112ITextPointer GetFrozenPointer(LogicalDirection logicalDirection); 118void DeleteContentToPosition(ITextPointer limit);
System\Windows\Documents\ITextRange.cs (7)
57bool Contains(ITextPointer position); 61void Select(ITextPointer position1, ITextPointer position2); 69void SelectWord(ITextPointer position); 78void SelectParagraph(ITextPointer position); 232ITextPointer Start { get; } 237ITextPointer End { get; }
System\Windows\Documents\ITextSelection.cs (6)
59void SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace); 66void ExtendToPosition(ITextPointer textPosition); 111void SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint); 114void ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection); 164ITextPointer AnchorPosition { get; } 171ITextPointer MovingPosition { get; }
System\Windows\Documents\ITextView.cs (38)
59ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 93Rect GetRectangleFromTextPosition(ITextPointer position); 132Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 140Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition); 192ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved); 202ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved); 229bool IsAtCaretUnitBoundary(ITextPointer position); 275ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 300ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 326TextSegment GetLineRange(ITextPointer position); 358ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 388bool Contains(ITextPointer position); 394void BringPositionIntoViewAsync(ITextPointer position, object userState); 411void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState); 422void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState); 468bool Validate(ITextPointer position); 594public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 622public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 646public ITextPointer Position 664private readonly ITextPointer _position; 691public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState) 706public ITextPointer Position 732public ITextPointer NewPosition 758private readonly ITextPointer _position; 772private readonly ITextPointer _newPosition; 807public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState) 822public ITextPointer Position 848public ITextPointer NewPosition 874private readonly ITextPointer _position; 888private readonly ITextPointer _newPosition;
System\Windows\Documents\NullTextContainer.cs (18)
79ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 85ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 90ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 92return ((ITextPointer)position.Handle0).CreatePointer(direction); 102return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 107return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 112return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 117return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 127return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 132return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 137return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 140int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 142return ((ITextPointer)position1.Handle0).CompareTo(position2); 147return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 174ITextPointer ITextContainer.Start 187ITextPointer ITextContainer.End
System\Windows\Documents\NullTextNavigator.cs (112)
42int ITextPointer.CompareTo(ITextPointer position) 49int ITextPointer.CompareTo(StaticTextPointer position) 58int ITextPointer.GetOffsetToPosition(ITextPointer position) 66/// <see cref="ITextPointer.GetPointerContext"/> 68TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 75/// <see cref="ITextPointer.GetTextRunLength"/> 78int ITextPointer.GetTextRunLength(LogicalDirection direction) 85/// <see cref="ITextPointer.GetTextInRun(LogicalDirection)"/> 87string ITextPointer.GetTextInRun(LogicalDirection direction) 93/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 96int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 103/// <see cref="ITextPointer.GetAdjacentElement"/> 106object ITextPointer.GetAdjacentElement(LogicalDirection direction) 113/// <see cref="ITextPointer.GetElementType"/> 116Type ITextPointer.GetElementType(LogicalDirection direction) 123/// <see cref="ITextPointer.HasEqualScope"/> 125bool ITextPointer.HasEqualScope(ITextPointer position) 131/// <see cref="ITextPointer.GetValue"/> 134object ITextPointer.GetValue(DependencyProperty property) 140/// <see cref="ITextPointer.ReadLocalValue"/> 142object ITextPointer.ReadLocalValue(DependencyProperty property) 148/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 151LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 157/// <see cref="ITextPointer.CreatePointer()"/> 159ITextPointer ITextPointer.CreatePointer() 161return ((ITextPointer)this).CreatePointer(0, _gravity); 166StaticTextPointer ITextPointer.CreateStaticPointer() 168return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 172/// <see cref="ITextPointer.CreatePointer(int)"/> 174ITextPointer ITextPointer.CreatePointer(int distance) 176return ((ITextPointer)this).CreatePointer(distance, _gravity); 180/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 182ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 184return ((ITextPointer)this).CreatePointer(0, gravity); 188/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 190ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 198void ITextPointer.Freeze() 204/// <see cref="ITextPointer.GetFrozenPointer"/> 206ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 216/// <see cref="ITextPointer.SetLogicalDirection"/> 219void ITextPointer.SetLogicalDirection(LogicalDirection direction) 228/// <see cref="ITextPointer.MoveByOffset"/> 230bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 240/// <see cref="ITextPointer.MoveByOffset"/> 242int ITextPointer.MoveByOffset(int distance) 252/// <see cref="ITextPointer.MoveToPosition"/> 254void ITextPointer.MoveToPosition(ITextPointer position) 262/// <see cref="ITextPointer.MoveToElementEdge"/> 264void ITextPointer.MoveToElementEdge(ElementEdge edge) 272/// <see cref="ITextPointer.MoveToLineBoundary"/> 274int ITextPointer.MoveToLineBoundary(int count) 281/// <see cref="ITextPointer.GetCharacterRect"/> 283Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 290/// <see cref="ITextPointer.MoveToInsertionPosition"/> 292bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 298/// <see cref="ITextPointer.MoveToNextInsertionPosition"/> 300bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 306/// <see cref="ITextPointer.InsertTextInRun"/> 308void ITextPointer.InsertTextInRun(string textData) 314/// <see cref="ITextPointer.DeleteContentToPosition"/> 316void ITextPointer.DeleteContentToPosition(ITextPointer limit) 323/// <see cref="ITextPointer.GetNextContextPosition"/> 325ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 327ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 341/// <see cref="ITextPointer.GetInsertionPosition"/> 343ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 345ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 355/// <see cref="ITextPointer.GetFormatNormalizedPosition"/> 357ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 359ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 367/// <see cref="ITextPointer.GetNextInsertionPosition"/> 369ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 371ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 384/// <see cref="ITextPointer.ValidateLayout"/> 386bool ITextPointer.ValidateLayout() 403/// <see cref="ITextPointer.ParentType"/> 405Type ITextPointer.ParentType 417/// <see cref="ITextPointer.TextContainer"/> 419ITextContainer ITextPointer.TextContainer 425/// <see cref="ITextPointer.HasValidLayout"/> 427bool ITextPointer.HasValidLayout 437/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/> 439bool ITextPointer.IsAtCaretUnitBoundary 449/// <see cref="ITextPointer.LogicalDirection"/> 451LogicalDirection ITextPointer.LogicalDirection 457/// <see cref="ITextPointer.IsAtInsertionPosition"/> 459bool ITextPointer.IsAtInsertionPosition 465/// <see cref="ITextPointer.IsFrozen"/> 467bool ITextPointer.IsFrozen 476/// <see cref="ITextPointer.Offset"/> 478int ITextPointer.Offset 488/// <see cref="ITextPointer.CharOffset"/> 490int ITextPointer.CharOffset
System\Windows\Documents\Paragraph.cs (2)
247ITextPointer navigator = paragraph.ContentStart.CreatePointer(); 248ITextPointer end = paragraph.ContentEnd;
System\Windows\Documents\RubberbandSelector.cs (3)
318private ITextPointer _GetTextPosition(FixedNode node, int charIndex) 616public ITextPointer first; 617public ITextPointer second;
System\Windows\Documents\Speller.cs (73)
106internal SpellingError GetError(ITextPointer position, LogicalDirection direction, bool forceEvaluation) 108ITextPointer start; 109ITextPointer end; 140internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 189ExpandToWordBreakAndContext(error.Start, LogicalDirection.Backward, language, out ITextPointer contentStart, out ITextPointer contextStart); 190ExpandToWordBreakAndContext(error.End, LogicalDirection.Forward, language, out ITextPointer contentEnd, out ITextPointer contextEnd); 229ITextPointer errorStart; 230ITextPointer errorEnd; 538ITextPointer start; 539ITextPointer end; 610private bool GetNextScanRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 612ITextPointer rawStart; 613ITextPointer rawEnd; 640private void GetNextScanRangeRaw(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 669private void AdjustScanRangeAroundComposition(ITextPointer rawStart, ITextPointer rawEnd, 670out ITextPointer start, out ITextPointer end) 689ITextPointer wordBreakLeft; 690ITextPointer wordBreakRight; 691ITextPointer caretPosition; 755private ScanStatus ScanRange(ITextPointer start, ITextPointer end, long timeLimit) 757ITextPointer contextStart; 758ITextPointer contextEnd; 759ITextPointer contentStart; 760ITextPointer contentEnd; 1009ITextPointer timeoutPosition = data.TextMap.MapOffsetToPosition(timeOutOffset); 1037ITextPointer errorStart; 1038ITextPointer errorEnd; 1081private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language, 1082out ITextPointer contentPosition, out ITextPointer contextPosition) 1084ITextPointer start; 1085ITextPointer end; 1086ITextPointer outwardPosition; 1087ITextPointer inwardPosition; 1311private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError) 1313ITextPointer closestErrorPosition; 1314ITextPointer searchPosition; 1315ITextPointer start; 1316ITextPointer end; 1351ITextPointer closestLanguageTransition = GetNextLanguageTransition(position, direction, language, searchPosition); 1383private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition) 1385ITextPointer navigator = position.CreatePointer(); 1460private void ScanPosition(ITextPointer position, LogicalDirection direction) 1462ITextPointer start; 1463ITextPointer end; 1480private XmlLanguage GetCurrentLanguage(ITextPointer position) 1491private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language) 1641internal TextMap(ITextPointer contextStart, ITextPointer contextEnd, 1642ITextPointer contentStart, ITextPointer contentEnd) 1644ITextPointer position; 1756internal ITextPointer MapOffsetToPosition(int offset) 1792private bool IsAdjacentToFormatElement(ITextPointer pointer) 1816private readonly ITextPointer _basePosition; 1841internal ScanStatus(long timeLimit, ITextPointer startPosition) 1868internal ITextPointer TimeoutPosition 1875internal ITextPointer StartPosition 1884private readonly ITextPointer _startPosition; 1888private ITextPointer _timeoutPosition;
System\Windows\Documents\SpellerError.cs (6)
27internal SpellingError(Speller speller, ITextPointer start, ITextPointer end) 110internal ITextPointer Start 121internal ITextPointer End 143private readonly ITextPointer _start; 146private readonly ITextPointer _end;
System\Windows\Documents\SpellerHighlightLayer.cs (4)
82internal void FireChangedEvent(ITextPointer start, ITextPointer end) 198internal SpellerHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
System\Windows\Documents\SpellerStatusTable.cs (29)
35internal SpellerStatusTable(ITextPointer textContainerStart, SpellerHighlightLayer highlightLayer) 71ITextPointer end = e.ITextPosition.CreatePointer(e.Count); 81internal void GetFirstDirtyRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 106internal void MarkCleanRange(ITextPointer start, ITextPointer end) 113internal void MarkDirtyRange(ITextPointer start, ITextPointer end) 121internal void MarkErrorRange(ITextPointer start, ITextPointer end) 243out ITextPointer start, out ITextPointer end) 378private void MarkRange(ITextPointer start, ITextPointer end, RunType runType) 434private void AddRun(int index, ITextPointer start, ITextPointer end, RunType runType) 511ITextPointer errorStart; 512ITextPointer errorEnd; 552ITextPointer start; 553ITextPointer end; 584private void OnContentRemoved(ITextPointer position) 622ITextPointer runPosition = GetRun(i).Position; 652ITextPointer errorStart; 653ITextPointer errorEnd; 748private ITextPointer GetRunEndPositionDynamic(int index) 796internal Run(ITextPointer position, RunType runType) 802internal ITextPointer Position 814private ITextPointer _position;
System\Windows\Documents\StaticTextPointer.cs (2)
44internal ITextPointer CreateDynamicTextPointer(LogicalDirection direction) 100internal int CompareTo(ITextPointer position)
System\Windows\Documents\TextContainer.cs (6)
428ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 445ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 472ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 692int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 1697ITextPointer ITextContainer.Start 1705ITextPointer ITextContainer.End
System\Windows\Documents\TextContainerChangeEventArgs.cs (4)
24internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange) : 29internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 50internal ITextPointer ITextPosition 119private readonly ITextPointer _textPosition;
System\windows\Documents\TextEditor.cs (8)
398internal SpellingError GetSpellingErrorAtPosition(ITextPointer position, LogicalDirection direction) 410internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 467XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 490FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 1389internal ITextPointer _NextLineAdvanceMovingPosition 1471ITextPointer cursorPosition; 2052private ITextPointer _nextLineAdvanceMovingPosition;
System\windows\Documents\TextEditorContextMenu.cs (4)
168ITextPointer position = null; 258private static void GetClippedPositionOffsets(TextEditor This, ITextPointer position, LogicalDirection direction, 397private static ITextPointer GetContentPosition(ITextPointer position)
System\windows\Documents\TextEditorDragDrop.cs (6)
126ITextPointer cursorPosition = this.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 404ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 435private ITextPointer GetDropPosition(Visual target, Point point) 447ITextPointer dropPosition = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/true); 534ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 604private bool IsSelectionContainsDropPosition(ITextSelection selection, ITextPointer dropPosition)
System\windows\Documents\TextEditorMouse.cs (6)
64ITextPointer cursorPosition = This.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 125ITextPointer position; 483ITextPointer snappedCursorPosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true); 509ITextPointer acceleratedCursorPosition = null; // cursorPosition corrected to accelerate scrolling 712ITextPointer mouseMovePosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false); 730ITextPointer otherEdgePosition = mouseMovePosition.GetNextContextPosition(mouseMovePosition.LogicalDirection);
System\windows\Documents\TextEditorSelection.cs (72)
102internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position) 112ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward); 114ITextPointer lineEnd = position.CreatePointer(LogicalDirection.Backward); 267ITextPointer position = TextEditorSelection.GetEndInner(This); 277ITextPointer originalMovingPosition; 289ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved); 311ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition); 312ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward); 356ITextPointer position = TextEditorSelection.GetStartInner(This); 366ITextPointer originalMovingPosition; 378ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved); 401ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition); 402ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward); 453ITextPointer position = TextEditorSelection.GetEndInner(This); 458ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 505ITextPointer position = TextEditorSelection.GetStartInner(This); 509ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 558ITextPointer position = TextEditorSelection.GetEndInner(This); 563ITextPointer movingPosition; 572ITextPointer targetPosition; 675ITextPointer position = TextEditorSelection.GetStartInner(This); 680ITextPointer movingPosition; 689ITextPointer targetPosition; 781ITextPointer startPositionInner = TextEditorSelection.GetStartInner(This); 802ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward); 833ITextPointer endPositionInner = TextEditorSelection.GetEndInner(This); 854ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation); 1019ITextPointer originalMovingPosition; 1040ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition); 1068ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition); 1069ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward); 1105private static void AdjustMovingPositionForSelectDownByLine(TextEditor This, ITextPointer newMovingPosition, ITextPointer originalMovingPosition, double suggestedX) 1191ITextPointer originalMovingPosition; 1212ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition); 1258ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition); 1259ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward); 1315ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 1356ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 1389ITextPointer movingPosition; 1400ITextPointer targetPosition; 1485ITextPointer movingPosition; 1496ITextPointer targetPosition; 1585ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This); 1630ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This); 1652ITextPointer destination = lineRange.End; 1673ITextPointer newDestination = destination.GetNextInsertionPosition(LogicalDirection.Forward); 2020ITextPointer position = textEditor.Selection.MovingPosition.CreatePointer(); 2056ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2126ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer(); 2146ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer(); 2190ITextPointer wordBoundary = textEditor.Selection.MovingPosition.CreatePointer(); 2218private static Double GetSuggestedX(TextEditor This, out ITextPointer innerMovingPosition) 2266private static Double GetSuggestedYFromPosition(TextEditor This, ITextPointer position) 2300private static ITextPointer GetMovingPositionInner(TextEditor This) 2302ITextPointer movingPosition = This.Selection.MovingPosition; 2330private static ITextPointer GetStartInner(TextEditor This) 2342private static ITextPointer GetEndInner(TextEditor This) 2344ITextPointer end = This.Selection.End; 2353private static ITextPointer GetPositionAtLineStart(ITextPointer position) 2362private static ITextPointer GetPositionAtLineEnd(ITextPointer position) 2369private static void ExtendSelectionAndBringIntoView(ITextPointer position, TextEditor textEditor) 2375private static void BringIntoView(ITextPointer position, TextEditor textEditor) 2395ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward); 2407private static ITextPointer AdjustPositionAtTableRowEnd(ITextPointer position) 2411ITextPointer cellEnd = position.GetNextInsertionPosition(LogicalDirection.Backward); 2422private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position) 2424ITextPointer navigator = position.CreatePointer(); 2439private static double GetAbsoluteXOffset(ITextView textview, ITextPointer position)
System\windows\Documents\TextEditorSpelling.cs (15)
35internal static SpellingError GetSpellingErrorAtPosition(TextEditor This, ITextPointer position, LogicalDirection direction) 61ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 100internal static ITextPointer GetNextSpellingErrorPosition(TextEditor This, ITextPointer position, LogicalDirection direction) 135ITextPointer textStart; 136ITextPointer textEnd; 139ITextPointer caretPosition; 179private static bool IsErrorAtNonMergeableInlineEdge(SpellingError spellingError, out ITextPointer textStart, out ITextPointer textEnd) 252private static ITextPointer GetNextTextPosition(ITextPointer position, ITextPointer limit, LogicalDirection direction, out char character) 301private static ITextPointer GetNextNonWhiteSpacePosition(ITextPointer position, ITextPointer limit)
System\windows\Documents\TextEditorTyping.cs (12)
530ITextPointer position = This.Selection.End; 533ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); 580ITextPointer position = This.Selection.Start; 584ITextPointer backspacePosition = null; 610ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Backward); 774private static bool IsAtIndentedParagraphOrBlockUIContainerStart(ITextPointer position) 796private static bool IsAtListItemStart(ITextPointer position) 831private static bool IsAtListItemChildStart(ITextPointer position, bool emptyChildOnly) 844ITextPointer navigator = position.CreatePointer(); 895ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 954ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 1543ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\TextFindEngine.cs (17)
80ITextPointer findContainerStartPosition, 81ITextPointer findContainerEndPosition, 169ITextPointer startPosition, 170ITextPointer endPosition, 182ITextPointer navigator; 212ITextPointer startFindTextPosition = navigator.CreatePointer(); 267ITextPointer startMatchPosition = startFindTextPosition.CreatePointer(); 270ITextPointer endMatchPosition = startFindTextPosition.CreatePointer(); 295private static void GetContextualInformation(ITextPointer position, int oppositeEndOffset, 298ITextPointer oppositeEndPosition = position.CreatePointer(oppositeEndOffset, position.LogicalDirection); 314private static bool HasNeighboringSeparatorChar(ITextPointer position, LogicalDirection direction) 316ITextPointer nextPosition = position.GetNextInsertionPosition(direction); 325ITextPointer temp = position; 633ITextPointer startPosition, 634ITextPointer endPosition, 635ITextPointer navigator, 886private static bool IsAdjacentToFormatElement(ITextPointer pointer, LogicalDirection direction)
System\Windows\Documents\TextParentUndoUnit.cs (6)
38internal TextParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition) 112ITextPointer anchorPosition = textContainer.CreatePointerAtOffset(_undoAnchorPositionOffset, _undoAnchorPositionDirection); 113ITextPointer movingPosition = textContainer.CreatePointerAtOffset(_undoMovingPositionOffset, _undoMovingPositionDirection); 179internal void RecordRedoSelectionState(ITextPointer anchorPosition, ITextPointer movingPosition)
System\Windows\Documents\TextPointer.cs (75)
986return (TextPointer)((ITextPointer)this).GetNextContextPosition(direction); 1059return (TextPointer)((ITextPointer)this).GetInsertionPosition(direction); 1126return (TextPointer)((ITextPointer)this).GetNextInsertionPosition(direction); 2342void ITextPointer.SetLogicalDirection(LogicalDirection direction) 2347int ITextPointer.CompareTo(ITextPointer position) 2352int ITextPointer.CompareTo(StaticTextPointer position) 2377int ITextPointer.GetOffsetToPosition(ITextPointer position) 2382TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 2387int ITextPointer.GetTextRunLength(LogicalDirection direction) 2393string ITextPointer.GetTextInRun(LogicalDirection direction) 2398int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 2403object ITextPointer.GetAdjacentElement(LogicalDirection direction) 2408Type ITextPointer.GetElementType(LogicalDirection direction) 2423bool ITextPointer.HasEqualScope(ITextPointer position) 2445ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 2447ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2460ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 2462ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2471ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 2473ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2480ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 2482ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2494object ITextPointer.GetValue(DependencyProperty formattingProperty) 2519object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 2538LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 2556ITextPointer ITextPointer.CreatePointer() 2558return ((ITextPointer)this).CreatePointer(0, this.LogicalDirection); 2561StaticTextPointer ITextPointer.CreateStaticPointer() 2569ITextPointer ITextPointer.CreatePointer(int offset) 2571return ((ITextPointer)this).CreatePointer(offset, this.LogicalDirection); 2574ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 2576return ((ITextPointer)this).CreatePointer(0, gravity); 2579ITextPointer ITextPointer.CreatePointer(int offset, LogicalDirection gravity) 2585void ITextPointer.Freeze() 2590ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 2596bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 2601int ITextPointer.MoveByOffset(int offset) 2606void ITextPointer.MoveToPosition(ITextPointer position) 2611void ITextPointer.MoveToElementEdge(ElementEdge edge) 2647int ITextPointer.MoveToLineBoundary(int count) 2653Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 2658bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 2663bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 2771void ITextPointer.InsertTextInRun(string textData) 2781void ITextPointer.DeleteContentToPosition(ITextPointer limit) 2795/// <see cref="ITextPointer.ValidateLayout"/> 2796bool ITextPointer.ValidateLayout() 2801/// <see cref="ITextPointer.ValidateLayout"/> 3608Type ITextPointer.ParentType 3625ITextContainer ITextPointer.TextContainer 3634bool ITextPointer.HasValidLayout 3643bool ITextPointer.IsAtCaretUnitBoundary 3672LogicalDirection ITextPointer.LogicalDirection 3687bool ITextPointer.IsAtInsertionPosition 3693bool ITextPointer.IsFrozen 3702int ITextPointer.Offset 3723int ITextPointer.CharOffset
System\Windows\Documents\TextPointerBase.cs (79)
35internal static ITextPointer Min(ITextPointer position1, ITextPointer position2) 49internal static ITextPointer Max(ITextPointer position1, ITextPointer position2) 55internal static string GetTextInRun(ITextPointer position, LogicalDirection direction) 73internal static int GetTextWithLimit(ITextPointer thisPointer, LogicalDirection direction, char[] textBuffer, int startIndex, int count, ITextPointer limit) 131internal static bool IsAtInsertionPosition(ITextPointer position) 139internal static bool IsAtPotentialRunPosition(ITextPointer position) 175private static bool IsAtPotentialRunPosition(ITextPointer backwardPosition, ITextPointer forwardPosition) 224internal static bool IsAtPotentialParagraphPosition(ITextPointer position) 249internal static bool IsBeforeFirstTable(ITextPointer position) 261internal static bool IsInBlockUIContainer(ITextPointer position) 266internal static bool IsAtBlockUIContainerStart(ITextPointer position) 272internal static bool IsAtBlockUIContainerEnd(ITextPointer position) 279private static bool IsInAncestorScope(ITextPointer position, Type allowedParentType, Type limitingType) 281ITextPointer navigator = position.CreatePointer(); 298internal static bool IsInAnchoredBlock(ITextPointer position) 304internal static bool IsInHyperlinkScope(ITextPointer position) 312internal static ITextPointer GetFollowingNonMergeableInlineContentStart(ITextPointer position) 314ITextPointer navigator = position.CreatePointer(); 383internal static bool IsAtNonMergeableInlineStart(ITextPointer position) 389internal static bool IsAtNonMergeableInlineEnd(ITextPointer position) 396internal static bool IsPositionAtNonMergeableInlineBoundary(ITextPointer position) 401internal static bool IsAtFormatNormalizedPosition(ITextPointer position, LogicalDirection direction) 406internal static bool IsAtInsertionPosition(ITextPointer position, LogicalDirection direction) 411internal static bool IsAtNormalizedPosition(ITextPointer position, LogicalDirection direction, bool respectCaretUnitBoundaries) 448internal static int GetOffset(ITextPointer thisPosition) 466internal static bool IsAtWordBoundary(ITextPointer thisPosition, LogicalDirection insideWordDirection) 469ITextPointer navigator = thisPosition.CreatePointer(); 507internal static TextSegment GetWordRange(ITextPointer thisPosition) 521internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction) 537ITextPointer navigator = thisPosition.CreatePointer(); 540ITextPointer wordEnd = navigator; 543ITextPointer wordStart; 583private static ITextPointer RestrictWithinBlock(ITextPointer position, ITextPointer limit, LogicalDirection direction) 618internal static bool IsNextToPlainLineBreak(ITextPointer thisPosition, LogicalDirection direction) 646internal static bool IsNextToRichLineBreak(ITextPointer thisPosition, LogicalDirection direction) 655internal static bool IsNextToParagraphBreak(ITextPointer thisPosition, LogicalDirection direction) 666internal static bool IsNextToAnyBreak(ITextPointer thisPosition, LogicalDirection direction) 679internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView) 708internal static bool IsAtRowEnd(ITextPointer thisPosition) 720internal static bool IsAfterLastParagraph(ITextPointer thisPosition) 728internal static bool IsAtParagraphOrBlockUIContainerStart(ITextPointer pointer) 795internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count) 801internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart) 803ITextPointer position; 853internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction) 859internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope) 871ITextPointer insertionPosition = thisPointer.GetInsertionPosition(direction); 920internal static bool MoveToFormatNormalizedPosition(ITextPointer thisNavigator, LogicalDirection direction) 933internal static bool MoveToInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 956internal static bool MoveToNextInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 964ITextPointer initialPosition = thisNavigator.CreatePointer(); 1064internal static bool MoveToNextWordBoundary(ITextPointer thisNavigator, LogicalDirection movingDirection) 1069ITextPointer startPosition = thisNavigator.CreatePointer(); 1096internal static ITextPointer GetFrozenPointer(ITextPointer thisPointer, LogicalDirection logicalDirection) 1098ITextPointer frozenPointer; 1113/// <see cref="ITextPointer.ValidateLayout"/> 1114internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView) 1135private static bool NormalizePosition(ITextPointer thisNavigator, LogicalDirection direction, bool respectCaretUnitBoundaries) 1251private static int LeaveNonMergeableInlineBoundary(ITextPointer thisNavigator, LogicalDirection direction, int symbolCount) 1280private static int LeaveNonMergeableAncestor(ITextPointer thisNavigator, LogicalDirection direction) 1298private static bool IsAtNormalizedPosition(ITextPointer position, bool respectCaretUnitBoundaries) 1324private static bool IsAtCaretUnitBoundary(ITextPointer position) 1357private static bool IsInsideCompoundSequence(ITextPointer position) 1409private static void GetWordBreakerText(ITextPointer pointer, out char[] text, out int position) 1416ITextPointer navigator; 1466private static bool IsAtNonMergeableInlineEdge(ITextPointer position, LogicalDirection direction) 1472ITextPointer navigator = position.CreatePointer(); 1486private static BorderingElementCategory GetBorderingElementCategory(ITextPointer position, LogicalDirection direction) 1512private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType)
System\Windows\Documents\TextRange.cs (16)
51this((ITextPointer)position1, (ITextPointer)position2) 55internal TextRange(ITextPointer position1, ITextPointer position2) 73this((ITextPointer)position1, (ITextPointer)position2) 81internal TextRange(ITextPointer position1, ITextPointer position2, bool ignoreTextUnitBoundaries) 123bool ITextRange.Contains(ITextPointer position) 133void ITextRange.Select(ITextPointer position1, ITextPointer position2) 143void ITextRange.SelectWord(ITextPointer position) 153void ITextRange.SelectParagraph(ITextPointer position) 312ITextPointer ITextRange.Start 325ITextPointer ITextRange.End 699internal void SelectParagraph(ITextPointer position)
System\Windows\Documents\TextRangeBase.cs (56)
57internal static bool Contains(ITextRange thisRange, ITextPointer textPointer) 112internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2) 151internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition) 183internal static void SelectWord(ITextRange thisRange, ITextPointer position) 190ITextPointer normalizedPosition = position.CreatePointer(); 233internal static void SelectParagraph(ITextRange thisRange, ITextPointer position) 237ITextPointer start; 238ITextPointer end; 287ITextPointer nextPosition = thisRange.End.CreatePointer(); 304ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward); 326internal static void FindParagraphOrListItemBoundaries(ITextPointer position, out ITextPointer start, out ITextPointer end) 340private static void SkipParagraphContent(ITextPointer navigator, LogicalDirection direction) 398ITextPointer position = textSegment.Start.CreatePointer(); 430private static object GetCharacterValueFromPosition(ITextPointer pointer, DependencyProperty formattingProperty) 467ITextPointer position = textSegment.Start.CreatePointer(); 510ITextPointer startNavigator = thisRange.Start.CreatePointer(); 511ITextPointer endNavigator = thisRange.End.CreatePointer(); 649internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition) 661internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition, ref Char[] charArray) 669ITextPointer navigator = startPosition.CreatePointer(); 744private static void PlainConvertTextRun(StringBuilder textBuffer, ITextPointer navigator, ITextPointer endPosition, ref Char[] charArray) 756private static void PlainConvertParagraphEnd(StringBuilder textBuffer, ITextPointer navigator) 793private static void PlainConvertListStart(ITextPointer navigator, ref Stack<int> listItemCounter) 807private static void PlainConvertListEnd(ITextPointer navigator, ref Stack<int> listItemCounter) 821private static void PlainConvertListItemStart(StringBuilder textBuffer, ITextPointer navigator, ref Stack<int> listItemCounter) 855private static void PlainConvertAccessKey(StringBuilder textBuffer, ITextPointer navigator) 1186internal static ITextPointer GetStart(ITextRange thisRange) 1194internal static ITextPointer GetEnd(ITextRange thisRange) 1249ITextPointer start = thisRange.Start; 1286ITextPointer explicitInsertPosition = null; 1347ITextPointer insertPosition = explicitInsertPosition ?? thisRange.Start; 1371ITextPointer newStart = insertPosition.GetFrozenPointer(LogicalDirection.Backward); 1372ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward); 1615ITextPointer start = range.Start.CreatePointer(); 1624ITextPointer end = range.End.CreatePointer(); 1698private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end) 1782private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1798private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1800ITextPointer normalizedPosition; 1917ITextPointer start = thisRange._TextSegments[0].Start; 1918ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 1980private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged) 2014ITextPointer newStart = position1; 2015ITextPointer newEnd = position2; 2037ITextPointer finalStart = thisRange._TextSegments[0].Start; 2038ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeEdit.cs (10)
495object outerContextValue = ((ITextPointer)source.ElementStart).GetValue(nonFormattingCharacterProperties[i]); 1245internal static ITextPointer GetAdjustedRangeEnd(ITextPointer rangeStart, ITextPointer rangeEnd) 1390internal static void DeleteInlineContent(ITextPointer start, ITextPointer end) 1407internal static void DeleteParagraphContent(ITextPointer start, ITextPointer end) 1635((ITextPointer)nextPosition).MoveToElementEdge(edgeAfterElement); 1641((ITextPointer)nextPosition).MoveToElementEdge(edgeBeforeElement);
System\Windows\Documents\TextRangeEditTables.cs (4)
177internal static bool IsTableStructureCrossed(ITextPointer anchorPosition, ITextPointer movingPosition) 396internal static void IdentifyValidBoundaries(ITextRange range, out ITextPointer start, out ITextPointer end)
System\Windows\Documents\TextRangeSerialization.cs (37)
70ITextPointer commonAncestor = FindSerializationCommonAncestor(range); 159if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 188private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements) 198ITextPointer textReader = rangeStart.CreatePointer(); 242ITextPointer ptr = textReader.CreatePointer(); 276ITextPointer endPointer = textReader.CreatePointer(); 352ITextPointer pointer = textSegment.Start.CreatePointer(); 414private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 426ITextPointer previousLevel = thisElement.CreatePointer(); 444ITextPointer position = thisElement.CreatePointer(); 463ITextPointer position = thisElement.CreatePointer(); 487ITextPointer position = thisElement.CreatePointer(); 534private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 643private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 763private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 766ITextPointer outerContext = null; 828private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 833ITextPointer parentContext = onlyAffected ? null : context.CreatePointer(); 947private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties) 1665private static ITextPointer FindSerializationCommonAncestor(ITextRange range) 1668ITextPointer commonAncestor = range.Start.CreatePointer(); 1669ITextPointer runningEnd = range.End.CreatePointer(); 1701ITextPointer hyperlinkStart = GetHyperlinkStart(range); 1718private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range) 1734ITextPointer navigator = commonAncestor.CreatePointer(); 1842private static bool IsPartialNonTypographic(ITextPointer textReader, ITextPointer rangeEnd) 1848ITextPointer elementNavigation = textReader.CreatePointer(); 1849ITextPointer elementEnd = textReader.CreatePointer(); 1870private static bool IsHyperlinkInvalid(ITextPointer textReader, ITextPointer rangeEnd) 1881ITextPointer hyperlinkNavigation = textReader.CreatePointer(); 1882ITextPointer hyperlinkEnd = textReader.CreatePointer(); 1914private static ITextPointer GetHyperlinkStart(ITextRange range) 1916ITextPointer hyperlinkStart = null;
System\Windows\Documents\TextSchema.cs (2)
88internal static bool IsInTextContent(ITextPointer position) 215internal static bool IsValidChild(ITextPointer position, Type childType)
System\windows\Documents\TextSegment.cs (9)
42internal TextSegment(ITextPointer startPosition, ITextPointer endPosition) : 59internal TextSegment(ITextPointer startPosition, ITextPointer endPosition, bool preserveLogicalDirection) 93internal bool Contains(ITextPointer position) 111internal ITextPointer Start 122internal ITextPointer End 157private readonly ITextPointer _start; 160private readonly ITextPointer _end;
System\windows\Documents\TextSelection.cs (44)
84void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition) 101void ITextRange.SelectWord(ITextPointer position) 120void ITextRange.SelectParagraph(ITextPointer position) 240ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 378ITextPointer ITextSelection.AnchorPosition 391ITextPointer ITextSelection.MovingPosition 396ITextPointer movingPosition; 438void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace) 453ITextPointer reversePosition = caretPosition.CreatePointer(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward); 545void ITextSelection.ExtendToPosition(ITextPointer position) 553ITextPointer anchorPosition = thisSelection.AnchorPosition; 575ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 576ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 577ITextPointer newMovingPosition; 640private ITextPointer GetNextTextSegmentInsertionPosition(LogicalDirection direction) 664ITextPointer position = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/false); 775void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 792void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection) 812ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 820ITextPointer startPosition; 821ITextPointer movingPosition; 853private bool BeginMouseSelectionProcess(ITextPointer cursorPosition) 879private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange) 1064ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer(); 1831private void SetActivePositions(ITextPointer anchorPosition, ITextPointer movingPosition) 1871private MovingEdge ConvertToMovingEdge(ITextPointer anchorPosition, ITextPointer movingPosition) 1923private void MoveSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 1933ITextPointer movingPosition = null; 1959private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect) 2102ITextPointer caretPosition = IdentifyCaretPosition(this); 2152private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection) 2154ITextPointer caretPosition = currentTextSelection.MovingPosition; 2193private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition) 2250ITextPointer nextCharacterPosition; 2343private static double CalculateScrollToOriginPosition(TextEditor textEditor, ITextPointer caretPosition, double horizontalCaretPosition) 2655private ITextPointer PropertyPosition 2660ITextPointer position = null; 2729private ITextPointer _anchorPosition; 2748private ITextPointer _previousCursorPosition; 2751private ITextPointer _reenterPosition;
System\windows\Documents\TextSelectionHighlightLayer.cs (12)
179ITextPointer newStart; 180ITextPointer newEnd; 181ITextPointer invalidRangeLeftStart; 182ITextPointer invalidRangeLeftEnd; 183ITextPointer invalidRangeRightStart; 184ITextPointer invalidRangeRightEnd; 325internal TextSelectionHighlightChangedEventArgs(ITextPointer invalidRangeLeftStart, ITextPointer invalidRangeLeftEnd, 326ITextPointer invalidRangeRightStart, ITextPointer invalidRangeRightEnd) 389private ITextPointer _oldStart; 390private ITextPointer _oldEnd;
System\Windows\Documents\TextServicesDisplayAttribute.cs (4)
59internal void Apply(ITextPointer start, ITextPointer end) 84internal static Color GetColor(UnsafeNativeMethods.TF_DA_COLOR dacolor, ITextPointer position) 104internal Color GetLineColor(ITextPointer position)
System\Windows\Documents\TextServicesDisplayAttributePropertyRanges.cs (4)
60ITextPointer start; 61ITextPointer end; 85ITextPointer start; 86ITextPointer end;
System\Windows\Documents\TextServicesPropertyRanges.cs (4)
71ITextPointer start; 72ITextPointer end; 110out ITextPointer start, 111out ITextPointer end)
System\Windows\Documents\TextStore.cs (71)
348ITextPointer start; 349ITextPointer end; 393ITextPointer navigator; 394ITextPointer limit; 483ITextPointer start; 484ITextPointer end; 643ITextPointer startNavigator; 644ITextPointer endNavigator; 676ITextPointer start; 677ITextPointer end; 862ITextPointer position; 935ITextPointer position; 977ITextPointer positionCur = position.CreatePointer(LogicalDirection.Backward); 978ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward); 1010ITextPointer startPointer; 1011ITextPointer endPointer; 1064ITextPointer navigator = startPointer.CreatePointer(); 1073ITextPointer end; 1079ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start; 1227ITextPointer start; 1228ITextPointer end; 1325ITextPointer oldStart; 1326ITextPointer oldEnd; 1330ITextPointer newStart = null; 1331ITextPointer newEnd = null; 1394ITextPointer start; 1395ITextPointer end; 1479ITextPointer navigator; 1752ITextPointer compositionStart; 1753ITextPointer compositionEnd; 1816private bool GetFnReconv(ITextPointer textStart, ITextPointer textEnd, out UnsafeNativeMethods.ITfFnReconversion funcReconv, out UnsafeNativeMethods.ITfRange rangeNew) 1895internal ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 1899ITextPointer pointer = this.TextContainer.CreatePointerAtCharOffset(charOffset, direction); 2439private static bool WalkTextRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2500private static bool WalkObjectRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2542private static bool WalkRegionBoundary(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2888private void TextPositionsFromITfRange(UnsafeNativeMethods.ITfRange range, out ITextPointer start, out ITextPointer end) 2908private void GetCompositionPositions(out ITextPointer start, out ITextPointer end) 2924private void GetCompositionPositions(UnsafeNativeMethods.ITfCompositionView view, out ITextPointer start, out ITextPointer end) 2990ITextPointer positionCurrent; 2991ITextPointer positionNext; 3107private CompositionParentUndoUnit OpenCompositionUndoUnit(ITextPointer compositionStart, ITextPointer compositionEnd) 3127ITextPointer start; 3159private static Rect GetLineBounds(ITextPointer start, ITextPointer end) 3172ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward); 3347private void BreakTypingSequence(ITextPointer caretPosition) 3361private static void GetAdjustedSelection(ITextPointer startIn, ITextPointer endIn, out ITextPointer startOut, out ITextPointer endOut) 3444private void GetNormalizedRange(int startCharOffset, int endCharOffset, out ITextPointer start, out ITextPointer end) 3627ITextPointer start = this.TextContainer.CreatePointerAtOffset(record.StartOffsetBefore, LogicalDirection.Backward); 3628ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward); 3946ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward); 3947ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward); 3967ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(imeSelectionAnchorOffset, LogicalDirection.Backward); 3968ITextPointer moving = this.TextContainer.CreatePointerAtOffset(imeSelectionMovingOffset, LogicalDirection.Backward); 4332internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit) 4547private ITextPointer _previousCompositionStart; 4550private ITextPointer _previousCompositionEnd;
System\Windows\Documents\ValidationHelper.cs (4)
27internal static void VerifyPosition(ITextContainer tree, ITextPointer position) 35internal static void VerifyPosition(ITextContainer container, ITextPointer position, string paramName) 53internal static void VerifyPositionPair(ITextPointer startPosition, ITextPointer endPosition)