src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (36)
81ITextPointer start = highlightRange.Range.Start;
82ITextPointer end = highlightRange.Range.End;
101ITextPointer invalidateStart;
102ITextPointer invalidateEnd;
134ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
135ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
185ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
186ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
214ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
215ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
288ITextPointer dynamicPosition;
354private void ProcessOverlapingSegments(IHighlightRange highlightRange, out ITextPointer invalidateStart, out ITextPointer invalidateEnd)
470private ITextPointer GetNextForwardPosition(StaticTextPointer pos)
495private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
515void GetSpannedSegments(ITextPointer start, ITextPointer end, out int startSeg, out int endSeg)
574internal AnnotationHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
624internal HighlightSegment(ITextPointer start, ITextPointer end, IHighlightRange owner)
640internal HighlightSegment(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners)
655private void Init(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners)
782internal IList<HighlightSegment> Split(ITextPointer ps, LogicalDirection side)
812internal IList<HighlightSegment> Split(ITextPointer ps1, ITextPointer ps2, IHighlightRange newOwner)
1010ITextPointer cursor = _segment.Start.CreatePointer();
1011ITextPointer segmentStart = null;
1077private void OpenSegment(ref ITextPointer segmentStart, ITextPointer cursor)
1088private void CloseSegment(ref ITextPointer segmentStart, ITextPointer cursor, ITextPointer end)
1099ITextPointer segmentEnd = cursor.GetInsertionPosition(LogicalDirection.Backward);
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (21)
100internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
119internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
147internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
173internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
175ITextPointer positionOut;
202internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
204ITextPointer positionOut = position;
243internal override bool IsAtCaretUnitBoundary(ITextPointer position)
260internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
277internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
294internal override TextSegment GetLineRange(ITextPointer position)
311internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
328internal override bool Contains(ITextPointer position)
408/// <see cref="ITextView.Validate(ITextPointer)"/>
410internal override bool Validate(ITextPointer position)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (47)
94internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
96ITextPointer position = null;
119internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
148internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
166ITextPointer startPositionInTextSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start;
167ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
191internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
206internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
219internal override bool IsAtCaretUnitBoundary(ITextPointer position)
241internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
243ITextPointer positionOut = null;
263internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
265ITextPointer positionOut = null;
285internal override TextSegment GetLineRange(ITextPointer position)
307internal override bool Contains(ITextPointer position)
320internal override void BringPositionIntoViewAsync(ITextPointer position, object userState)
384ITextPointer position;
483internal override void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
507internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
608internal ITextView GetPageTextViewFromPosition(ITextPointer position)
760ITextPointer newPosition;
832ITextPointer newPosition;
869private ITextPointer GetPositionAtNextLineCore(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved, out int pageNumber)
871ITextPointer positionOut;
973private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber)
976ITextPointer positionOut = position;
1027private ITextPointer GetPositionAtPageBoundary(bool pageTop, ITextView pageTextView, ITextPointer position, double suggestedX)
1031ITextPointer positionOut;
1141private DocumentPageTextView GetTextViewFromPosition(ITextPointer position)
1368ITextPointer newPosition;
1599internal BringPositionIntoViewRequest(ITextPointer position, object userState)
1605internal readonly ITextPointer Position;
1621internal ITextPointer Position;
1629internal BringLineIntoViewRequest(ITextPointer position, double suggestedX, int count, object userState)
1639internal readonly ITextPointer Position;
1642internal ITextPointer NewPosition;
1653internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState)
1663internal readonly ITextPointer Position;
1666internal ITextPointer NewPosition;
src\Framework\MS\Internal\Documents\ParagraphResult.cs (29)
84internal virtual bool Contains(ITextPointer position, bool strict)
103internal ITextPointer StartPosition
115internal ITextPointer EndPosition
248internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
357internal Rect GetRectangleFromTextPosition(ITextPointer position)
370internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
379internal bool IsAtCaretUnitBoundary(ITextPointer position)
391internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
400internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
414internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
428internal override bool Contains(ITextPointer position, bool strict)
637internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position)
649internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
661internal CellParaClient GetCellParaClientFromPosition(ITextPointer position)
713internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
1091internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
1098ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition;
1264internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
1271ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition;
1348internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
src\Framework\MS\Internal\Documents\TextBoxView.cs (40)
604ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
611ITextPointer position;
629Rect ITextView.GetRectangleFromTextPosition(ITextPointer position)
683Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
693Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
749ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
772ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
782ITextPointer nextLinePosition;
804ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
819bool ITextView.IsAtCaretUnitBoundary(ITextPointer position)
858ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
927ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
935ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position)
975ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
983TextSegment ITextView.GetLineRange(ITextPointer position)
990ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
991ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward);
999ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end)
1009bool ITextView.Contains(ITextPointer position)
1017void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState)
1039void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
1050void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
1087/// <see cref="ITextView.Validate(ITextPointer)"/>
1089bool ITextView.Validate(ITextPointer position)
1309ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward);
1310ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count-1].EndOffset, LogicalDirection.Forward);
1694private int GetLineIndexFromPosition(ITextPointer position)
1700private int GetLineIndexFromPosition(ITextPointer position, LogicalDirection direction)
1750private ITextPointer GetTextPositionFromDistance(int lineIndex, double x)
2055ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2100ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2151ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2179ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2898private bool Contains(ITextPointer position)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (24)
118internal bool Contains(ITextPointer position, bool strict)
158internal ITextPointer StartPosition
162ITextPointer startPosition = null;
170internal ITextPointer EndPosition
174ITextPointer endPosition = null;
316internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart)
400internal static bool IsImmediateAutomationChild(ITextPointer elementStart, ITextPointer ownerContentStart)
405ITextPointer position = elementStart.CreatePointer();
436internal static AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end, out ITextPointer elementStart, out ITextPointer elementEnd)
440ITextPointer position;
442List<ITextPointer> positionsStart, positionsEnd;
447positionsStart = new List<ITextPointer>();
463positionsEnd = new List<ITextPointer>();
543internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element)
545ITextPointer textPointer;
592internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction)
608internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject)
611ITextPointer position;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (88)
69internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
92internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
117internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
162ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start;
163ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
233internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
235ITextPointer positionOut;
287internal override bool IsAtCaretUnitBoundary(ITextPointer position)
306internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
326internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
345internal override TextSegment GetLineRange(ITextPointer position)
364internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
393internal override bool Contains(ITextPointer position)
470internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments)
688private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements)
690ITextPointer position;
751private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText)
753ITextPointer position = null;
908private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText)
910ITextPointer position = null;
1119private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1156private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position)
1259private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1282ITextPointer startPosition,
1283ITextPointer endPosition,
1350ITextPointer startPosition,
1351ITextPointer endPosition,
1376ITextPointer startPosition,
1377ITextPointer endPosition,
1459private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1494private bool IsAtCaretUnitBoundary(ParagraphResult paragraph, ITextPointer position)
1565private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1584private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction)
1588ITextPointer nextCaretPosition = position;
1621private ITextPointer GetNextCaretUnitPosition(ParagraphResult paragraph, ITextPointer position, LogicalDirection direction)
1623ITextPointer nextCaretPosition = position;
1693private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction)
1710private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1714ITextPointer backspaceCaretPosition = position;
1745private ITextPointer GetBackspaceCaretUnitPosition(ParagraphResult paragraph, ITextPointer position)
1747ITextPointer backspaceCaretPosition = position;
1815private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2132private int GetColumnFromPosition(ReadOnlyCollection<ColumnResult> columns, ITextPointer position)
2183private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, out bool isFloatingPara)
2209private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position)
2280private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2315private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position)
2419private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2450private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position, double suggestedX, ref int count, out bool positionFound)
2455ITextPointer positionOut = position;
2670private ITextPointer GetPositionAtNextLineInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out bool positionFound)
2673ITextPointer positionOut = position;
2721private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out double newSuggestedX, out bool positionFound)
2723ITextPointer positionOut = null;
2762ITextPointer siblingColumnPosition = GetPositionAtNextLineFromSiblingColumn(columns, columnIndex, suggestedX, ref newSuggestedX, ref count);
2793private ITextPointer GetPositionAtNextLineFromSiblingPara(ReadOnlyCollection<ParagraphResult> paragraphs, int paragraphIndex, double suggestedX, ref int count)
2798ITextPointer positionOut = null;
2957private ITextPointer GetPositionAtNextLineFromSiblingTextPara(TextParagraphResult paragraph, double suggestedX, ref int count)
2959ITextPointer positionOut = null;
3075private ITextPointer GetPositionAtNextLineFromSiblingColumn(ReadOnlyCollection<ColumnResult> columns, int columnIndex, double columnSuggestedX, ref double newSuggestedX, ref int count)
3077ITextPointer positionOut = null;
3123private bool ContainsCore(ITextPointer position)
3138private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs)
3152ITextPointer startRange = start.CompareTo(tpr.StartPosition) < 0 ? tpr.StartPosition : start;
3153ITextPointer endRange = end.CompareTo(tpr.EndPosition) < 0 ? end : tpr.EndPosition;
3191private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success)
3203ITextPointer endThisPara = end.CompareTo(paragraph.EndPosition) < 0 ? end : paragraph.EndPosition;
3236private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements)
3295ITextPointer segmentEnd = _textContainer.End;
3486private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
3516private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
src\Framework\MS\Internal\Documents\TextParagraphView.cs (20)
70internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
72ITextPointer position;
93internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
115internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
147internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
149ITextPointer positionOut;
213internal override bool IsAtCaretUnitBoundary(ITextPointer position)
232internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
245ITextPointer positionOut = _owner.GetNextCaretUnitPosition(position, direction, dcp, lineIndex);
255internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
268ITextPointer positionOut = _owner.GetBackspaceCaretUnitPosition(position, dcp, lineIndex);
278internal override TextSegment GetLineRange(ITextPointer position)
307internal override bool Contains(ITextPointer position)
349internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText)
352ITextPointer orientedPosition;
384internal static int GetLineFromPosition(ReadOnlyCollection<LineResult> lines, ITextPointer position)
src\Framework\MS\Internal\Documents\TextViewBase.cs (49)
39internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
48internal virtual Rect GetRectangleFromTextPosition(ITextPointer position)
64internal abstract Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform);
69internal abstract Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition);
74internal abstract ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved);
79internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
89internal abstract bool IsAtCaretUnitBoundary(ITextPointer position);
94internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction);
99internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position);
104internal abstract TextSegment GetLineRange(ITextPointer position);
109internal virtual ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
122internal abstract bool Contains(ITextPointer position);
180internal virtual void BringPositionIntoViewAsync(ITextPointer position, object userState)
195ITextPointer position;
209internal virtual void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
211ITextPointer newPosition;
227internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
229ITextPointer newPosition;
266/// <see cref="ITextView.Validate(ITextPointer)"/>
268internal virtual bool Validate(ITextPointer position)
469ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
477Rect ITextView.GetRectangleFromTextPosition(ITextPointer position)
485Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
493Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
501ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
509ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
517bool ITextView.IsAtCaretUnitBoundary(ITextPointer position)
525ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
533ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position)
541TextSegment ITextView.GetLineRange(ITextPointer position)
549ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end)
557bool ITextView.Contains(ITextPointer position)
565void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState)
581void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
589void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
619/// <see cref="ITextView.Validate(ITextPointer)"/>
621bool ITextView.Validate(ITextPointer position)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (29)
756internal ITextPointer GetTextPosition(int dcp, LogicalDirection direction)
778internal Rect GetRectangleFromTextPosition(ITextPointer position)
847internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
946internal bool IsAtCaretUnitBoundary(ITextPointer position)
1006internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
1008ITextPointer nextCaretPosition = position;
1059internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
1061ITextPointer backspaceCaretPosition = position;
1121internal ITextPointer GetTextPositionFromDistance(int dcpLine, double distance)
1268internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
2254ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2593ITextPointer position,
2689ITextPointer position,
2817private ITextPointer NextCaretUnitPositionFromDcpSimpleLines(
2819ITextPointer position,
2833ITextPointer nextCaretPosition = position;
2946private ITextPointer NextCaretUnitPositionFromDcpCompositeLines(
2948ITextPointer position,
2962ITextPointer nextCaretPosition = position;
3117private ITextPointer BackspaceCaretUnitPositionFromDcpSimpleLines(
3119ITextPointer position,
3132ITextPointer backspaceCaretPosition = position;
3213private ITextPointer BackspaceCaretUnitPositionFromDcpCompositeLines(
3215ITextPointer position,
3228ITextPointer backspaceCaretPosition = position;
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (24)
80internal void InsertText(ITextPointer position, string textData)
119internal void DeleteContent(ITextPointer startPosition, ITextPointer endPosition)
221ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
227ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
232ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
234return ((ITextPointer)position.Handle0).CreatePointer(direction);
244return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
249return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
254return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
259return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
269return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
274return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
279return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
282int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
284return ((ITextPointer)position1.Handle0).CompareTo(position2);
289return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
373ITextPointer ITextContainer.Start
387ITextPointer ITextContainer.End
519internal ITextPointer Start
533internal ITextPointer End
629private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
src\Framework\System\Windows\Controls\TextBlock.cs (14)
2213internal ITextPointer GetTextPositionFromDistance(int dcp, double distance, double lineVOffset, int index)
2230ITextPointer pos;
2259internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition)
2362internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
2388ITextPointer endOfLineTextPointer = _complexContent.TextContainer.Start.CreatePointer(0);
2476internal bool IsAtCaretUnitBoundary(ITextPointer position, int dcp, int lineIndex)
2544internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction, int dcp, int lineIndex)
2653ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2673internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position, int dcp, int lineIndex)
2741ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2925private static void InsertTextRun(ITextPointer position, string text, bool whitespacesIgnorable)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (69)
58delegate(ITextPointer tp)
69delegate(ITextPointer tp)
79delegate(ITextPointer tp)
118delegate(ITextPointer tp)
158delegate(ITextPointer tp)
169delegate(ITextPointer tp)
179delegate(ITextPointer tp)
189delegate(ITextPointer tp)
200delegate(ITextPointer tp)
210delegate(ITextPointer tp)
238delegate(ITextPointer tp)
248delegate(ITextPointer tp)
259delegate(ITextPointer tp)
270delegate(ITextPointer tp) { return false; },
277delegate(ITextPointer tp)
289delegate(ITextPointer tp)
304delegate(ITextPointer tp)
315delegate(ITextPointer tp)
326delegate(ITextPointer tp)
337delegate(ITextPointer tp)
348delegate(ITextPointer tp)
359delegate(ITextPointer tp)
370delegate(ITextPointer tp) { return OutlineStyles.None; },
377delegate(ITextPointer tp)
388delegate(ITextPointer tp)
399delegate(ITextPointer tp)
410delegate(ITextPointer tp)
421delegate(ITextPointer tp)
443delegate(ITextPointer tp)
454delegate(ITextPointer tp)
467internal TextRangeAdaptor(TextAdaptor textAdaptor, ITextPointer start, ITextPointer end, AutomationPeer textPeer)
490internal static bool MoveToInsertionPosition(ITextPointer position, LogicalDirection direction)
735private bool MoveToUnitBoundary(ITextPointer position, bool isStart, LogicalDirection direction, TextUnit unit)
803ITextPointer nextLineStart = null;
830ITextPointer previousLineEnd = null;
866ITextPointer nextParagraphStart = textRange.End;
887ITextPointer previousParagraphEnd = textRange.Start;
1000private int MovePositionByUnits(ITextPointer position, TextUnit unit, int count)
1038ITextPointer positionOrig = position.CreatePointer();
1165ITextPointer positionTemp = position.CreatePointer();
1215ITextPointer start = _start.CreatePointer();
1216ITextPointer end = _end.CreatePointer();
1276private static string GetFontFamilyName(FontFamily fontFamily, ITextPointer context)
1388private AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end)
1391ITextPointer elementStart, elementEnd;
1430private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end)
1450private static bool IsAtWordBoundary(ITextPointer position)
1465private static bool MoveToNextWordBoundary(ITextPointer position, LogicalDirection direction)
1468ITextPointer startPosition = position.CreatePointer();
1516private ITextPointer GetInsertionPosition(ITextPointer position, LogicalDirection direction)
1535private ITextPointer _start;
1536private ITextPointer _end;
1558internal delegate object GetValueAtDelegate(ITextPointer textPointer);
1636ITextPointer position = (endpoint == TextPatternRangeEndpoint.Start) ? _start : _end;
1637ITextPointer targetPosition = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
1687ITextPointer attrStart = null;
1688ITextPointer attrEnd = null;
1692ITextPointer stop = _start;
1693ITextPointer position = _end.CreatePointer(LogicalDirection.Backward);
1723ITextPointer stop = _end;
1724ITextPointer position = _start.CreatePointer(LogicalDirection.Forward);
1916ITextPointer position = _start.CreatePointer();
1968ITextPointer positionRef = start ? _start : _end;
1969ITextPointer position = positionRef.CreatePointer();
2033ITextPointer targetPointer = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (25)
115ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
121ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
126ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
128return ((ITextPointer)position.Handle0).CreatePointer(direction);
138return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
143return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
148return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
153return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
163return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
168return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
173return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
176int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
178return ((ITextPointer)position1.Handle0).CompareTo(position2);
183return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
233ITextPointer ITextContainer.Start
246ITextPointer ITextContainer.End
362internal DocumentSequenceTextPointer VerifyPosition(ITextPointer position)
386internal DocumentSequenceTextPointer MapChildPositionToParent(ITextPointer tp)
559private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
744ITextPointer tpChildStart, tpChildEnd;
1013ITextPointer dynamicTextPointer = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward);
1014ITextPointer parentTextPointer = ((DocumentSequenceTextContainer)this.TextContainer).MapChildPositionToParent(dynamicTextPointer);
1042ITextPointer childTp = parentChangePosition.ChildPointer;
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (134)
40internal DocumentSequenceTextPointer(ChildDocumentBlock childBlock, ITextPointer childPosition)
57/// <see cref="ITextPointer.SetLogicalDirection"/>
59void ITextPointer.SetLogicalDirection(LogicalDirection direction)
66/// <see cref="ITextPointer.CompareTo(ITextPointer)"/>
68int ITextPointer.CompareTo(ITextPointer position)
74/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/>
76int ITextPointer.CompareTo(StaticTextPointer position)
78return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0);
82/// <see cref="ITextPointer.GetOffsetToPosition"/>
84int ITextPointer.GetOffsetToPosition(ITextPointer position)
90/// <see cref="ITextPointer.GetPointerContext"/>
92TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
98/// <see cref="ITextPointer.GetTextRunLength"/>
101int ITextPointer.GetTextRunLength(LogicalDirection direction)
107string ITextPointer.GetTextInRun(LogicalDirection direction)
113/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
116int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
122/// <see cref="ITextPointer.GetAdjacentElement"/>
125object ITextPointer.GetAdjacentElement(LogicalDirection direction)
131/// <see cref="ITextPointer.GetElementType"/>
134Type ITextPointer.GetElementType(LogicalDirection direction)
140/// <see cref="ITextPointer.HasEqualScope"/>
142bool ITextPointer.HasEqualScope(ITextPointer position)
149/// <see cref="ITextPointer.GetValue"/>
152object ITextPointer.GetValue(DependencyProperty property)
158/// <see cref="ITextPointer.ReadLocalValue"/>
161object ITextPointer.ReadLocalValue(DependencyProperty property)
167/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
170LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
176/// <see cref="ITextPointer.CreatePointer()"/>
178ITextPointer ITextPointer.CreatePointer()
186/// <see cref="ITextPointer.CreateStaticPointer"/>
188StaticTextPointer ITextPointer.CreateStaticPointer()
190return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
194/// <see cref="ITextPointer.CreatePointer(int)"/>
196ITextPointer ITextPointer.CreatePointer(int distance)
202/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
204ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
210/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
212ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
218void ITextPointer.Freeze()
224/// <see cref="ITextPointer.GetFrozenPointer"/>
226ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
237void ITextPointer.InsertTextInRun(string textData)
249void ITextPointer.DeleteContentToPosition(ITextPointer limit)
255ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
257ITextPointer pointer = ((ITextPointer)this).CreatePointer();
270ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
272ITextPointer pointer = ((ITextPointer)this).CreatePointer();
281ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
283ITextPointer pointer = ((ITextPointer)this).CreatePointer();
290ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
292ITextPointer pointer = ((ITextPointer)this).CreatePointer();
304/// <see cref="ITextPointer.ValidateLayout"/>
305bool ITextPointer.ValidateLayout()
307return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView);
335Type ITextPointer.ParentType
344/// <see cref="ITextPointer.TextContainer"/>
346ITextContainer ITextPointer.TextContainer
352bool ITextPointer.HasValidLayout
356return (((ITextPointer)this).TextContainer.TextView != null &&
357((ITextPointer)this).TextContainer.TextView.IsValid &&
358((ITextPointer)this).TextContainer.TextView.Contains(this));
363bool ITextPointer.IsAtCaretUnitBoundary
367Invariant.Assert(((ITextPointer)this).HasValidLayout);
368ITextView textView = ((ITextPointer)this).TextContainer.TextView;
371if (!isAtCaretUnitBoundary && ((ITextPointer)this).LogicalDirection == LogicalDirection.Backward)
379ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward);
387/// <see cref="ITextPointer.LogicalDirection"/>
389LogicalDirection ITextPointer.LogicalDirection
397bool ITextPointer.IsAtInsertionPosition
403bool ITextPointer.IsFrozen
412int ITextPointer.Offset
421int ITextPointer.CharOffset
453/// <see cref="ITextPointer.MoveByOffset"/>
455bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
463/// <see cref="ITextPointer.MoveByOffset"/>
465int ITextPointer.MoveByOffset(int offset)
480/// <see cref="ITextPointer.MoveToPosition"/>
482void ITextPointer.MoveToPosition(ITextPointer position)
502/// <see cref="ITextPointer.MoveToElementEdge"/>
504void ITextPointer.MoveToElementEdge(ElementEdge edge)
512int ITextPointer.MoveToLineBoundary(int count)
514return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true);
518Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
523bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
528bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
564internal ITextPointer ChildPointer
607/// <see cref="ITextPointer.CompareTo(ITextPointer)"/>
609public static int CompareTo(DocumentSequenceTextPointer thisTp, ITextPointer position)
619/// <see cref="ITextPointer.GetOffsetToPosition"/>
621public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position)
641/// <see cref="ITextPointer.GetPointerContext"/>
651/// <see cref="ITextPointer.GetTextRunLength"/>
662/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
694/// <see cref="ITextPointer.GetAdjacentElement"/>
705/// <see cref="ITextPointer.GetElementType"/>
718/// <see cref="ITextPointer.GetElementType"/>
726/// <see cref="ITextPointer.HasEqualScope"/>
728public static bool HasEqualScope(DocumentSequenceTextPointer thisTp, ITextPointer position)
741/// <see cref="ITextPointer.GetValue"/>
755/// <see cref="ITextPointer.ReadLocalValue"/>
769/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
777public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp)
782public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance)
787public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, LogicalDirection gravity)
793/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
795public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance, LogicalDirection gravity)
899ITextPointer pointer = thisTp.ChildPointer;
1049ITextPointer childTn = thisTp.ChildPointer;
1138private ITextPointer _childTp;
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (17)
84internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
92ITextPointer childOTP = ChildTextView.GetTextPositionFromPoint(point, snapToText);
131internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
160internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
212internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
233ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.LogicalDirection), suggestedX, count, out newSuggestedX, out linesMoved);
265internal override bool IsAtCaretUnitBoundary(ITextPointer position)
315internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
344internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
373internal override TextSegment GetLineRange(ITextPointer position)
426internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
446internal override bool Contains(ITextPointer position)
src\Framework\System\Windows\Documents\FixedTextContainer.cs (22)
100ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
106ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
111ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
113return ((ITextPointer)position.Handle0).CreatePointer(direction);
123return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
128return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
133return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
138return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
148return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
153return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
158return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
161int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
163return ((ITextPointer)position1.Handle0).CompareTo(position2);
168return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
202ITextPointer ITextContainer.Start
215ITextPointer ITextContainer.End
329internal FixedTextPointer VerifyPosition(ITextPointer position)
352internal int GetPageNumber(ITextPointer textPointer)
625private bool _GetFixedNodesForFlowRange(ITextPointer start, ITextPointer end, out FixedSOMElement[] elements, out int startIndex, out int endIndex)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (124)
71internal int CompareTo(ITextPointer position)
78int ITextPointer.CompareTo(StaticTextPointer position)
80return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0);
88int ITextPointer.CompareTo(ITextPointer position)
96int ITextPointer.GetOffsetToPosition(ITextPointer position)
106TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
116int ITextPointer.GetTextRunLength(LogicalDirection direction)
127string ITextPointer.GetTextInRun(LogicalDirection direction)
133/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
136int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
156/// <see cref="ITextPointer.GetAdjacentElement"/>
159object ITextPointer.GetAdjacentElement(LogicalDirection direction)
171/// <see cref="ITextPointer.GetElementType"/>
174Type ITextPointer.GetElementType(LogicalDirection direction)
190/// <see cref="ITextPointer.HasEqualScope"/>
192bool ITextPointer.HasEqualScope(ITextPointer position)
204/// <see cref="ITextPointer.GetValue"/>
207object ITextPointer.GetValue(DependencyProperty property)
219/// <see cref="ITextPointer.ReadLocalValue"/>
222object ITextPointer.ReadLocalValue(DependencyProperty property)
239/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
242LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
255/// <see cref="ITextPointer.CreatePointer()"/>
257ITextPointer ITextPointer.CreatePointer()
259return ((ITextPointer)this).CreatePointer(0, ((ITextPointer)this).LogicalDirection);
265/// <see cref="ITextPointer.CreateStaticPointer"/>
267StaticTextPointer ITextPointer.CreateStaticPointer()
269return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
273/// <see cref="ITextPointer.CreatePointer(int)"/>
275ITextPointer ITextPointer.CreatePointer(int distance)
277return ((ITextPointer)this).CreatePointer(distance, ((ITextPointer)this).LogicalDirection);
281/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
283ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
285return ((ITextPointer)this).CreatePointer(0, gravity);
289/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
291ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
305/// <see cref="ITextPointer.Freeze"/>
307void ITextPointer.Freeze()
313/// <see cref="ITextPointer.GetFrozenPointer"/>
315ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
322/// <see cref="ITextPointer.GetNextContextPosition"/>
324ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
326ITextPointer pointer = ((ITextPointer)this).CreatePointer();
340/// <see cref="ITextPointer.GetInsertionPosition"/>
342ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
344ITextPointer pointer = ((ITextPointer)this).CreatePointer();
354/// <see cref="ITextPointer.GetFormatNormalizedPosition"/>
356ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
358ITextPointer pointer = ((ITextPointer)this).CreatePointer();
366/// <see cref="ITextPointer.GetNextInsertionPosition"/>
368ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
370ITextPointer pointer = ((ITextPointer)this).CreatePointer();
385/// <see cref="ITextPointer.SetLogicalDirection"/>
388void ITextPointer.SetLogicalDirection(LogicalDirection direction)
396/// <see cref="ITextPointer.MoveByOffset"/>
398bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
410/// <see cref="ITextPointer.MoveByOffset"/>
412int ITextPointer.MoveByOffset(int offset)
427/// <see cref="ITextPointer.MoveToPosition"/>
429void ITextPointer.MoveToPosition(ITextPointer position)
439/// <see cref="ITextPointer.MoveToElementEdge"/>
441void ITextPointer.MoveToElementEdge(ElementEdge edge)
475/// <see cref="ITextPointer.MoveToLineBoundary"/>
477int ITextPointer.MoveToLineBoundary(int count)
479return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true);
483/// <see cref="ITextPointer.GetCharacterRect"/>
485Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
491/// <see cref="ITextPointer.MoveToInsertionPosition"/>
493bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
499/// <see cref="ITextPointer.MoveToNextInsertionPosition"/>
501bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
514void ITextPointer.InsertTextInRun(string textData)
525/// <see cref="ITextPointer.DeleteContentToPosition"/>
527void ITextPointer.DeleteContentToPosition(ITextPointer limit)
533/// <see cref="ITextPointer.ValidateLayout"/>
535bool ITextPointer.ValidateLayout()
537return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView);
551/// <see cref="ITextPointer.ParentType"/>
553Type ITextPointer.ParentType
563/// <see cref="ITextPointer.TextContainer"/>
565ITextContainer ITextPointer.TextContainer
571/// <see cref="ITextPointer.HasValidLayout"/>
573bool ITextPointer.HasValidLayout
577return (((ITextPointer)this).TextContainer.TextView != null &&
578((ITextPointer)this).TextContainer.TextView.IsValid &&
579((ITextPointer)this).TextContainer.TextView.Contains(this));
584/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/>
586bool ITextPointer.IsAtCaretUnitBoundary
590Invariant.Assert(((ITextPointer)this).HasValidLayout);
591ITextView textView = ((ITextPointer)this).TextContainer.TextView;
602ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward);
610/// <see cref="ITextPointer.LogicalDirection"/>
612LogicalDirection ITextPointer.LogicalDirection
621/// <see cref="ITextPointer.IsAtInsertionPosition"/>
623bool ITextPointer.IsAtInsertionPosition
629/// <see cref="ITextPointer.IsFrozen"/>
631bool ITextPointer.IsFrozen
640/// <see cref="ITextPointer.Offset"/>
642int ITextPointer.Offset
652/// <see cref="ITextPointer.CharOffset"/>
654int ITextPointer.CharOffset
src\Framework\System\Windows\Documents\FixedTextView.cs (34)
81internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
87ITextPointer textPos = this.End;
99ITextPointer pos = null;
164internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
195ITextPointer psNext = position.CreatePointer(1);
253internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
345internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
356ITextPointer pos = position;
385((ITextPointer)nav).MoveToInsertionPosition(scanDir);
386((ITextPointer)nav).MoveToNextInsertionPosition(scanDir);
452internal override bool IsAtCaretUnitBoundary(ITextPointer position)
523internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
559ITextPointer pointer = position.CreatePointer();
578internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
597internal override TextSegment GetLineRange(ITextPointer position)
627ITextPointer begin = _CreateTextPointer(new FixedPosition(fixedNodes[0], 0), LogicalDirection.Forward);
628ITextPointer end = _CreateTextPointer(new FixedPosition(lastNode, lastIndex), LogicalDirection.Backward);
632ITextPointer temp = begin;
655internal override bool Contains(ITextPointer position)
834private ITextPointer _SnapToText(Point point)
837ITextPointer itp = null;
888itp = ((ITextPointer)this.Start).CreatePointer(LogicalDirection.Forward);
893itp = ((ITextPointer)this.End).CreatePointer(LogicalDirection.Backward);
1102TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir);
1126symbolType = ((ITextPointer)nav).GetPointerContext(textdir);
1130if (((ITextPointer)nav).MoveToNextInsertionPosition(textdir) &&
1168((ITextPointer)nav).MoveToNextInsertionPosition(dir);
1188private ITextPointer _CreateTextPointer(FixedPosition fixedPosition, LogicalDirection edge)
1204private ITextPointer _CreateTextPointerFromGlyphs(Glyphs g, Point point)
1219private void _SkipFormattingTags(ITextPointer textPointer)
src\Framework\System\Windows\Documents\ITextView.cs (38)
63ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
97Rect GetRectangleFromTextPosition(ITextPointer position);
136Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform);
144Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition);
196ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved);
207ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved);
234bool IsAtCaretUnitBoundary(ITextPointer position);
280ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction);
305ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position);
331TextSegment GetLineRange(ITextPointer position);
363ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end);
393bool Contains(ITextPointer position);
400void BringPositionIntoViewAsync(ITextPointer position, object userState);
419void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState);
431void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState);
477bool Validate(ITextPointer position);
603public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState)
631public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState)
655public ITextPointer Position
673private readonly ITextPointer _position;
700public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState)
715public ITextPointer Position
741public ITextPointer NewPosition
767private readonly ITextPointer _position;
781private readonly ITextPointer _newPosition;
816public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState)
831public ITextPointer Position
857public ITextPointer NewPosition
883private readonly ITextPointer _position;
897private readonly ITextPointer _newPosition;
src\Framework\System\Windows\Documents\NullTextNavigator.cs (112)
50int ITextPointer.CompareTo(ITextPointer position)
57int ITextPointer.CompareTo(StaticTextPointer position)
66int ITextPointer.GetOffsetToPosition(ITextPointer position)
74/// <see cref="ITextPointer.GetPointerContext"/>
76TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
83/// <see cref="ITextPointer.GetTextRunLength"/>
86int ITextPointer.GetTextRunLength(LogicalDirection direction)
93/// <see cref="ITextPointer.GetTextInRun(LogicalDirection)"/>
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)
111/// <see cref="ITextPointer.GetAdjacentElement"/>
114object ITextPointer.GetAdjacentElement(LogicalDirection direction)
121/// <see cref="ITextPointer.GetElementType"/>
124Type ITextPointer.GetElementType(LogicalDirection direction)
131/// <see cref="ITextPointer.HasEqualScope"/>
133bool ITextPointer.HasEqualScope(ITextPointer position)
139/// <see cref="ITextPointer.GetValue"/>
142object ITextPointer.GetValue(DependencyProperty property)
148/// <see cref="ITextPointer.ReadLocalValue"/>
150object ITextPointer.ReadLocalValue(DependencyProperty property)
156/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
159LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
165/// <see cref="ITextPointer.CreatePointer()"/>
167ITextPointer ITextPointer.CreatePointer()
169return ((ITextPointer)this).CreatePointer(0, _gravity);
174StaticTextPointer ITextPointer.CreateStaticPointer()
176return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
180/// <see cref="ITextPointer.CreatePointer(int)"/>
182ITextPointer ITextPointer.CreatePointer(int distance)
184return ((ITextPointer)this).CreatePointer(distance, _gravity);
188/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
190ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
192return ((ITextPointer)this).CreatePointer(0, gravity);
196/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
198ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
206void ITextPointer.Freeze()
212/// <see cref="ITextPointer.GetFrozenPointer"/>
214ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
224/// <see cref="ITextPointer.SetLogicalDirection"/>
227void ITextPointer.SetLogicalDirection(LogicalDirection direction)
236/// <see cref="ITextPointer.MoveByOffset"/>
238bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
248/// <see cref="ITextPointer.MoveByOffset"/>
250int ITextPointer.MoveByOffset(int distance)
260/// <see cref="ITextPointer.MoveToPosition"/>
262void ITextPointer.MoveToPosition(ITextPointer position)
270/// <see cref="ITextPointer.MoveToElementEdge"/>
272void ITextPointer.MoveToElementEdge(ElementEdge edge)
280/// <see cref="ITextPointer.MoveToLineBoundary"/>
282int ITextPointer.MoveToLineBoundary(int count)
289/// <see cref="ITextPointer.GetCharacterRect"/>
291Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
298/// <see cref="ITextPointer.MoveToInsertionPosition"/>
300bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
306/// <see cref="ITextPointer.MoveToNextInsertionPosition"/>
308bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
314/// <see cref="ITextPointer.InsertTextInRun"/>
316void ITextPointer.InsertTextInRun(string textData)
322/// <see cref="ITextPointer.DeleteContentToPosition"/>
324void ITextPointer.DeleteContentToPosition(ITextPointer limit)
331/// <see cref="ITextPointer.GetNextContextPosition"/>
333ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
335ITextPointer pointer = ((ITextPointer)this).CreatePointer();
349/// <see cref="ITextPointer.GetInsertionPosition"/>
351ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
353ITextPointer pointer = ((ITextPointer)this).CreatePointer();
363/// <see cref="ITextPointer.GetFormatNormalizedPosition"/>
365ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
367ITextPointer pointer = ((ITextPointer)this).CreatePointer();
375/// <see cref="ITextPointer.GetNextInsertionPosition"/>
377ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
379ITextPointer pointer = ((ITextPointer)this).CreatePointer();
392/// <see cref="ITextPointer.ValidateLayout"/>
394bool ITextPointer.ValidateLayout()
411/// <see cref="ITextPointer.ParentType"/>
413Type ITextPointer.ParentType
425/// <see cref="ITextPointer.TextContainer"/>
427ITextContainer ITextPointer.TextContainer
433/// <see cref="ITextPointer.HasValidLayout"/>
435bool ITextPointer.HasValidLayout
445/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/>
447bool ITextPointer.IsAtCaretUnitBoundary
457/// <see cref="ITextPointer.LogicalDirection"/>
459LogicalDirection ITextPointer.LogicalDirection
465/// <see cref="ITextPointer.IsAtInsertionPosition"/>
467bool ITextPointer.IsAtInsertionPosition
473/// <see cref="ITextPointer.IsFrozen"/>
475bool ITextPointer.IsFrozen
484/// <see cref="ITextPointer.Offset"/>
486int ITextPointer.Offset
496/// <see cref="ITextPointer.CharOffset"/>
498int ITextPointer.CharOffset
src\Framework\System\Windows\Documents\Speller.cs (73)
116internal SpellingError GetError(ITextPointer position, LogicalDirection direction, bool forceEvaluation)
118ITextPointer start;
119ITextPointer end;
150internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction)
192ITextPointer contextStart;
193ITextPointer contextEnd;
194ITextPointer contentStart;
195ITextPointer contentEnd;
258ITextPointer errorStart;
259ITextPointer errorEnd;
608ITextPointer start;
609ITextPointer end;
680private bool GetNextScanRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
682ITextPointer rawStart;
683ITextPointer rawEnd;
710private void GetNextScanRangeRaw(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
744private void AdjustScanRangeAroundComposition(ITextPointer rawStart, ITextPointer rawEnd,
745out ITextPointer start, out ITextPointer end)
764ITextPointer wordBreakLeft;
765ITextPointer wordBreakRight;
766ITextPointer caretPosition;
835private ScanStatus ScanRange(ITextPointer start, ITextPointer end, long timeLimit)
837ITextPointer contextStart;
838ITextPointer contextEnd;
839ITextPointer contentStart;
840ITextPointer contentEnd;
1087ITextPointer timeoutPosition = data.TextMap.MapOffsetToPosition(timeOutOffset);
1115ITextPointer errorStart;
1116ITextPointer errorEnd;
1164private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language,
1165out ITextPointer contentPosition, out ITextPointer contextPosition)
1167ITextPointer start;
1168ITextPointer end;
1169ITextPointer outwardPosition;
1170ITextPointer inwardPosition;
1399private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError)
1401ITextPointer closestErrorPosition;
1402ITextPointer searchPosition;
1403ITextPointer start;
1404ITextPointer end;
1439ITextPointer closestLanguageTransition = GetNextLanguageTransition(position, direction, language, searchPosition);
1471private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition)
1473ITextPointer navigator = position.CreatePointer();
1563private void ScanPosition(ITextPointer position, LogicalDirection direction)
1565ITextPointer start;
1566ITextPointer end;
1583private XmlLanguage GetCurrentLanguage(ITextPointer position)
1594private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language)
1777internal TextMap(ITextPointer contextStart, ITextPointer contextEnd,
1778ITextPointer contentStart, ITextPointer contentEnd)
1780ITextPointer position;
1892internal ITextPointer MapOffsetToPosition(int offset)
1928private bool IsAdjacentToFormatElement(ITextPointer pointer)
1952private readonly ITextPointer _basePosition;
1977internal ScanStatus(long timeLimit, ITextPointer startPosition)
2004internal ITextPointer TimeoutPosition
2011internal ITextPointer StartPosition
2020private readonly ITextPointer _startPosition;
2024private ITextPointer _timeoutPosition;
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (29)
38internal SpellerStatusTable(ITextPointer textContainerStart, SpellerHighlightLayer highlightLayer)
74ITextPointer end = e.ITextPosition.CreatePointer(e.Count);
84internal void GetFirstDirtyRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
109internal void MarkCleanRange(ITextPointer start, ITextPointer end)
116internal void MarkDirtyRange(ITextPointer start, ITextPointer end)
124internal void MarkErrorRange(ITextPointer start, ITextPointer end)
246out ITextPointer start, out ITextPointer end)
381private void MarkRange(ITextPointer start, ITextPointer end, RunType runType)
437private void AddRun(int index, ITextPointer start, ITextPointer end, RunType runType)
514ITextPointer errorStart;
515ITextPointer errorEnd;
555ITextPointer start;
556ITextPointer end;
587private void OnContentRemoved(ITextPointer position)
625ITextPointer runPosition = GetRun(i).Position;
655ITextPointer errorStart;
656ITextPointer errorEnd;
752private ITextPointer GetRunEndPositionDynamic(int index)
800internal Run(ITextPointer position, RunType runType)
806internal ITextPointer Position
818private ITextPointer _position;
src\Framework\System\windows\Documents\TextEditorSelection.cs (72)
126internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position)
136ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward);
138ITextPointer lineEnd = position.CreatePointer(LogicalDirection.Backward);
291ITextPointer position = TextEditorSelection.GetEndInner(This);
301ITextPointer originalMovingPosition;
313ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
335ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition);
336ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
380ITextPointer position = TextEditorSelection.GetStartInner(This);
390ITextPointer originalMovingPosition;
402ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
425ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition);
426ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward);
477ITextPointer position = TextEditorSelection.GetEndInner(This);
482ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
529ITextPointer position = TextEditorSelection.GetStartInner(This);
533ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
582ITextPointer position = TextEditorSelection.GetEndInner(This);
587ITextPointer movingPosition;
596ITextPointer targetPosition;
700ITextPointer position = TextEditorSelection.GetStartInner(This);
705ITextPointer movingPosition;
714ITextPointer targetPosition;
806ITextPointer startPositionInner = TextEditorSelection.GetStartInner(This);
827ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward);
858ITextPointer endPositionInner = TextEditorSelection.GetEndInner(This);
879ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation);
1044ITextPointer originalMovingPosition;
1065ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition);
1093ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition);
1094ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
1130private static void AdjustMovingPositionForSelectDownByLine(TextEditor This, ITextPointer newMovingPosition, ITextPointer originalMovingPosition, double suggestedX)
1216ITextPointer originalMovingPosition;
1237ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition);
1283ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition);
1284ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward);
1340ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
1381ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
1414ITextPointer movingPosition;
1425ITextPointer targetPosition;
1510ITextPointer movingPosition;
1521ITextPointer targetPosition;
1610ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This);
1655ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This);
1677ITextPointer destination = lineRange.End;
1698ITextPointer newDestination = destination.GetNextInsertionPosition(LogicalDirection.Forward);
2045ITextPointer position = textEditor.Selection.MovingPosition.CreatePointer();
2081ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start);
2151ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer();
2171ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer();
2215ITextPointer wordBoundary = textEditor.Selection.MovingPosition.CreatePointer();
2243private static Double GetSuggestedX(TextEditor This, out ITextPointer innerMovingPosition)
2291private static Double GetSuggestedYFromPosition(TextEditor This, ITextPointer position)
2325private static ITextPointer GetMovingPositionInner(TextEditor This)
2327ITextPointer movingPosition = This.Selection.MovingPosition;
2355private static ITextPointer GetStartInner(TextEditor This)
2367private static ITextPointer GetEndInner(TextEditor This)
2369ITextPointer end = This.Selection.End;
2378private static ITextPointer GetPositionAtLineStart(ITextPointer position)
2387private static ITextPointer GetPositionAtLineEnd(ITextPointer position)
2394private static void ExtendSelectionAndBringIntoView(ITextPointer position, TextEditor textEditor)
2400private static void BringIntoView(ITextPointer position, TextEditor textEditor)
2420ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward);
2432private static ITextPointer AdjustPositionAtTableRowEnd(ITextPointer position)
2436ITextPointer cellEnd = position.GetNextInsertionPosition(LogicalDirection.Backward);
2447private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position)
2449ITextPointer navigator = position.CreatePointer();
2464private static double GetAbsoluteXOffset(ITextView textview, ITextPointer position)
src\Framework\System\windows\Documents\TextEditorSpelling.cs (15)
39internal static SpellingError GetSpellingErrorAtPosition(TextEditor This, ITextPointer position, LogicalDirection direction)
65ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character);
104internal static ITextPointer GetNextSpellingErrorPosition(TextEditor This, ITextPointer position, LogicalDirection direction)
139ITextPointer textStart;
140ITextPointer textEnd;
143ITextPointer caretPosition;
183private static bool IsErrorAtNonMergeableInlineEdge(SpellingError spellingError, out ITextPointer textStart, out ITextPointer textEnd)
256private static ITextPointer GetNextTextPosition(ITextPointer position, ITextPointer limit, LogicalDirection direction, out char character)
305private static ITextPointer GetNextNonWhiteSpacePosition(ITextPointer position, ITextPointer limit)
src\Framework\System\Windows\Documents\TextFindEngine.cs (17)
93ITextPointer findContainerStartPosition,
94ITextPointer findContainerEndPosition,
184ITextPointer startPosition,
185ITextPointer endPosition,
197ITextPointer navigator;
227ITextPointer startFindTextPosition = navigator.CreatePointer();
282ITextPointer startMatchPosition = startFindTextPosition.CreatePointer();
285ITextPointer endMatchPosition = startFindTextPosition.CreatePointer();
310private static void GetContextualInformation(ITextPointer position, int oppositeEndOffset,
313ITextPointer oppositeEndPosition = position.CreatePointer(oppositeEndOffset, position.LogicalDirection);
329private static bool HasNeighboringSeparatorChar(ITextPointer position, LogicalDirection direction)
331ITextPointer nextPosition = position.GetNextInsertionPosition(direction);
340ITextPointer temp = position;
653ITextPointer startPosition,
654ITextPointer endPosition,
655ITextPointer navigator,
907private static bool IsAdjacentToFormatElement(ITextPointer pointer, LogicalDirection direction)
src\Framework\System\Windows\Documents\TextPointerBase.cs (79)
40internal static ITextPointer Min(ITextPointer position1, ITextPointer position2)
54internal static ITextPointer Max(ITextPointer position1, ITextPointer position2)
60internal static string GetTextInRun(ITextPointer position, LogicalDirection direction)
78internal static int GetTextWithLimit(ITextPointer thisPointer, LogicalDirection direction, char[] textBuffer, int startIndex, int count, ITextPointer limit)
136internal static bool IsAtInsertionPosition(ITextPointer position)
144internal static bool IsAtPotentialRunPosition(ITextPointer position)
180private static bool IsAtPotentialRunPosition(ITextPointer backwardPosition, ITextPointer forwardPosition)
229internal static bool IsAtPotentialParagraphPosition(ITextPointer position)
254internal static bool IsBeforeFirstTable(ITextPointer position)
266internal static bool IsInBlockUIContainer(ITextPointer position)
271internal static bool IsAtBlockUIContainerStart(ITextPointer position)
277internal static bool IsAtBlockUIContainerEnd(ITextPointer position)
284private static bool IsInAncestorScope(ITextPointer position, Type allowedParentType, Type limitingType)
286ITextPointer navigator = position.CreatePointer();
303internal static bool IsInAnchoredBlock(ITextPointer position)
309internal static bool IsInHyperlinkScope(ITextPointer position)
317internal static ITextPointer GetFollowingNonMergeableInlineContentStart(ITextPointer position)
319ITextPointer navigator = position.CreatePointer();
388internal static bool IsAtNonMergeableInlineStart(ITextPointer position)
394internal static bool IsAtNonMergeableInlineEnd(ITextPointer position)
401internal static bool IsPositionAtNonMergeableInlineBoundary(ITextPointer position)
406internal static bool IsAtFormatNormalizedPosition(ITextPointer position, LogicalDirection direction)
411internal static bool IsAtInsertionPosition(ITextPointer position, LogicalDirection direction)
416internal static bool IsAtNormalizedPosition(ITextPointer position, LogicalDirection direction, bool respectCaretUnitBoundaries)
453internal static int GetOffset(ITextPointer thisPosition)
471internal static bool IsAtWordBoundary(ITextPointer thisPosition, LogicalDirection insideWordDirection)
474ITextPointer navigator = thisPosition.CreatePointer();
512internal static TextSegment GetWordRange(ITextPointer thisPosition)
526internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction)
542ITextPointer navigator = thisPosition.CreatePointer();
545ITextPointer wordEnd = navigator;
548ITextPointer wordStart;
588private static ITextPointer RestrictWithinBlock(ITextPointer position, ITextPointer limit, LogicalDirection direction)
623internal static bool IsNextToPlainLineBreak(ITextPointer thisPosition, LogicalDirection direction)
654internal static bool IsNextToRichLineBreak(ITextPointer thisPosition, LogicalDirection direction)
663internal static bool IsNextToParagraphBreak(ITextPointer thisPosition, LogicalDirection direction)
674internal static bool IsNextToAnyBreak(ITextPointer thisPosition, LogicalDirection direction)
687internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView)
716internal static bool IsAtRowEnd(ITextPointer thisPosition)
728internal static bool IsAfterLastParagraph(ITextPointer thisPosition)
736internal static bool IsAtParagraphOrBlockUIContainerStart(ITextPointer pointer)
803internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count)
809internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart)
811ITextPointer position;
861internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction)
867internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope)
879ITextPointer insertionPosition = thisPointer.GetInsertionPosition(direction);
928internal static bool MoveToFormatNormalizedPosition(ITextPointer thisNavigator, LogicalDirection direction)
941internal static bool MoveToInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction)
964internal static bool MoveToNextInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction)
972ITextPointer initialPosition = thisNavigator.CreatePointer();
1072internal static bool MoveToNextWordBoundary(ITextPointer thisNavigator, LogicalDirection movingDirection)
1077ITextPointer startPosition = thisNavigator.CreatePointer();
1104internal static ITextPointer GetFrozenPointer(ITextPointer thisPointer, LogicalDirection logicalDirection)
1106ITextPointer frozenPointer;
1121/// <see cref="ITextPointer.ValidateLayout"/>
1122internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView)
1143private static bool NormalizePosition(ITextPointer thisNavigator, LogicalDirection direction, bool respectCaretUnitBoundaries)
1259private static int LeaveNonMergeableInlineBoundary(ITextPointer thisNavigator, LogicalDirection direction, int symbolCount)
1288private static int LeaveNonMergeableAncestor(ITextPointer thisNavigator, LogicalDirection direction)
1306private static bool IsAtNormalizedPosition(ITextPointer position, bool respectCaretUnitBoundaries)
1332private static bool IsAtCaretUnitBoundary(ITextPointer position)
1365private static bool IsInsideCompoundSequence(ITextPointer position)
1417private static void GetWordBreakerText(ITextPointer pointer, out char[] text, out int position)
1424ITextPointer navigator;
1474private static bool IsAtNonMergeableInlineEdge(ITextPointer position, LogicalDirection direction)
1480ITextPointer navigator = position.CreatePointer();
1494private static BorderingElementCategory GetBorderingElementCategory(ITextPointer position, LogicalDirection direction)
1520private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType)
src\Framework\System\Windows\Documents\TextRangeBase.cs (56)
63internal static bool Contains(ITextRange thisRange, ITextPointer textPointer)
121internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2)
160internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition)
192internal static void SelectWord(ITextRange thisRange, ITextPointer position)
202ITextPointer normalizedPosition = position.CreatePointer();
245internal static void SelectParagraph(ITextRange thisRange, ITextPointer position)
252ITextPointer start;
253ITextPointer end;
302ITextPointer nextPosition = thisRange.End.CreatePointer();
319ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward);
341internal static void FindParagraphOrListItemBoundaries(ITextPointer position, out ITextPointer start, out ITextPointer end)
355private static void SkipParagraphContent(ITextPointer navigator, LogicalDirection direction)
413ITextPointer position = textSegment.Start.CreatePointer();
445private static object GetCharacterValueFromPosition(ITextPointer pointer, DependencyProperty formattingProperty)
482ITextPointer position = textSegment.Start.CreatePointer();
525ITextPointer startNavigator = thisRange.Start.CreatePointer();
526ITextPointer endNavigator = thisRange.End.CreatePointer();
664internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition)
676internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition, ref Char[] charArray)
684ITextPointer navigator = startPosition.CreatePointer();
759private static void PlainConvertTextRun(StringBuilder textBuffer, ITextPointer navigator, ITextPointer endPosition, ref Char[] charArray)
771private static void PlainConvertParagraphEnd(StringBuilder textBuffer, ITextPointer navigator)
808private static void PlainConvertListStart(ITextPointer navigator, ref Stack<int> listItemCounter)
822private static void PlainConvertListEnd(ITextPointer navigator, ref Stack<int> listItemCounter)
836private static void PlainConvertListItemStart(StringBuilder textBuffer, ITextPointer navigator, ref Stack<int> listItemCounter)
870private static void PlainConvertAccessKey(StringBuilder textBuffer, ITextPointer navigator)
1201internal static ITextPointer GetStart(ITextRange thisRange)
1209internal static ITextPointer GetEnd(ITextRange thisRange)
1264ITextPointer start = thisRange.Start;
1304ITextPointer explicitInsertPosition = null;
1365ITextPointer insertPosition = (explicitInsertPosition == null) ? thisRange.Start : explicitInsertPosition;
1389ITextPointer newStart = insertPosition.GetFrozenPointer(LogicalDirection.Backward);
1390ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward);
1647ITextPointer start = range.Start.CreatePointer();
1656ITextPointer end = range.End.CreatePointer();
1730private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end)
1815private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1831private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1833ITextPointer normalizedPosition;
1950ITextPointer start = thisRange._TextSegments[0].Start;
1951ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
2013private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged)
2047ITextPointer newStart = position1;
2048ITextPointer newEnd = position2;
2070ITextPointer finalStart = thisRange._TextSegments[0].Start;
2071ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (37)
79ITextPointer commonAncestor = FindSerializationCommonAncestor(range);
168if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0)
201private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements)
211ITextPointer textReader = rangeStart.CreatePointer();
255ITextPointer ptr = textReader.CreatePointer();
289ITextPointer endPointer = textReader.CreatePointer();
365ITextPointer pointer = textSegment.Start.CreatePointer();
427private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
439ITextPointer previousLevel = thisElement.CreatePointer();
457ITextPointer position = thisElement.CreatePointer();
476ITextPointer position = thisElement.CreatePointer();
500ITextPointer position = thisElement.CreatePointer();
547private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements)
657private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot)
776private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
779ITextPointer outerContext = null;
841private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
846ITextPointer parentContext = onlyAffected ? null : context.CreatePointer();
961private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties)
1692private static ITextPointer FindSerializationCommonAncestor(ITextRange range)
1695ITextPointer commonAncestor = range.Start.CreatePointer();
1696ITextPointer runningEnd = range.End.CreatePointer();
1728ITextPointer hyperlinkStart = GetHyperlinkStart(range);
1745private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range)
1761ITextPointer navigator = commonAncestor.CreatePointer();
1869private static bool IsPartialNonTypographic(ITextPointer textReader, ITextPointer rangeEnd)
1875ITextPointer elementNavigation = textReader.CreatePointer();
1876ITextPointer elementEnd = textReader.CreatePointer();
1897private static bool IsHyperlinkInvalid(ITextPointer textReader, ITextPointer rangeEnd)
1908ITextPointer hyperlinkNavigation = textReader.CreatePointer();
1909ITextPointer hyperlinkEnd = textReader.CreatePointer();
1941private static ITextPointer GetHyperlinkStart(ITextRange range)
1943ITextPointer hyperlinkStart = null;
src\Framework\System\windows\Documents\TextSelection.cs (44)
91void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition)
108void ITextRange.SelectWord(ITextPointer position)
127void ITextRange.SelectParagraph(ITextPointer position)
259ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
397ITextPointer ITextSelection.AnchorPosition
410ITextPointer ITextSelection.MovingPosition
415ITextPointer movingPosition;
457void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace)
472ITextPointer reversePosition = caretPosition.CreatePointer(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward);
564void ITextSelection.ExtendToPosition(ITextPointer position)
572ITextPointer anchorPosition = thisSelection.AnchorPosition;
594ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
595ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
596ITextPointer newMovingPosition;
659private ITextPointer GetNextTextSegmentInsertionPosition(LogicalDirection direction)
683ITextPointer position = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/false);
797void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
814void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection)
834ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
842ITextPointer startPosition;
843ITextPointer movingPosition;
875private bool BeginMouseSelectionProcess(ITextPointer cursorPosition)
901private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange)
1086ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer();
1858private void SetActivePositions(ITextPointer anchorPosition, ITextPointer movingPosition)
1898private MovingEdge ConvertToMovingEdge(ITextPointer anchorPosition, ITextPointer movingPosition)
1950private void MoveSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
1960ITextPointer movingPosition = null;
1986private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect)
2129ITextPointer caretPosition = IdentifyCaretPosition(this);
2179private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection)
2181ITextPointer caretPosition = currentTextSelection.MovingPosition;
2220private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition)
2277ITextPointer nextCharacterPosition;
2370private static double CalculateScrollToOriginPosition(TextEditor textEditor, ITextPointer caretPosition, double horizontalCaretPosition)
2685private ITextPointer PropertyPosition
2690ITextPointer position = null;
2759private ITextPointer _anchorPosition;
2778private ITextPointer _previousCursorPosition;
2781private ITextPointer _reenterPosition;
src\Framework\System\Windows\Documents\TextStore.cs (71)
260ITextPointer start;
261ITextPointer end;
298ITextPointer navigator;
299ITextPointer limit;
374ITextPointer start;
375ITextPointer end;
528ITextPointer startNavigator;
529ITextPointer endNavigator;
556ITextPointer start;
557ITextPointer end;
737ITextPointer position;
816ITextPointer position;
861ITextPointer positionCur = position.CreatePointer(LogicalDirection.Backward);
862ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward);
891ITextPointer startPointer;
892ITextPointer endPointer;
939ITextPointer navigator = startPointer.CreatePointer();
948ITextPointer end;
954ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start;
1114ITextPointer start;
1115ITextPointer end;
1206ITextPointer oldStart;
1207ITextPointer oldEnd;
1211ITextPointer newStart = null;
1212ITextPointer newEnd = null;
1269ITextPointer start;
1270ITextPointer end;
1359ITextPointer navigator;
1641ITextPointer compositionStart;
1642ITextPointer compositionEnd;
1713private bool GetFnReconv(ITextPointer textStart, ITextPointer textEnd, out UnsafeNativeMethods.ITfFnReconversion funcReconv, out UnsafeNativeMethods.ITfRange rangeNew)
1797internal ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
1801ITextPointer pointer = this.TextContainer.CreatePointerAtCharOffset(charOffset, direction);
2312private static bool WalkTextRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2373private static bool WalkObjectRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2415private static bool WalkRegionBoundary(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2793private void TextPositionsFromITfRange(UnsafeNativeMethods.ITfRange range, out ITextPointer start, out ITextPointer end)
2818private void GetCompositionPositions(out ITextPointer start, out ITextPointer end)
2838private void GetCompositionPositions(UnsafeNativeMethods.ITfCompositionView view, out ITextPointer start, out ITextPointer end)
2914ITextPointer positionCurrent;
2915ITextPointer positionNext;
3032private CompositionParentUndoUnit OpenCompositionUndoUnit(ITextPointer compositionStart, ITextPointer compositionEnd)
3052ITextPointer start;
3084private static Rect GetLineBounds(ITextPointer start, ITextPointer end)
3097ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward);
3285private void BreakTypingSequence(ITextPointer caretPosition)
3302private static void GetAdjustedSelection(ITextPointer startIn, ITextPointer endIn, out ITextPointer startOut, out ITextPointer endOut)
3385private void GetNormalizedRange(int startCharOffset, int endCharOffset, out ITextPointer start, out ITextPointer end)
3548ITextPointer start = this.TextContainer.CreatePointerAtOffset(record.StartOffsetBefore, LogicalDirection.Backward);
3549ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward);
3808ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward);
3809ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward);
3829ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(imeSelectionAnchorOffset, LogicalDirection.Backward);
3830ITextPointer moving = this.TextContainer.CreatePointerAtOffset(imeSelectionMovingOffset, LogicalDirection.Backward);
4191internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit)
4406private ITextPointer _previousCompositionStart;
4409private ITextPointer _previousCompositionEnd;