MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (36)
70ITextPointer start = highlightRange.Range.Start;
71ITextPointer end = highlightRange.Range.End;
90ITextPointer invalidateStart;
91ITextPointer invalidateEnd;
122ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
123ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
173ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
174ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
201ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
202ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
273ITextPointer dynamicPosition;
339private void ProcessOverlapingSegments(IHighlightRange highlightRange, out ITextPointer invalidateStart, out ITextPointer invalidateEnd)
452private ITextPointer GetNextForwardPosition(StaticTextPointer pos)
476private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
495void GetSpannedSegments(ITextPointer start, ITextPointer end, out int startSeg, out int endSeg)
553internal AnnotationHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
603internal HighlightSegment(ITextPointer start, ITextPointer end, IHighlightRange owner)
619internal HighlightSegment(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners)
634private void Init(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners)
760internal IList<HighlightSegment> Split(ITextPointer ps, LogicalDirection side)
790internal IList<HighlightSegment> Split(ITextPointer ps1, ITextPointer ps2, IHighlightRange newOwner)
983ITextPointer cursor = _segment.Start.CreatePointer();
984ITextPointer segmentStart = null;
1048private void OpenSegment(ref ITextPointer segmentStart, ITextPointer cursor)
1059private void CloseSegment(ref ITextPointer segmentStart, ITextPointer cursor, ITextPointer end)
1070ITextPointer segmentEnd = cursor.GetInsertionPosition(LogicalDirection.Backward);
MS\Internal\Documents\DocumentPageTextView.cs (21)
96internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
115internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
143internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
169internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
171ITextPointer positionOut;
198internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
200ITextPointer positionOut = position;
239internal override bool IsAtCaretUnitBoundary(ITextPointer position)
256internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
273internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
290internal override TextSegment GetLineRange(ITextPointer position)
307internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
324internal override bool Contains(ITextPointer position)
404/// <see cref="ITextView.Validate(ITextPointer)"/>
406internal override bool Validate(ITextPointer position)
MS\Internal\Documents\MultiPageTextView.cs (47)
90internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
92ITextPointer position = null;
114internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
143internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
161ITextPointer startPositionInTextSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start;
162ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
186internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
201internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
214internal override bool IsAtCaretUnitBoundary(ITextPointer position)
236internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
238ITextPointer positionOut = null;
258internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
260ITextPointer positionOut = null;
280internal override TextSegment GetLineRange(ITextPointer position)
302internal override bool Contains(ITextPointer position)
315internal override void BringPositionIntoViewAsync(ITextPointer position, object userState)
379ITextPointer position;
478internal override void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
501internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
601internal ITextView GetPageTextViewFromPosition(ITextPointer position)
753ITextPointer newPosition;
825ITextPointer newPosition;
862private ITextPointer GetPositionAtNextLineCore(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved, out int pageNumber)
864ITextPointer positionOut;
966private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber)
969ITextPointer positionOut = position;
1020private ITextPointer GetPositionAtPageBoundary(bool pageTop, ITextView pageTextView, ITextPointer position, double suggestedX)
1024ITextPointer positionOut;
1134private DocumentPageTextView GetTextViewFromPosition(ITextPointer position)
1361ITextPointer newPosition;
1592internal BringPositionIntoViewRequest(ITextPointer position, object userState)
1598internal readonly ITextPointer Position;
1614internal ITextPointer Position;
1622internal BringLineIntoViewRequest(ITextPointer position, double suggestedX, int count, object userState)
1632internal readonly ITextPointer Position;
1635internal ITextPointer NewPosition;
1646internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState)
1656internal readonly ITextPointer Position;
1659internal ITextPointer NewPosition;
MS\Internal\Documents\ParagraphResult.cs (29)
75internal virtual bool Contains(ITextPointer position, bool strict)
94internal ITextPointer StartPosition
106internal ITextPointer EndPosition
239internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
348internal Rect GetRectangleFromTextPosition(ITextPointer position)
361internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
370internal bool IsAtCaretUnitBoundary(ITextPointer position)
382internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
391internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
405internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
419internal override bool Contains(ITextPointer position, bool strict)
628internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position)
640internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
652internal CellParaClient GetCellParaClientFromPosition(ITextPointer position)
704internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
1080internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
1087ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition;
1252internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
1259ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition;
1336internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
MS\Internal\Documents\TextBoxView.cs (40)
556ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
563ITextPointer position;
581Rect ITextView.GetRectangleFromTextPosition(ITextPointer position)
635Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
645Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
701ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
724ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
734ITextPointer nextLinePosition;
756ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
771bool ITextView.IsAtCaretUnitBoundary(ITextPointer position)
810ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
879ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
887ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position)
927ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
935TextSegment ITextView.GetLineRange(ITextPointer position)
942ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
943ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward);
951ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end)
961bool ITextView.Contains(ITextPointer position)
969void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState)
991void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
1002void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
1039/// <see cref="ITextView.Validate(ITextPointer)"/>
1041bool ITextView.Validate(ITextPointer position)
1265ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward);
1266ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward);
1654private int GetLineIndexFromPosition(ITextPointer position)
1660private int GetLineIndexFromPosition(ITextPointer position, LogicalDirection direction)
1710private ITextPointer GetTextPositionFromDistance(int lineIndex, double x)
2017ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2062ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2113ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2141ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2878private bool Contains(ITextPointer position)
MS\Internal\Documents\TextContainerHelper.cs (24)
110internal bool Contains(ITextPointer position, bool strict)
150internal ITextPointer StartPosition
154ITextPointer startPosition = null;
162internal ITextPointer EndPosition
166ITextPointer endPosition = null;
308internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart)
392internal static bool IsImmediateAutomationChild(ITextPointer elementStart, ITextPointer ownerContentStart)
397ITextPointer position = elementStart.CreatePointer();
428internal static AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end, out ITextPointer elementStart, out ITextPointer elementEnd)
432ITextPointer position;
434List<ITextPointer> positionsStart, positionsEnd;
439positionsStart = new List<ITextPointer>();
455positionsEnd = new List<ITextPointer>();
535internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element)
537ITextPointer textPointer;
584internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction)
600internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject)
603ITextPointer position;
MS\Internal\Documents\TextDocumentView.cs (88)
60internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
83internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
108internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
153ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start;
154ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
223internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
225ITextPointer positionOut;
277internal override bool IsAtCaretUnitBoundary(ITextPointer position)
296internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
316internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
335internal override TextSegment GetLineRange(ITextPointer position)
354internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
383internal override bool Contains(ITextPointer position)
460internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments)
678private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements)
680ITextPointer position;
740private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText)
742ITextPointer position = null;
894private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText)
896ITextPointer position = null;
1090private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1127private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position)
1226private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1249ITextPointer startPosition,
1250ITextPointer endPosition,
1317ITextPointer startPosition,
1318ITextPointer endPosition,
1343ITextPointer startPosition,
1344ITextPointer endPosition,
1423private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1458private bool IsAtCaretUnitBoundary(ParagraphResult paragraph, ITextPointer position)
1526private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1545private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction)
1549ITextPointer nextCaretPosition = position;
1582private ITextPointer GetNextCaretUnitPosition(ParagraphResult paragraph, ITextPointer position, LogicalDirection direction)
1584ITextPointer nextCaretPosition = position;
1651private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction)
1668private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1672ITextPointer backspaceCaretPosition = position;
1703private ITextPointer GetBackspaceCaretUnitPosition(ParagraphResult paragraph, ITextPointer position)
1705ITextPointer backspaceCaretPosition = position;
1770private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2087private int GetColumnFromPosition(ReadOnlyCollection<ColumnResult> columns, ITextPointer position)
2138private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, out bool isFloatingPara)
2164private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position)
2235private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2270private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position)
2371private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2402private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position, double suggestedX, ref int count, out bool positionFound)
2407ITextPointer positionOut = position;
2620private ITextPointer GetPositionAtNextLineInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out bool positionFound)
2623ITextPointer positionOut = position;
2671private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out double newSuggestedX, out bool positionFound)
2673ITextPointer positionOut = null;
2712ITextPointer siblingColumnPosition = GetPositionAtNextLineFromSiblingColumn(columns, columnIndex, suggestedX, ref newSuggestedX, ref count);
2743private ITextPointer GetPositionAtNextLineFromSiblingPara(ReadOnlyCollection<ParagraphResult> paragraphs, int paragraphIndex, double suggestedX, ref int count)
2748ITextPointer positionOut = null;
2905private ITextPointer GetPositionAtNextLineFromSiblingTextPara(TextParagraphResult paragraph, double suggestedX, ref int count)
2907ITextPointer positionOut = null;
3023private ITextPointer GetPositionAtNextLineFromSiblingColumn(ReadOnlyCollection<ColumnResult> columns, int columnIndex, double columnSuggestedX, ref double newSuggestedX, ref int count)
3025ITextPointer positionOut = null;
3071private bool ContainsCore(ITextPointer position)
3086private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs)
3099ITextPointer startRange = start.CompareTo(tpr.StartPosition) < 0 ? tpr.StartPosition : start;
3100ITextPointer endRange = end.CompareTo(tpr.EndPosition) < 0 ? end : tpr.EndPosition;
3138private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success)
3150ITextPointer endThisPara = end.CompareTo(paragraph.EndPosition) < 0 ? end : paragraph.EndPosition;
3181private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements)
3240ITextPointer segmentEnd = _textContainer.End;
3431private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
3461private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
MS\Internal\Documents\TextParagraphView.cs (20)
57internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
59ITextPointer position;
80internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
99internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
125internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
127ITextPointer positionOut;
188internal override bool IsAtCaretUnitBoundary(ITextPointer position)
207internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
220ITextPointer positionOut = _owner.GetNextCaretUnitPosition(position, direction, dcp, lineIndex);
230internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
243ITextPointer positionOut = _owner.GetBackspaceCaretUnitPosition(position, dcp, lineIndex);
253internal override TextSegment GetLineRange(ITextPointer position)
279internal override bool Contains(ITextPointer position)
318internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText)
321ITextPointer orientedPosition;
353internal static int GetLineFromPosition(ReadOnlyCollection<LineResult> lines, ITextPointer position)
MS\Internal\Documents\TextViewBase.cs (49)
35internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
44internal virtual Rect GetRectangleFromTextPosition(ITextPointer position)
60internal abstract Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform);
65internal abstract Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition);
70internal abstract ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved);
75internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
85internal abstract bool IsAtCaretUnitBoundary(ITextPointer position);
90internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction);
95internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position);
100internal abstract TextSegment GetLineRange(ITextPointer position);
105internal virtual ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
118internal abstract bool Contains(ITextPointer position);
176internal virtual void BringPositionIntoViewAsync(ITextPointer position, object userState)
191ITextPointer position;
205internal virtual void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
207ITextPointer newPosition;
223internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
225ITextPointer newPosition;
262/// <see cref="ITextView.Validate(ITextPointer)"/>
264internal virtual bool Validate(ITextPointer position)
465ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
473Rect ITextView.GetRectangleFromTextPosition(ITextPointer position)
481Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
489Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
497ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
505ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
513bool ITextView.IsAtCaretUnitBoundary(ITextPointer position)
521ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
529ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position)
537TextSegment ITextView.GetLineRange(ITextPointer position)
545ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end)
553bool ITextView.Contains(ITextPointer position)
561void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState)
577void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
585void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
615/// <see cref="ITextView.Validate(ITextPointer)"/>
617bool ITextView.Validate(ITextPointer position)
MS\Internal\PtsHost\TextParaClient.cs (29)
660internal ITextPointer GetTextPosition(int dcp, LogicalDirection direction)
672internal Rect GetRectangleFromTextPosition(ITextPointer position)
732internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
821internal bool IsAtCaretUnitBoundary(ITextPointer position)
871internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
873ITextPointer nextCaretPosition = position;
914internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
916ITextPointer backspaceCaretPosition = position;
967internal ITextPointer GetTextPositionFromDistance(int dcpLine, double distance)
1105internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
2034ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2365ITextPointer position,
2457ITextPointer position,
2580private ITextPointer NextCaretUnitPositionFromDcpSimpleLines(
2582ITextPointer position,
2596ITextPointer nextCaretPosition = position;
2705private ITextPointer NextCaretUnitPositionFromDcpCompositeLines(
2707ITextPointer position,
2721ITextPointer nextCaretPosition = position;
2871private ITextPointer BackspaceCaretUnitPositionFromDcpSimpleLines(
2873ITextPointer position,
2886ITextPointer backspaceCaretPosition = position;
2963private ITextPointer BackspaceCaretUnitPositionFromDcpCompositeLines(
2965ITextPointer position,
2978ITextPointer backspaceCaretPosition = position;
System\Windows\Controls\PasswordTextContainer.cs (24)
71internal void InsertText(ITextPointer position, string textData)
110internal void DeleteContent(ITextPointer startPosition, ITextPointer endPosition)
212ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
218ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
223ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
225return ((ITextPointer)position.Handle0).CreatePointer(direction);
235return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
240return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
245return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
250return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
260return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
265return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
270return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
273int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
275return ((ITextPointer)position1.Handle0).CompareTo(position2);
280return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
364ITextPointer ITextContainer.Start
378ITextPointer ITextContainer.End
510internal ITextPointer Start
524internal ITextPointer End
620private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
System\Windows\Controls\TextAdaptor.cs (19)
89internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool clipToView, bool transformToScreen)
133ITextPointer position = start.CreatePointer();
141ITextPointer first = (lineRange.Start.CompareTo(start) <= 0) ? start : lineRange.Start;
142ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End;
202internal void Select(ITextPointer start, ITextPointer end)
212internal void ScrollIntoView(ITextPointer start, ITextPointer end, bool alignToTop)
271ITextPointer pointer = alignToTop ? start.CreatePointer() : end.CreatePointer();
280internal ITextRangeProvider TextRangeFromTextPointers(ITextPointer rangeStart, ITextPointer rangeEnd)
297ITextPointer temp = rangeStart;
533ITextPointer visibleStart = textView.GetTextPositionFromPoint(visibleRect.TopLeft, true);
534ITextPointer visibleEnd = textView.GetTextPositionFromPoint(visibleRect.BottomRight, true);
583ITextPointer rangeStart = null;
584ITextPointer rangeEnd = null;
606ITextPointer position = _textContainer.Start.CreatePointer();
663ITextPointer position = textView.GetTextPositionFromPoint(location, true);
System\Windows\Controls\TextBlock.cs (14)
2104internal ITextPointer GetTextPositionFromDistance(int dcp, double distance, double lineVOffset, int index)
2122ITextPointer pos;
2151internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition)
2253internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
2279ITextPointer endOfLineTextPointer = _complexContent.TextContainer.Start.CreatePointer(0);
2367internal bool IsAtCaretUnitBoundary(ITextPointer position, int dcp, int lineIndex)
2435internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction, int dcp, int lineIndex)
2543ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2563internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position, int dcp, int lineIndex)
2631ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2815private static void InsertTextRun(ITextPointer position, string text, bool whitespacesIgnorable)
System\Windows\Controls\TextRangeAdaptor.cs (69)
48delegate(ITextPointer tp)
59delegate(ITextPointer tp)
69delegate(ITextPointer tp)
108delegate(ITextPointer tp)
148delegate(ITextPointer tp)
159delegate(ITextPointer tp)
169delegate(ITextPointer tp)
179delegate(ITextPointer tp)
190delegate(ITextPointer tp)
200delegate(ITextPointer tp)
228delegate(ITextPointer tp)
238delegate(ITextPointer tp)
249delegate(ITextPointer tp)
260delegate(ITextPointer tp) { return false; },
267delegate(ITextPointer tp)
279delegate(ITextPointer tp)
294delegate(ITextPointer tp)
305delegate(ITextPointer tp)
316delegate(ITextPointer tp)
327delegate(ITextPointer tp)
338delegate(ITextPointer tp)
349delegate(ITextPointer tp)
360delegate(ITextPointer tp) { return OutlineStyles.None; },
367delegate(ITextPointer tp)
378delegate(ITextPointer tp)
389delegate(ITextPointer tp)
400delegate(ITextPointer tp)
411delegate(ITextPointer tp)
433delegate(ITextPointer tp)
444delegate(ITextPointer tp)
457internal TextRangeAdaptor(TextAdaptor textAdaptor, ITextPointer start, ITextPointer end, AutomationPeer textPeer)
480internal static bool MoveToInsertionPosition(ITextPointer position, LogicalDirection direction)
725private bool MoveToUnitBoundary(ITextPointer position, bool isStart, LogicalDirection direction, TextUnit unit)
793ITextPointer nextLineStart = null;
820ITextPointer previousLineEnd = null;
856ITextPointer nextParagraphStart = textRange.End;
877ITextPointer previousParagraphEnd = textRange.Start;
989private int MovePositionByUnits(ITextPointer position, TextUnit unit, int count)
1027ITextPointer positionOrig = position.CreatePointer();
1154ITextPointer positionTemp = position.CreatePointer();
1204ITextPointer start = _start.CreatePointer();
1205ITextPointer end = _end.CreatePointer();
1265private static string GetFontFamilyName(FontFamily fontFamily, ITextPointer context)
1377private AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end)
1380ITextPointer elementStart, elementEnd;
1419private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end)
1439private static bool IsAtWordBoundary(ITextPointer position)
1454private static bool MoveToNextWordBoundary(ITextPointer position, LogicalDirection direction)
1457ITextPointer startPosition = position.CreatePointer();
1505private ITextPointer GetInsertionPosition(ITextPointer position, LogicalDirection direction)
1524private ITextPointer _start;
1525private ITextPointer _end;
1547internal delegate object GetValueAtDelegate(ITextPointer textPointer);
1619ITextPointer position = (endpoint == TextPatternRangeEndpoint.Start) ? _start : _end;
1620ITextPointer targetPosition = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
1667ITextPointer attrStart = null;
1668ITextPointer attrEnd = null;
1672ITextPointer stop = _start;
1673ITextPointer position = _end.CreatePointer(LogicalDirection.Backward);
1703ITextPointer stop = _end;
1704ITextPointer position = _start.CreatePointer(LogicalDirection.Forward);
1893ITextPointer position = _start.CreatePointer();
1945ITextPointer positionRef = start ? _start : _end;
1946ITextPointer position = positionRef.CreatePointer();
2007ITextPointer targetPointer = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
System\Windows\Documents\DocumentSequenceTextContainer.cs (25)
95ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
101ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
106ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
108return ((ITextPointer)position.Handle0).CreatePointer(direction);
118return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
123return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
128return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
133return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
143return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
148return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
153return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
156int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
158return ((ITextPointer)position1.Handle0).CompareTo(position2);
163return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
213ITextPointer ITextContainer.Start
226ITextPointer ITextContainer.End
341internal DocumentSequenceTextPointer VerifyPosition(ITextPointer position)
362internal DocumentSequenceTextPointer MapChildPositionToParent(ITextPointer tp)
535private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
719ITextPointer tpChildStart, tpChildEnd;
988ITextPointer dynamicTextPointer = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward);
989ITextPointer parentTextPointer = ((DocumentSequenceTextContainer)this.TextContainer).MapChildPositionToParent(dynamicTextPointer);
1017ITextPointer childTp = parentChangePosition.ChildPointer;
System\Windows\Documents\DocumentSequenceTextPointer.cs (134)
28internal DocumentSequenceTextPointer(ChildDocumentBlock childBlock, ITextPointer childPosition)
45/// <see cref="ITextPointer.SetLogicalDirection"/>
47void ITextPointer.SetLogicalDirection(LogicalDirection direction)
54/// <see cref="ITextPointer.CompareTo(ITextPointer)"/>
56int ITextPointer.CompareTo(ITextPointer position)
62/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/>
64int ITextPointer.CompareTo(StaticTextPointer position)
66return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0);
70/// <see cref="ITextPointer.GetOffsetToPosition"/>
72int ITextPointer.GetOffsetToPosition(ITextPointer position)
78/// <see cref="ITextPointer.GetPointerContext"/>
80TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
86/// <see cref="ITextPointer.GetTextRunLength"/>
89int ITextPointer.GetTextRunLength(LogicalDirection direction)
95string ITextPointer.GetTextInRun(LogicalDirection direction)
101/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
104int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
110/// <see cref="ITextPointer.GetAdjacentElement"/>
113object ITextPointer.GetAdjacentElement(LogicalDirection direction)
119/// <see cref="ITextPointer.GetElementType"/>
122Type ITextPointer.GetElementType(LogicalDirection direction)
128/// <see cref="ITextPointer.HasEqualScope"/>
130bool ITextPointer.HasEqualScope(ITextPointer position)
137/// <see cref="ITextPointer.GetValue"/>
140object ITextPointer.GetValue(DependencyProperty property)
146/// <see cref="ITextPointer.ReadLocalValue"/>
149object ITextPointer.ReadLocalValue(DependencyProperty property)
155/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
158LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
164/// <see cref="ITextPointer.CreatePointer()"/>
166ITextPointer ITextPointer.CreatePointer()
174/// <see cref="ITextPointer.CreateStaticPointer"/>
176StaticTextPointer ITextPointer.CreateStaticPointer()
178return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
182/// <see cref="ITextPointer.CreatePointer(int)"/>
184ITextPointer ITextPointer.CreatePointer(int distance)
190/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
192ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
198/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
200ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
206void ITextPointer.Freeze()
212/// <see cref="ITextPointer.GetFrozenPointer"/>
214ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
225void ITextPointer.InsertTextInRun(string textData)
237void ITextPointer.DeleteContentToPosition(ITextPointer limit)
243ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
245ITextPointer pointer = ((ITextPointer)this).CreatePointer();
258ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
260ITextPointer pointer = ((ITextPointer)this).CreatePointer();
269ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
271ITextPointer pointer = ((ITextPointer)this).CreatePointer();
278ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
280ITextPointer pointer = ((ITextPointer)this).CreatePointer();
292/// <see cref="ITextPointer.ValidateLayout"/>
293bool ITextPointer.ValidateLayout()
295return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView);
323Type ITextPointer.ParentType
332/// <see cref="ITextPointer.TextContainer"/>
334ITextContainer ITextPointer.TextContainer
340bool ITextPointer.HasValidLayout
344return (((ITextPointer)this).TextContainer.TextView != null &&
345((ITextPointer)this).TextContainer.TextView.IsValid &&
346((ITextPointer)this).TextContainer.TextView.Contains(this));
351bool ITextPointer.IsAtCaretUnitBoundary
355Invariant.Assert(((ITextPointer)this).HasValidLayout);
356ITextView textView = ((ITextPointer)this).TextContainer.TextView;
359if (!isAtCaretUnitBoundary && ((ITextPointer)this).LogicalDirection == LogicalDirection.Backward)
367ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward);
375/// <see cref="ITextPointer.LogicalDirection"/>
377LogicalDirection ITextPointer.LogicalDirection
385bool ITextPointer.IsAtInsertionPosition
391bool ITextPointer.IsFrozen
400int ITextPointer.Offset
409int ITextPointer.CharOffset
440/// <see cref="ITextPointer.MoveByOffset"/>
442bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
450/// <see cref="ITextPointer.MoveByOffset"/>
452int ITextPointer.MoveByOffset(int offset)
467/// <see cref="ITextPointer.MoveToPosition"/>
469void ITextPointer.MoveToPosition(ITextPointer position)
489/// <see cref="ITextPointer.MoveToElementEdge"/>
491void ITextPointer.MoveToElementEdge(ElementEdge edge)
499int ITextPointer.MoveToLineBoundary(int count)
501return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true);
505Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
510bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
515bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
551internal ITextPointer ChildPointer
594/// <see cref="ITextPointer.CompareTo(ITextPointer)"/>
596public static int CompareTo(DocumentSequenceTextPointer thisTp, ITextPointer position)
606/// <see cref="ITextPointer.GetOffsetToPosition"/>
608public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position)
628/// <see cref="ITextPointer.GetPointerContext"/>
638/// <see cref="ITextPointer.GetTextRunLength"/>
649/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
678/// <see cref="ITextPointer.GetAdjacentElement"/>
689/// <see cref="ITextPointer.GetElementType"/>
702/// <see cref="ITextPointer.GetElementType"/>
710/// <see cref="ITextPointer.HasEqualScope"/>
712public static bool HasEqualScope(DocumentSequenceTextPointer thisTp, ITextPointer position)
725/// <see cref="ITextPointer.GetValue"/>
736/// <see cref="ITextPointer.ReadLocalValue"/>
747/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
755public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp)
760public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance)
765public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, LogicalDirection gravity)
771/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
773public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance, LogicalDirection gravity)
873ITextPointer pointer = thisTp.ChildPointer;
1023ITextPointer childTn = thisTp.ChildPointer;
1112private ITextPointer _childTp;
System\Windows\Documents\DocumentSequenceTextView.cs (17)
70internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
78ITextPointer childOTP = ChildTextView.GetTextPositionFromPoint(point, snapToText);
117internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
146internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
198internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
219ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.LogicalDirection), suggestedX, count, out newSuggestedX, out linesMoved);
251internal override bool IsAtCaretUnitBoundary(ITextPointer position)
298internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
324internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
350internal override TextSegment GetLineRange(ITextPointer position)
403internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
423internal override bool Contains(ITextPointer position)
System\Windows\Documents\FixedTextContainer.cs (22)
80ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
86ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
91ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
93return ((ITextPointer)position.Handle0).CreatePointer(direction);
103return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
108return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
113return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
118return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
128return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
133return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
138return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
141int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
143return ((ITextPointer)position1.Handle0).CompareTo(position2);
148return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
182ITextPointer ITextContainer.Start
195ITextPointer ITextContainer.End
308internal FixedTextPointer VerifyPosition(ITextPointer position)
328internal int GetPageNumber(ITextPointer textPointer)
600private bool _GetFixedNodesForFlowRange(ITextPointer start, ITextPointer end, out FixedSOMElement[] elements, out int startIndex, out int endIndex)
System\Windows\Documents\FixedTextPointer.cs (124)
58internal int CompareTo(ITextPointer position)
65int ITextPointer.CompareTo(StaticTextPointer position)
67return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0);
75int ITextPointer.CompareTo(ITextPointer position)
83int ITextPointer.GetOffsetToPosition(ITextPointer position)
93TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
103int ITextPointer.GetTextRunLength(LogicalDirection direction)
114string ITextPointer.GetTextInRun(LogicalDirection direction)
120/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
123int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
140/// <see cref="ITextPointer.GetAdjacentElement"/>
143object ITextPointer.GetAdjacentElement(LogicalDirection direction)
155/// <see cref="ITextPointer.GetElementType"/>
158Type ITextPointer.GetElementType(LogicalDirection direction)
174/// <see cref="ITextPointer.HasEqualScope"/>
176bool ITextPointer.HasEqualScope(ITextPointer position)
188/// <see cref="ITextPointer.GetValue"/>
191object ITextPointer.GetValue(DependencyProperty property)
200/// <see cref="ITextPointer.ReadLocalValue"/>
203object ITextPointer.ReadLocalValue(DependencyProperty property)
217/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
220LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
233/// <see cref="ITextPointer.CreatePointer()"/>
235ITextPointer ITextPointer.CreatePointer()
237return ((ITextPointer)this).CreatePointer(0, ((ITextPointer)this).LogicalDirection);
243/// <see cref="ITextPointer.CreateStaticPointer"/>
245StaticTextPointer ITextPointer.CreateStaticPointer()
247return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
251/// <see cref="ITextPointer.CreatePointer(int)"/>
253ITextPointer ITextPointer.CreatePointer(int distance)
255return ((ITextPointer)this).CreatePointer(distance, ((ITextPointer)this).LogicalDirection);
259/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
261ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
263return ((ITextPointer)this).CreatePointer(0, gravity);
267/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
269ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
283/// <see cref="ITextPointer.Freeze"/>
285void ITextPointer.Freeze()
291/// <see cref="ITextPointer.GetFrozenPointer"/>
293ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
300/// <see cref="ITextPointer.GetNextContextPosition"/>
302ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
304ITextPointer pointer = ((ITextPointer)this).CreatePointer();
318/// <see cref="ITextPointer.GetInsertionPosition"/>
320ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
322ITextPointer pointer = ((ITextPointer)this).CreatePointer();
332/// <see cref="ITextPointer.GetFormatNormalizedPosition"/>
334ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
336ITextPointer pointer = ((ITextPointer)this).CreatePointer();
344/// <see cref="ITextPointer.GetNextInsertionPosition"/>
346ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
348ITextPointer pointer = ((ITextPointer)this).CreatePointer();
363/// <see cref="ITextPointer.SetLogicalDirection"/>
366void ITextPointer.SetLogicalDirection(LogicalDirection direction)
374/// <see cref="ITextPointer.MoveByOffset"/>
376bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
388/// <see cref="ITextPointer.MoveByOffset"/>
390int ITextPointer.MoveByOffset(int offset)
405/// <see cref="ITextPointer.MoveToPosition"/>
407void ITextPointer.MoveToPosition(ITextPointer position)
417/// <see cref="ITextPointer.MoveToElementEdge"/>
419void ITextPointer.MoveToElementEdge(ElementEdge edge)
453/// <see cref="ITextPointer.MoveToLineBoundary"/>
455int ITextPointer.MoveToLineBoundary(int count)
457return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true);
461/// <see cref="ITextPointer.GetCharacterRect"/>
463Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
469/// <see cref="ITextPointer.MoveToInsertionPosition"/>
471bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
477/// <see cref="ITextPointer.MoveToNextInsertionPosition"/>
479bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
492void ITextPointer.InsertTextInRun(string textData)
500/// <see cref="ITextPointer.DeleteContentToPosition"/>
502void ITextPointer.DeleteContentToPosition(ITextPointer limit)
508/// <see cref="ITextPointer.ValidateLayout"/>
510bool ITextPointer.ValidateLayout()
512return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView);
526/// <see cref="ITextPointer.ParentType"/>
528Type ITextPointer.ParentType
538/// <see cref="ITextPointer.TextContainer"/>
540ITextContainer ITextPointer.TextContainer
546/// <see cref="ITextPointer.HasValidLayout"/>
548bool ITextPointer.HasValidLayout
552return (((ITextPointer)this).TextContainer.TextView != null &&
553((ITextPointer)this).TextContainer.TextView.IsValid &&
554((ITextPointer)this).TextContainer.TextView.Contains(this));
559/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/>
561bool ITextPointer.IsAtCaretUnitBoundary
565Invariant.Assert(((ITextPointer)this).HasValidLayout);
566ITextView textView = ((ITextPointer)this).TextContainer.TextView;
577ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward);
585/// <see cref="ITextPointer.LogicalDirection"/>
587LogicalDirection ITextPointer.LogicalDirection
596/// <see cref="ITextPointer.IsAtInsertionPosition"/>
598bool ITextPointer.IsAtInsertionPosition
604/// <see cref="ITextPointer.IsFrozen"/>
606bool ITextPointer.IsFrozen
615/// <see cref="ITextPointer.Offset"/>
617int ITextPointer.Offset
627/// <see cref="ITextPointer.CharOffset"/>
629int ITextPointer.CharOffset
System\Windows\Documents\FixedTextView.cs (34)
66internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
72ITextPointer textPos = this.End;
84ITextPointer pos = null;
147internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
178ITextPointer psNext = position.CreatePointer(1);
232internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
326internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
337ITextPointer pos = position;
366((ITextPointer)nav).MoveToInsertionPosition(scanDir);
367((ITextPointer)nav).MoveToNextInsertionPosition(scanDir);
432internal override bool IsAtCaretUnitBoundary(ITextPointer position)
502internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
537ITextPointer pointer = position.CreatePointer();
556internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
575internal override TextSegment GetLineRange(ITextPointer position)
605ITextPointer begin = _CreateTextPointer(new FixedPosition(fixedNodes[0], 0), LogicalDirection.Forward);
606ITextPointer end = _CreateTextPointer(new FixedPosition(lastNode, lastIndex), LogicalDirection.Backward);
610ITextPointer temp = begin;
633internal override bool Contains(ITextPointer position)
810private ITextPointer _SnapToText(Point point)
812ITextPointer itp = null;
860itp = ((ITextPointer)this.Start).CreatePointer(LogicalDirection.Forward);
865itp = ((ITextPointer)this.End).CreatePointer(LogicalDirection.Backward);
1074TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir);
1098symbolType = ((ITextPointer)nav).GetPointerContext(textdir);
1102if (((ITextPointer)nav).MoveToNextInsertionPosition(textdir) &&
1140((ITextPointer)nav).MoveToNextInsertionPosition(dir);
1160private ITextPointer _CreateTextPointer(FixedPosition fixedPosition, LogicalDirection edge)
1176private ITextPointer _CreateTextPointerFromGlyphs(Glyphs g, Point point)
1188private void _SkipFormattingTags(ITextPointer textPointer)
System\Windows\Documents\ITextView.cs (38)
60ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
94Rect GetRectangleFromTextPosition(ITextPointer position);
133Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform);
141Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition);
193ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved);
203ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved);
230bool IsAtCaretUnitBoundary(ITextPointer position);
276ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction);
301ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position);
327TextSegment GetLineRange(ITextPointer position);
359ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end);
389bool Contains(ITextPointer position);
395void BringPositionIntoViewAsync(ITextPointer position, object userState);
412void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState);
423void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState);
469bool Validate(ITextPointer position);
595public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState)
623public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState)
647public ITextPointer Position
665private readonly ITextPointer _position;
692public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState)
707public ITextPointer Position
733public ITextPointer NewPosition
759private readonly ITextPointer _position;
773private readonly ITextPointer _newPosition;
808public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState)
823public ITextPointer Position
849public ITextPointer NewPosition
875private readonly ITextPointer _position;
889private readonly ITextPointer _newPosition;
System\Windows\Documents\NullTextNavigator.cs (112)
43int ITextPointer.CompareTo(ITextPointer position)
50int ITextPointer.CompareTo(StaticTextPointer position)
59int ITextPointer.GetOffsetToPosition(ITextPointer position)
67/// <see cref="ITextPointer.GetPointerContext"/>
69TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
76/// <see cref="ITextPointer.GetTextRunLength"/>
79int ITextPointer.GetTextRunLength(LogicalDirection direction)
86/// <see cref="ITextPointer.GetTextInRun(LogicalDirection)"/>
88string ITextPointer.GetTextInRun(LogicalDirection direction)
94/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
97int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
104/// <see cref="ITextPointer.GetAdjacentElement"/>
107object ITextPointer.GetAdjacentElement(LogicalDirection direction)
114/// <see cref="ITextPointer.GetElementType"/>
117Type ITextPointer.GetElementType(LogicalDirection direction)
124/// <see cref="ITextPointer.HasEqualScope"/>
126bool ITextPointer.HasEqualScope(ITextPointer position)
132/// <see cref="ITextPointer.GetValue"/>
135object ITextPointer.GetValue(DependencyProperty property)
141/// <see cref="ITextPointer.ReadLocalValue"/>
143object ITextPointer.ReadLocalValue(DependencyProperty property)
149/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
152LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
158/// <see cref="ITextPointer.CreatePointer()"/>
160ITextPointer ITextPointer.CreatePointer()
162return ((ITextPointer)this).CreatePointer(0, _gravity);
167StaticTextPointer ITextPointer.CreateStaticPointer()
169return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
173/// <see cref="ITextPointer.CreatePointer(int)"/>
175ITextPointer ITextPointer.CreatePointer(int distance)
177return ((ITextPointer)this).CreatePointer(distance, _gravity);
181/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
183ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
185return ((ITextPointer)this).CreatePointer(0, gravity);
189/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
191ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
199void ITextPointer.Freeze()
205/// <see cref="ITextPointer.GetFrozenPointer"/>
207ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
217/// <see cref="ITextPointer.SetLogicalDirection"/>
220void ITextPointer.SetLogicalDirection(LogicalDirection direction)
229/// <see cref="ITextPointer.MoveByOffset"/>
231bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
241/// <see cref="ITextPointer.MoveByOffset"/>
243int ITextPointer.MoveByOffset(int distance)
253/// <see cref="ITextPointer.MoveToPosition"/>
255void ITextPointer.MoveToPosition(ITextPointer position)
263/// <see cref="ITextPointer.MoveToElementEdge"/>
265void ITextPointer.MoveToElementEdge(ElementEdge edge)
273/// <see cref="ITextPointer.MoveToLineBoundary"/>
275int ITextPointer.MoveToLineBoundary(int count)
282/// <see cref="ITextPointer.GetCharacterRect"/>
284Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
291/// <see cref="ITextPointer.MoveToInsertionPosition"/>
293bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
299/// <see cref="ITextPointer.MoveToNextInsertionPosition"/>
301bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
307/// <see cref="ITextPointer.InsertTextInRun"/>
309void ITextPointer.InsertTextInRun(string textData)
315/// <see cref="ITextPointer.DeleteContentToPosition"/>
317void ITextPointer.DeleteContentToPosition(ITextPointer limit)
324/// <see cref="ITextPointer.GetNextContextPosition"/>
326ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
328ITextPointer pointer = ((ITextPointer)this).CreatePointer();
342/// <see cref="ITextPointer.GetInsertionPosition"/>
344ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
346ITextPointer pointer = ((ITextPointer)this).CreatePointer();
356/// <see cref="ITextPointer.GetFormatNormalizedPosition"/>
358ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
360ITextPointer pointer = ((ITextPointer)this).CreatePointer();
368/// <see cref="ITextPointer.GetNextInsertionPosition"/>
370ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
372ITextPointer pointer = ((ITextPointer)this).CreatePointer();
385/// <see cref="ITextPointer.ValidateLayout"/>
387bool ITextPointer.ValidateLayout()
404/// <see cref="ITextPointer.ParentType"/>
406Type ITextPointer.ParentType
418/// <see cref="ITextPointer.TextContainer"/>
420ITextContainer ITextPointer.TextContainer
426/// <see cref="ITextPointer.HasValidLayout"/>
428bool ITextPointer.HasValidLayout
438/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/>
440bool ITextPointer.IsAtCaretUnitBoundary
450/// <see cref="ITextPointer.LogicalDirection"/>
452LogicalDirection ITextPointer.LogicalDirection
458/// <see cref="ITextPointer.IsAtInsertionPosition"/>
460bool ITextPointer.IsAtInsertionPosition
466/// <see cref="ITextPointer.IsFrozen"/>
468bool ITextPointer.IsFrozen
477/// <see cref="ITextPointer.Offset"/>
479int ITextPointer.Offset
489/// <see cref="ITextPointer.CharOffset"/>
491int ITextPointer.CharOffset
System\Windows\Documents\Speller.cs (73)
107internal SpellingError GetError(ITextPointer position, LogicalDirection direction, bool forceEvaluation)
109ITextPointer start;
110ITextPointer end;
141internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction)
190ExpandToWordBreakAndContext(error.Start, LogicalDirection.Backward, language, out ITextPointer contentStart, out ITextPointer contextStart);
191ExpandToWordBreakAndContext(error.End, LogicalDirection.Forward, language, out ITextPointer contentEnd, out ITextPointer contextEnd);
230ITextPointer errorStart;
231ITextPointer errorEnd;
539ITextPointer start;
540ITextPointer end;
611private bool GetNextScanRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
613ITextPointer rawStart;
614ITextPointer rawEnd;
641private void GetNextScanRangeRaw(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
670private void AdjustScanRangeAroundComposition(ITextPointer rawStart, ITextPointer rawEnd,
671out ITextPointer start, out ITextPointer end)
690ITextPointer wordBreakLeft;
691ITextPointer wordBreakRight;
692ITextPointer caretPosition;
756private ScanStatus ScanRange(ITextPointer start, ITextPointer end, long timeLimit)
758ITextPointer contextStart;
759ITextPointer contextEnd;
760ITextPointer contentStart;
761ITextPointer contentEnd;
1010ITextPointer timeoutPosition = data.TextMap.MapOffsetToPosition(timeOutOffset);
1038ITextPointer errorStart;
1039ITextPointer errorEnd;
1082private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language,
1083out ITextPointer contentPosition, out ITextPointer contextPosition)
1085ITextPointer start;
1086ITextPointer end;
1087ITextPointer outwardPosition;
1088ITextPointer inwardPosition;
1312private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError)
1314ITextPointer closestErrorPosition;
1315ITextPointer searchPosition;
1316ITextPointer start;
1317ITextPointer end;
1352ITextPointer closestLanguageTransition = GetNextLanguageTransition(position, direction, language, searchPosition);
1384private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition)
1386ITextPointer navigator = position.CreatePointer();
1461private void ScanPosition(ITextPointer position, LogicalDirection direction)
1463ITextPointer start;
1464ITextPointer end;
1481private XmlLanguage GetCurrentLanguage(ITextPointer position)
1492private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language)
1642internal TextMap(ITextPointer contextStart, ITextPointer contextEnd,
1643ITextPointer contentStart, ITextPointer contentEnd)
1645ITextPointer position;
1757internal ITextPointer MapOffsetToPosition(int offset)
1793private bool IsAdjacentToFormatElement(ITextPointer pointer)
1817private readonly ITextPointer _basePosition;
1842internal ScanStatus(long timeLimit, ITextPointer startPosition)
1869internal ITextPointer TimeoutPosition
1876internal ITextPointer StartPosition
1885private readonly ITextPointer _startPosition;
1889private ITextPointer _timeoutPosition;
System\Windows\Documents\SpellerStatusTable.cs (29)
36internal SpellerStatusTable(ITextPointer textContainerStart, SpellerHighlightLayer highlightLayer)
72ITextPointer end = e.ITextPosition.CreatePointer(e.Count);
82internal void GetFirstDirtyRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
107internal void MarkCleanRange(ITextPointer start, ITextPointer end)
114internal void MarkDirtyRange(ITextPointer start, ITextPointer end)
122internal void MarkErrorRange(ITextPointer start, ITextPointer end)
244out ITextPointer start, out ITextPointer end)
379private void MarkRange(ITextPointer start, ITextPointer end, RunType runType)
435private void AddRun(int index, ITextPointer start, ITextPointer end, RunType runType)
512ITextPointer errorStart;
513ITextPointer errorEnd;
553ITextPointer start;
554ITextPointer end;
585private void OnContentRemoved(ITextPointer position)
623ITextPointer runPosition = GetRun(i).Position;
653ITextPointer errorStart;
654ITextPointer errorEnd;
749private ITextPointer GetRunEndPositionDynamic(int index)
797internal Run(ITextPointer position, RunType runType)
803internal ITextPointer Position
815private ITextPointer _position;
System\windows\Documents\TextEditorSelection.cs (72)
103internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position)
113ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward);
115ITextPointer lineEnd = position.CreatePointer(LogicalDirection.Backward);
268ITextPointer position = TextEditorSelection.GetEndInner(This);
278ITextPointer originalMovingPosition;
290ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
312ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition);
313ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
357ITextPointer position = TextEditorSelection.GetStartInner(This);
367ITextPointer originalMovingPosition;
379ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
402ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition);
403ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward);
454ITextPointer position = TextEditorSelection.GetEndInner(This);
459ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
506ITextPointer position = TextEditorSelection.GetStartInner(This);
510ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
559ITextPointer position = TextEditorSelection.GetEndInner(This);
564ITextPointer movingPosition;
573ITextPointer targetPosition;
676ITextPointer position = TextEditorSelection.GetStartInner(This);
681ITextPointer movingPosition;
690ITextPointer targetPosition;
782ITextPointer startPositionInner = TextEditorSelection.GetStartInner(This);
803ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward);
834ITextPointer endPositionInner = TextEditorSelection.GetEndInner(This);
855ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation);
1020ITextPointer originalMovingPosition;
1041ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition);
1069ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition);
1070ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
1106private static void AdjustMovingPositionForSelectDownByLine(TextEditor This, ITextPointer newMovingPosition, ITextPointer originalMovingPosition, double suggestedX)
1192ITextPointer originalMovingPosition;
1213ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition);
1259ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition);
1260ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward);
1316ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
1357ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
1390ITextPointer movingPosition;
1401ITextPointer targetPosition;
1486ITextPointer movingPosition;
1497ITextPointer targetPosition;
1586ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This);
1631ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This);
1653ITextPointer destination = lineRange.End;
1674ITextPointer newDestination = destination.GetNextInsertionPosition(LogicalDirection.Forward);
2021ITextPointer position = textEditor.Selection.MovingPosition.CreatePointer();
2057ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start);
2127ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer();
2147ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer();
2191ITextPointer wordBoundary = textEditor.Selection.MovingPosition.CreatePointer();
2219private static Double GetSuggestedX(TextEditor This, out ITextPointer innerMovingPosition)
2267private static Double GetSuggestedYFromPosition(TextEditor This, ITextPointer position)
2301private static ITextPointer GetMovingPositionInner(TextEditor This)
2303ITextPointer movingPosition = This.Selection.MovingPosition;
2331private static ITextPointer GetStartInner(TextEditor This)
2343private static ITextPointer GetEndInner(TextEditor This)
2345ITextPointer end = This.Selection.End;
2354private static ITextPointer GetPositionAtLineStart(ITextPointer position)
2363private static ITextPointer GetPositionAtLineEnd(ITextPointer position)
2370private static void ExtendSelectionAndBringIntoView(ITextPointer position, TextEditor textEditor)
2376private static void BringIntoView(ITextPointer position, TextEditor textEditor)
2396ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward);
2408private static ITextPointer AdjustPositionAtTableRowEnd(ITextPointer position)
2412ITextPointer cellEnd = position.GetNextInsertionPosition(LogicalDirection.Backward);
2423private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position)
2425ITextPointer navigator = position.CreatePointer();
2440private static double GetAbsoluteXOffset(ITextView textview, ITextPointer position)
System\windows\Documents\TextEditorSpelling.cs (15)
36internal static SpellingError GetSpellingErrorAtPosition(TextEditor This, ITextPointer position, LogicalDirection direction)
62ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character);
101internal static ITextPointer GetNextSpellingErrorPosition(TextEditor This, ITextPointer position, LogicalDirection direction)
136ITextPointer textStart;
137ITextPointer textEnd;
140ITextPointer caretPosition;
180private static bool IsErrorAtNonMergeableInlineEdge(SpellingError spellingError, out ITextPointer textStart, out ITextPointer textEnd)
253private static ITextPointer GetNextTextPosition(ITextPointer position, ITextPointer limit, LogicalDirection direction, out char character)
302private static ITextPointer GetNextNonWhiteSpacePosition(ITextPointer position, ITextPointer limit)
System\Windows\Documents\TextFindEngine.cs (17)
81ITextPointer findContainerStartPosition,
82ITextPointer findContainerEndPosition,
170ITextPointer startPosition,
171ITextPointer endPosition,
183ITextPointer navigator;
213ITextPointer startFindTextPosition = navigator.CreatePointer();
268ITextPointer startMatchPosition = startFindTextPosition.CreatePointer();
271ITextPointer endMatchPosition = startFindTextPosition.CreatePointer();
296private static void GetContextualInformation(ITextPointer position, int oppositeEndOffset,
299ITextPointer oppositeEndPosition = position.CreatePointer(oppositeEndOffset, position.LogicalDirection);
315private static bool HasNeighboringSeparatorChar(ITextPointer position, LogicalDirection direction)
317ITextPointer nextPosition = position.GetNextInsertionPosition(direction);
326ITextPointer temp = position;
634ITextPointer startPosition,
635ITextPointer endPosition,
636ITextPointer navigator,
887private static bool IsAdjacentToFormatElement(ITextPointer pointer, LogicalDirection direction)
System\Windows\Documents\TextPointerBase.cs (79)
36internal static ITextPointer Min(ITextPointer position1, ITextPointer position2)
50internal static ITextPointer Max(ITextPointer position1, ITextPointer position2)
56internal static string GetTextInRun(ITextPointer position, LogicalDirection direction)
74internal static int GetTextWithLimit(ITextPointer thisPointer, LogicalDirection direction, char[] textBuffer, int startIndex, int count, ITextPointer limit)
132internal static bool IsAtInsertionPosition(ITextPointer position)
140internal static bool IsAtPotentialRunPosition(ITextPointer position)
176private static bool IsAtPotentialRunPosition(ITextPointer backwardPosition, ITextPointer forwardPosition)
225internal static bool IsAtPotentialParagraphPosition(ITextPointer position)
250internal static bool IsBeforeFirstTable(ITextPointer position)
262internal static bool IsInBlockUIContainer(ITextPointer position)
267internal static bool IsAtBlockUIContainerStart(ITextPointer position)
273internal static bool IsAtBlockUIContainerEnd(ITextPointer position)
280private static bool IsInAncestorScope(ITextPointer position, Type allowedParentType, Type limitingType)
282ITextPointer navigator = position.CreatePointer();
299internal static bool IsInAnchoredBlock(ITextPointer position)
305internal static bool IsInHyperlinkScope(ITextPointer position)
313internal static ITextPointer GetFollowingNonMergeableInlineContentStart(ITextPointer position)
315ITextPointer navigator = position.CreatePointer();
384internal static bool IsAtNonMergeableInlineStart(ITextPointer position)
390internal static bool IsAtNonMergeableInlineEnd(ITextPointer position)
397internal static bool IsPositionAtNonMergeableInlineBoundary(ITextPointer position)
402internal static bool IsAtFormatNormalizedPosition(ITextPointer position, LogicalDirection direction)
407internal static bool IsAtInsertionPosition(ITextPointer position, LogicalDirection direction)
412internal static bool IsAtNormalizedPosition(ITextPointer position, LogicalDirection direction, bool respectCaretUnitBoundaries)
449internal static int GetOffset(ITextPointer thisPosition)
467internal static bool IsAtWordBoundary(ITextPointer thisPosition, LogicalDirection insideWordDirection)
470ITextPointer navigator = thisPosition.CreatePointer();
508internal static TextSegment GetWordRange(ITextPointer thisPosition)
522internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction)
538ITextPointer navigator = thisPosition.CreatePointer();
541ITextPointer wordEnd = navigator;
544ITextPointer wordStart;
584private static ITextPointer RestrictWithinBlock(ITextPointer position, ITextPointer limit, LogicalDirection direction)
619internal static bool IsNextToPlainLineBreak(ITextPointer thisPosition, LogicalDirection direction)
647internal static bool IsNextToRichLineBreak(ITextPointer thisPosition, LogicalDirection direction)
656internal static bool IsNextToParagraphBreak(ITextPointer thisPosition, LogicalDirection direction)
667internal static bool IsNextToAnyBreak(ITextPointer thisPosition, LogicalDirection direction)
680internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView)
709internal static bool IsAtRowEnd(ITextPointer thisPosition)
721internal static bool IsAfterLastParagraph(ITextPointer thisPosition)
729internal static bool IsAtParagraphOrBlockUIContainerStart(ITextPointer pointer)
796internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count)
802internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart)
804ITextPointer position;
854internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction)
860internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope)
872ITextPointer insertionPosition = thisPointer.GetInsertionPosition(direction);
921internal static bool MoveToFormatNormalizedPosition(ITextPointer thisNavigator, LogicalDirection direction)
934internal static bool MoveToInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction)
957internal static bool MoveToNextInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction)
965ITextPointer initialPosition = thisNavigator.CreatePointer();
1065internal static bool MoveToNextWordBoundary(ITextPointer thisNavigator, LogicalDirection movingDirection)
1070ITextPointer startPosition = thisNavigator.CreatePointer();
1097internal static ITextPointer GetFrozenPointer(ITextPointer thisPointer, LogicalDirection logicalDirection)
1099ITextPointer frozenPointer;
1114/// <see cref="ITextPointer.ValidateLayout"/>
1115internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView)
1136private static bool NormalizePosition(ITextPointer thisNavigator, LogicalDirection direction, bool respectCaretUnitBoundaries)
1252private static int LeaveNonMergeableInlineBoundary(ITextPointer thisNavigator, LogicalDirection direction, int symbolCount)
1281private static int LeaveNonMergeableAncestor(ITextPointer thisNavigator, LogicalDirection direction)
1299private static bool IsAtNormalizedPosition(ITextPointer position, bool respectCaretUnitBoundaries)
1325private static bool IsAtCaretUnitBoundary(ITextPointer position)
1358private static bool IsInsideCompoundSequence(ITextPointer position)
1410private static void GetWordBreakerText(ITextPointer pointer, out char[] text, out int position)
1417ITextPointer navigator;
1467private static bool IsAtNonMergeableInlineEdge(ITextPointer position, LogicalDirection direction)
1473ITextPointer navigator = position.CreatePointer();
1487private static BorderingElementCategory GetBorderingElementCategory(ITextPointer position, LogicalDirection direction)
1513private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType)
System\Windows\Documents\TextRangeBase.cs (56)
58internal static bool Contains(ITextRange thisRange, ITextPointer textPointer)
113internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2)
152internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition)
184internal static void SelectWord(ITextRange thisRange, ITextPointer position)
191ITextPointer normalizedPosition = position.CreatePointer();
234internal static void SelectParagraph(ITextRange thisRange, ITextPointer position)
238ITextPointer start;
239ITextPointer end;
288ITextPointer nextPosition = thisRange.End.CreatePointer();
305ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward);
327internal static void FindParagraphOrListItemBoundaries(ITextPointer position, out ITextPointer start, out ITextPointer end)
341private static void SkipParagraphContent(ITextPointer navigator, LogicalDirection direction)
399ITextPointer position = textSegment.Start.CreatePointer();
431private static object GetCharacterValueFromPosition(ITextPointer pointer, DependencyProperty formattingProperty)
468ITextPointer position = textSegment.Start.CreatePointer();
511ITextPointer startNavigator = thisRange.Start.CreatePointer();
512ITextPointer endNavigator = thisRange.End.CreatePointer();
650internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition)
662internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition, ref Char[] charArray)
670ITextPointer navigator = startPosition.CreatePointer();
745private static void PlainConvertTextRun(StringBuilder textBuffer, ITextPointer navigator, ITextPointer endPosition, ref Char[] charArray)
757private static void PlainConvertParagraphEnd(StringBuilder textBuffer, ITextPointer navigator)
794private static void PlainConvertListStart(ITextPointer navigator, ref Stack<int> listItemCounter)
808private static void PlainConvertListEnd(ITextPointer navigator, ref Stack<int> listItemCounter)
822private static void PlainConvertListItemStart(StringBuilder textBuffer, ITextPointer navigator, ref Stack<int> listItemCounter)
856private static void PlainConvertAccessKey(StringBuilder textBuffer, ITextPointer navigator)
1187internal static ITextPointer GetStart(ITextRange thisRange)
1195internal static ITextPointer GetEnd(ITextRange thisRange)
1250ITextPointer start = thisRange.Start;
1287ITextPointer explicitInsertPosition = null;
1348ITextPointer insertPosition = explicitInsertPosition ?? thisRange.Start;
1372ITextPointer newStart = insertPosition.GetFrozenPointer(LogicalDirection.Backward);
1373ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward);
1616ITextPointer start = range.Start.CreatePointer();
1625ITextPointer end = range.End.CreatePointer();
1699private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end)
1783private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1799private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1801ITextPointer normalizedPosition;
1918ITextPointer start = thisRange._TextSegments[0].Start;
1919ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
1981private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged)
2015ITextPointer newStart = position1;
2016ITextPointer newEnd = position2;
2038ITextPointer finalStart = thisRange._TextSegments[0].Start;
2039ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeSerialization.cs (37)
71ITextPointer commonAncestor = FindSerializationCommonAncestor(range);
160if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0)
189private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements)
199ITextPointer textReader = rangeStart.CreatePointer();
243ITextPointer ptr = textReader.CreatePointer();
277ITextPointer endPointer = textReader.CreatePointer();
353ITextPointer pointer = textSegment.Start.CreatePointer();
415private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
427ITextPointer previousLevel = thisElement.CreatePointer();
445ITextPointer position = thisElement.CreatePointer();
464ITextPointer position = thisElement.CreatePointer();
488ITextPointer position = thisElement.CreatePointer();
535private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements)
644private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot)
764private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
767ITextPointer outerContext = null;
829private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
834ITextPointer parentContext = onlyAffected ? null : context.CreatePointer();
948private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties)
1666private static ITextPointer FindSerializationCommonAncestor(ITextRange range)
1669ITextPointer commonAncestor = range.Start.CreatePointer();
1670ITextPointer runningEnd = range.End.CreatePointer();
1702ITextPointer hyperlinkStart = GetHyperlinkStart(range);
1719private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range)
1735ITextPointer navigator = commonAncestor.CreatePointer();
1843private static bool IsPartialNonTypographic(ITextPointer textReader, ITextPointer rangeEnd)
1849ITextPointer elementNavigation = textReader.CreatePointer();
1850ITextPointer elementEnd = textReader.CreatePointer();
1871private static bool IsHyperlinkInvalid(ITextPointer textReader, ITextPointer rangeEnd)
1882ITextPointer hyperlinkNavigation = textReader.CreatePointer();
1883ITextPointer hyperlinkEnd = textReader.CreatePointer();
1915private static ITextPointer GetHyperlinkStart(ITextRange range)
1917ITextPointer hyperlinkStart = null;
System\windows\Documents\TextSelection.cs (44)
85void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition)
102void ITextRange.SelectWord(ITextPointer position)
121void ITextRange.SelectParagraph(ITextPointer position)
241ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
379ITextPointer ITextSelection.AnchorPosition
392ITextPointer ITextSelection.MovingPosition
397ITextPointer movingPosition;
439void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace)
454ITextPointer reversePosition = caretPosition.CreatePointer(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward);
546void ITextSelection.ExtendToPosition(ITextPointer position)
554ITextPointer anchorPosition = thisSelection.AnchorPosition;
576ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
577ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
578ITextPointer newMovingPosition;
641private ITextPointer GetNextTextSegmentInsertionPosition(LogicalDirection direction)
665ITextPointer position = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/false);
776void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
793void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection)
813ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
821ITextPointer startPosition;
822ITextPointer movingPosition;
854private bool BeginMouseSelectionProcess(ITextPointer cursorPosition)
880private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange)
1065ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer();
1832private void SetActivePositions(ITextPointer anchorPosition, ITextPointer movingPosition)
1872private MovingEdge ConvertToMovingEdge(ITextPointer anchorPosition, ITextPointer movingPosition)
1924private void MoveSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
1934ITextPointer movingPosition = null;
1960private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect)
2103ITextPointer caretPosition = IdentifyCaretPosition(this);
2153private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection)
2155ITextPointer caretPosition = currentTextSelection.MovingPosition;
2194private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition)
2251ITextPointer nextCharacterPosition;
2344private static double CalculateScrollToOriginPosition(TextEditor textEditor, ITextPointer caretPosition, double horizontalCaretPosition)
2656private ITextPointer PropertyPosition
2661ITextPointer position = null;
2730private ITextPointer _anchorPosition;
2749private ITextPointer _previousCursorPosition;
2752private ITextPointer _reenterPosition;
System\Windows\Documents\TextStore.cs (71)
349ITextPointer start;
350ITextPointer end;
394ITextPointer navigator;
395ITextPointer limit;
484ITextPointer start;
485ITextPointer end;
644ITextPointer startNavigator;
645ITextPointer endNavigator;
677ITextPointer start;
678ITextPointer end;
863ITextPointer position;
936ITextPointer position;
978ITextPointer positionCur = position.CreatePointer(LogicalDirection.Backward);
979ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward);
1011ITextPointer startPointer;
1012ITextPointer endPointer;
1065ITextPointer navigator = startPointer.CreatePointer();
1074ITextPointer end;
1080ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start;
1228ITextPointer start;
1229ITextPointer end;
1326ITextPointer oldStart;
1327ITextPointer oldEnd;
1331ITextPointer newStart = null;
1332ITextPointer newEnd = null;
1395ITextPointer start;
1396ITextPointer end;
1480ITextPointer navigator;
1753ITextPointer compositionStart;
1754ITextPointer compositionEnd;
1817private bool GetFnReconv(ITextPointer textStart, ITextPointer textEnd, out UnsafeNativeMethods.ITfFnReconversion funcReconv, out UnsafeNativeMethods.ITfRange rangeNew)
1896internal ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
1900ITextPointer pointer = this.TextContainer.CreatePointerAtCharOffset(charOffset, direction);
2440private static bool WalkTextRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2501private static bool WalkObjectRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2543private static bool WalkRegionBoundary(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2889private void TextPositionsFromITfRange(UnsafeNativeMethods.ITfRange range, out ITextPointer start, out ITextPointer end)
2909private void GetCompositionPositions(out ITextPointer start, out ITextPointer end)
2925private void GetCompositionPositions(UnsafeNativeMethods.ITfCompositionView view, out ITextPointer start, out ITextPointer end)
2991ITextPointer positionCurrent;
2992ITextPointer positionNext;
3108private CompositionParentUndoUnit OpenCompositionUndoUnit(ITextPointer compositionStart, ITextPointer compositionEnd)
3128ITextPointer start;
3160private static Rect GetLineBounds(ITextPointer start, ITextPointer end)
3173ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward);
3348private void BreakTypingSequence(ITextPointer caretPosition)
3362private static void GetAdjustedSelection(ITextPointer startIn, ITextPointer endIn, out ITextPointer startOut, out ITextPointer endOut)
3445private void GetNormalizedRange(int startCharOffset, int endCharOffset, out ITextPointer start, out ITextPointer end)
3628ITextPointer start = this.TextContainer.CreatePointerAtOffset(record.StartOffsetBefore, LogicalDirection.Backward);
3629ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward);
3947ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward);
3948ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward);
3968ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(imeSelectionAnchorOffset, LogicalDirection.Backward);
3969ITextPointer moving = this.TextContainer.CreatePointerAtOffset(imeSelectionMovingOffset, LogicalDirection.Backward);
4333internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit)
4548private ITextPointer _previousCompositionStart;
4551private ITextPointer _previousCompositionEnd;