MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (36)
77ITextPointer start = highlightRange.Range.Start;
78ITextPointer end = highlightRange.Range.End;
97ITextPointer invalidateStart;
98ITextPointer invalidateEnd;
129ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
130ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
180ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
181ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
208ITextPointer invalidateStart = _segments[startSeg].Segment.Start;
209ITextPointer invalidateEnd = _segments[endSeg].Segment.End;
280ITextPointer dynamicPosition;
346private void ProcessOverlapingSegments(IHighlightRange highlightRange, out ITextPointer invalidateStart, out ITextPointer invalidateEnd)
459private ITextPointer GetNextForwardPosition(StaticTextPointer pos)
483private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
502void GetSpannedSegments(ITextPointer start, ITextPointer end, out int startSeg, out int endSeg)
560internal AnnotationHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
610internal HighlightSegment(ITextPointer start, ITextPointer end, IHighlightRange owner)
626internal HighlightSegment(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners)
641private void Init(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners)
767internal IList<HighlightSegment> Split(ITextPointer ps, LogicalDirection side)
797internal IList<HighlightSegment> Split(ITextPointer ps1, ITextPointer ps2, IHighlightRange newOwner)
993ITextPointer cursor = _segment.Start.CreatePointer();
994ITextPointer segmentStart = null;
1058private void OpenSegment(ref ITextPointer segmentStart, ITextPointer cursor)
1069private void CloseSegment(ref ITextPointer segmentStart, ITextPointer cursor, ITextPointer end)
1080ITextPointer segmentEnd = cursor.GetInsertionPosition(LogicalDirection.Backward);
MS\Internal\Documents\DocumentPageTextView.cs (21)
98internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
117internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
145internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
171internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
173ITextPointer positionOut;
200internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
202ITextPointer positionOut = position;
241internal override bool IsAtCaretUnitBoundary(ITextPointer position)
258internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
275internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
292internal override TextSegment GetLineRange(ITextPointer position)
309internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
326internal override bool Contains(ITextPointer position)
406/// <see cref="ITextView.Validate(ITextPointer)"/>
408internal override bool Validate(ITextPointer position)
MS\Internal\Documents\MultiPageTextView.cs (47)
92internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
94ITextPointer position = null;
116internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
145internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
163ITextPointer startPositionInTextSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start;
164ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
188internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
203internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
216internal override bool IsAtCaretUnitBoundary(ITextPointer position)
238internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
240ITextPointer positionOut = null;
260internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
262ITextPointer positionOut = null;
282internal override TextSegment GetLineRange(ITextPointer position)
304internal override bool Contains(ITextPointer position)
317internal override void BringPositionIntoViewAsync(ITextPointer position, object userState)
381ITextPointer position;
480internal override void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
503internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
603internal ITextView GetPageTextViewFromPosition(ITextPointer position)
755ITextPointer newPosition;
827ITextPointer newPosition;
864private ITextPointer GetPositionAtNextLineCore(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved, out int pageNumber)
866ITextPointer positionOut;
968private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber)
971ITextPointer positionOut = position;
1022private ITextPointer GetPositionAtPageBoundary(bool pageTop, ITextView pageTextView, ITextPointer position, double suggestedX)
1026ITextPointer positionOut;
1136private DocumentPageTextView GetTextViewFromPosition(ITextPointer position)
1363ITextPointer newPosition;
1594internal BringPositionIntoViewRequest(ITextPointer position, object userState)
1600internal readonly ITextPointer Position;
1616internal ITextPointer Position;
1624internal BringLineIntoViewRequest(ITextPointer position, double suggestedX, int count, object userState)
1634internal readonly ITextPointer Position;
1637internal ITextPointer NewPosition;
1648internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState)
1658internal readonly ITextPointer Position;
1661internal ITextPointer NewPosition;
MS\Internal\Documents\ParagraphResult.cs (29)
78internal virtual bool Contains(ITextPointer position, bool strict)
97internal ITextPointer StartPosition
109internal ITextPointer EndPosition
242internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
351internal Rect GetRectangleFromTextPosition(ITextPointer position)
364internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
373internal bool IsAtCaretUnitBoundary(ITextPointer position)
385internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
394internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
408internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
422internal override bool Contains(ITextPointer position, bool strict)
631internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position)
643internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
655internal CellParaClient GetCellParaClientFromPosition(ITextPointer position)
707internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
1083internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
1090ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition;
1255internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
1262ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition;
1339internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
MS\Internal\Documents\TextBoxView.cs (40)
600ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
607ITextPointer position;
625Rect ITextView.GetRectangleFromTextPosition(ITextPointer position)
679Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
689Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
745ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward);
768ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
778ITextPointer nextLinePosition;
800ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
815bool ITextView.IsAtCaretUnitBoundary(ITextPointer position)
854ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
923ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
931ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position)
971ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
979TextSegment ITextView.GetLineRange(ITextPointer position)
986ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward);
987ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward);
995ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end)
1005bool ITextView.Contains(ITextPointer position)
1013void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState)
1035void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
1046void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
1083/// <see cref="ITextView.Validate(ITextPointer)"/>
1085bool ITextView.Validate(ITextPointer position)
1307ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward);
1308ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward);
1696private int GetLineIndexFromPosition(ITextPointer position)
1702private int GetLineIndexFromPosition(ITextPointer position, LogicalDirection direction)
1752private ITextPointer GetTextPositionFromDistance(int lineIndex, double x)
2059ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2104ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2155ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward);
2183ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward);
2920private bool Contains(ITextPointer position)
MS\Internal\Documents\TextContainerHelper.cs (24)
113internal bool Contains(ITextPointer position, bool strict)
153internal ITextPointer StartPosition
157ITextPointer startPosition = null;
165internal ITextPointer EndPosition
169ITextPointer endPosition = null;
311internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart)
395internal static bool IsImmediateAutomationChild(ITextPointer elementStart, ITextPointer ownerContentStart)
400ITextPointer position = elementStart.CreatePointer();
431internal static AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end, out ITextPointer elementStart, out ITextPointer elementEnd)
435ITextPointer position;
437List<ITextPointer> positionsStart, positionsEnd;
442positionsStart = new List<ITextPointer>();
458positionsEnd = new List<ITextPointer>();
538internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element)
540ITextPointer textPointer;
587internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction)
603internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject)
606ITextPointer position;
MS\Internal\Documents\TextDocumentView.cs (88)
62internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
85internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
110internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
155ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start;
156ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
226internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
228ITextPointer positionOut;
280internal override bool IsAtCaretUnitBoundary(ITextPointer position)
299internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
319internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
338internal override TextSegment GetLineRange(ITextPointer position)
357internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
386internal override bool Contains(ITextPointer position)
463internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments)
681private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements)
683ITextPointer position;
743private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText)
745ITextPointer position = null;
900private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText)
902ITextPointer position = null;
1111private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1148private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position)
1251private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1274ITextPointer startPosition,
1275ITextPointer endPosition,
1342ITextPointer startPosition,
1343ITextPointer endPosition,
1368ITextPointer startPosition,
1369ITextPointer endPosition,
1451private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1486private bool IsAtCaretUnitBoundary(ParagraphResult paragraph, ITextPointer position)
1557private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1576private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction)
1580ITextPointer nextCaretPosition = position;
1613private ITextPointer GetNextCaretUnitPosition(ParagraphResult paragraph, ITextPointer position, LogicalDirection direction)
1615ITextPointer nextCaretPosition = position;
1685private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction)
1702private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1706ITextPointer backspaceCaretPosition = position;
1737private ITextPointer GetBackspaceCaretUnitPosition(ParagraphResult paragraph, ITextPointer position)
1739ITextPointer backspaceCaretPosition = position;
1807private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2124private int GetColumnFromPosition(ReadOnlyCollection<ColumnResult> columns, ITextPointer position)
2175private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, out bool isFloatingPara)
2201private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position)
2272private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2307private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position)
2411private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
2442private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position, double suggestedX, ref int count, out bool positionFound)
2447ITextPointer positionOut = position;
2662private ITextPointer GetPositionAtNextLineInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out bool positionFound)
2665ITextPointer positionOut = position;
2713private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out double newSuggestedX, out bool positionFound)
2715ITextPointer positionOut = null;
2754ITextPointer siblingColumnPosition = GetPositionAtNextLineFromSiblingColumn(columns, columnIndex, suggestedX, ref newSuggestedX, ref count);
2785private ITextPointer GetPositionAtNextLineFromSiblingPara(ReadOnlyCollection<ParagraphResult> paragraphs, int paragraphIndex, double suggestedX, ref int count)
2790ITextPointer positionOut = null;
2948private ITextPointer GetPositionAtNextLineFromSiblingTextPara(TextParagraphResult paragraph, double suggestedX, ref int count)
2950ITextPointer positionOut = null;
3066private ITextPointer GetPositionAtNextLineFromSiblingColumn(ReadOnlyCollection<ColumnResult> columns, int columnIndex, double columnSuggestedX, ref double newSuggestedX, ref int count)
3068ITextPointer positionOut = null;
3114private bool ContainsCore(ITextPointer position)
3129private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs)
3143ITextPointer startRange = start.CompareTo(tpr.StartPosition) < 0 ? tpr.StartPosition : start;
3144ITextPointer endRange = end.CompareTo(tpr.EndPosition) < 0 ? end : tpr.EndPosition;
3182private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success)
3194ITextPointer endThisPara = end.CompareTo(paragraph.EndPosition) < 0 ? end : paragraph.EndPosition;
3227private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements)
3286ITextPointer segmentEnd = _textContainer.End;
3477private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
3507private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
MS\Internal\Documents\TextParagraphView.cs (20)
63internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
65ITextPointer position;
86internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
105internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
131internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
133ITextPointer positionOut;
194internal override bool IsAtCaretUnitBoundary(ITextPointer position)
213internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
226ITextPointer positionOut = _owner.GetNextCaretUnitPosition(position, direction, dcp, lineIndex);
236internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
249ITextPointer positionOut = _owner.GetBackspaceCaretUnitPosition(position, dcp, lineIndex);
259internal override TextSegment GetLineRange(ITextPointer position)
285internal override bool Contains(ITextPointer position)
324internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText)
327ITextPointer orientedPosition;
359internal static int GetLineFromPosition(ReadOnlyCollection<LineResult> lines, ITextPointer position)
MS\Internal\Documents\TextViewBase.cs (49)
37internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
46internal virtual Rect GetRectangleFromTextPosition(ITextPointer position)
62internal abstract Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform);
67internal abstract Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition);
72internal abstract ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved);
77internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
87internal abstract bool IsAtCaretUnitBoundary(ITextPointer position);
92internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction);
97internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position);
102internal abstract TextSegment GetLineRange(ITextPointer position);
107internal virtual ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
120internal abstract bool Contains(ITextPointer position);
178internal virtual void BringPositionIntoViewAsync(ITextPointer position, object userState)
193ITextPointer position;
207internal virtual void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
209ITextPointer newPosition;
225internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
227ITextPointer newPosition;
264/// <see cref="ITextView.Validate(ITextPointer)"/>
266internal virtual bool Validate(ITextPointer position)
467ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText)
475Rect ITextView.GetRectangleFromTextPosition(ITextPointer position)
483Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
491Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
499ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
507ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved)
515bool ITextView.IsAtCaretUnitBoundary(ITextPointer position)
523ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
531ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position)
539TextSegment ITextView.GetLineRange(ITextPointer position)
547ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end)
555bool ITextView.Contains(ITextPointer position)
563void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState)
579void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState)
587void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState)
617/// <see cref="ITextView.Validate(ITextPointer)"/>
619bool ITextView.Validate(ITextPointer position)
MS\Internal\PtsHost\TextParaClient.cs (29)
666internal ITextPointer GetTextPosition(int dcp, LogicalDirection direction)
678internal Rect GetRectangleFromTextPosition(ITextPointer position)
738internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
827internal bool IsAtCaretUnitBoundary(ITextPointer position)
877internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
879ITextPointer nextCaretPosition = position;
920internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
922ITextPointer backspaceCaretPosition = position;
973internal ITextPointer GetTextPositionFromDistance(int dcpLine, double distance)
1111internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end)
2040ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2371ITextPointer position,
2463ITextPointer position,
2586private ITextPointer NextCaretUnitPositionFromDcpSimpleLines(
2588ITextPointer position,
2602ITextPointer nextCaretPosition = position;
2711private ITextPointer NextCaretUnitPositionFromDcpCompositeLines(
2713ITextPointer position,
2727ITextPointer nextCaretPosition = position;
2877private ITextPointer BackspaceCaretUnitPositionFromDcpSimpleLines(
2879ITextPointer position,
2892ITextPointer backspaceCaretPosition = position;
2969private ITextPointer BackspaceCaretUnitPositionFromDcpCompositeLines(
2971ITextPointer position,
2984ITextPointer backspaceCaretPosition = position;
System\Windows\Controls\PasswordTextContainer.cs (24)
74internal void InsertText(ITextPointer position, string textData)
113internal void DeleteContent(ITextPointer startPosition, ITextPointer endPosition)
215ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
221ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
226ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
228return ((ITextPointer)position.Handle0).CreatePointer(direction);
238return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
243return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
248return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
253return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
263return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
268return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
273return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
276int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
278return ((ITextPointer)position1.Handle0).CompareTo(position2);
283return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
367ITextPointer ITextContainer.Start
381ITextPointer ITextContainer.End
513internal ITextPointer Start
527internal ITextPointer End
623private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
System\Windows\Controls\TextAdaptor.cs (19)
92internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool clipToView, bool transformToScreen)
133ITextPointer position = start.CreatePointer();
141ITextPointer first = (lineRange.Start.CompareTo(start) <= 0) ? start : lineRange.Start;
142ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End;
202internal void Select(ITextPointer start, ITextPointer end)
215internal void ScrollIntoView(ITextPointer start, ITextPointer end, bool alignToTop)
277ITextPointer pointer = alignToTop ? start.CreatePointer() : end.CreatePointer();
289internal ITextRangeProvider TextRangeFromTextPointers(ITextPointer rangeStart, ITextPointer rangeEnd)
306ITextPointer temp = rangeStart;
542ITextPointer visibleStart = textView.GetTextPositionFromPoint(visibleRect.TopLeft, true);
543ITextPointer visibleEnd = textView.GetTextPositionFromPoint(visibleRect.BottomRight, true);
592ITextPointer rangeStart = null;
593ITextPointer rangeEnd = null;
615ITextPointer position = _textContainer.Start.CreatePointer();
672ITextPointer position = textView.GetTextPositionFromPoint(location, true);
System\Windows\Controls\TextBlock.cs (14)
2125internal ITextPointer GetTextPositionFromDistance(int dcp, double distance, double lineVOffset, int index)
2143ITextPointer pos;
2172internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition)
2274internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
2300ITextPointer endOfLineTextPointer = _complexContent.TextContainer.Start.CreatePointer(0);
2388internal bool IsAtCaretUnitBoundary(ITextPointer position, int dcp, int lineIndex)
2456internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction, int dcp, int lineIndex)
2564ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2584internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position, int dcp, int lineIndex)
2652ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2836private static void InsertTextRun(ITextPointer position, string text, bool whitespacesIgnorable)
System\Windows\Controls\TextRangeAdaptor.cs (69)
50delegate(ITextPointer tp)
61delegate(ITextPointer tp)
71delegate(ITextPointer tp)
110delegate(ITextPointer tp)
150delegate(ITextPointer tp)
161delegate(ITextPointer tp)
171delegate(ITextPointer tp)
181delegate(ITextPointer tp)
192delegate(ITextPointer tp)
202delegate(ITextPointer tp)
230delegate(ITextPointer tp)
240delegate(ITextPointer tp)
251delegate(ITextPointer tp)
262delegate(ITextPointer tp) { return false; },
269delegate(ITextPointer tp)
281delegate(ITextPointer tp)
296delegate(ITextPointer tp)
307delegate(ITextPointer tp)
318delegate(ITextPointer tp)
329delegate(ITextPointer tp)
340delegate(ITextPointer tp)
351delegate(ITextPointer tp)
362delegate(ITextPointer tp) { return OutlineStyles.None; },
369delegate(ITextPointer tp)
380delegate(ITextPointer tp)
391delegate(ITextPointer tp)
402delegate(ITextPointer tp)
413delegate(ITextPointer tp)
435delegate(ITextPointer tp)
446delegate(ITextPointer tp)
459internal TextRangeAdaptor(TextAdaptor textAdaptor, ITextPointer start, ITextPointer end, AutomationPeer textPeer)
482internal static bool MoveToInsertionPosition(ITextPointer position, LogicalDirection direction)
727private bool MoveToUnitBoundary(ITextPointer position, bool isStart, LogicalDirection direction, TextUnit unit)
795ITextPointer nextLineStart = null;
822ITextPointer previousLineEnd = null;
858ITextPointer nextParagraphStart = textRange.End;
879ITextPointer previousParagraphEnd = textRange.Start;
991private int MovePositionByUnits(ITextPointer position, TextUnit unit, int count)
1029ITextPointer positionOrig = position.CreatePointer();
1156ITextPointer positionTemp = position.CreatePointer();
1206ITextPointer start = _start.CreatePointer();
1207ITextPointer end = _end.CreatePointer();
1267private static string GetFontFamilyName(FontFamily fontFamily, ITextPointer context)
1379private AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end)
1382ITextPointer elementStart, elementEnd;
1421private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end)
1441private static bool IsAtWordBoundary(ITextPointer position)
1456private static bool MoveToNextWordBoundary(ITextPointer position, LogicalDirection direction)
1459ITextPointer startPosition = position.CreatePointer();
1507private ITextPointer GetInsertionPosition(ITextPointer position, LogicalDirection direction)
1526private ITextPointer _start;
1527private ITextPointer _end;
1549internal delegate object GetValueAtDelegate(ITextPointer textPointer);
1621ITextPointer position = (endpoint == TextPatternRangeEndpoint.Start) ? _start : _end;
1622ITextPointer targetPosition = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
1669ITextPointer attrStart = null;
1670ITextPointer attrEnd = null;
1674ITextPointer stop = _start;
1675ITextPointer position = _end.CreatePointer(LogicalDirection.Backward);
1705ITextPointer stop = _end;
1706ITextPointer position = _start.CreatePointer(LogicalDirection.Forward);
1895ITextPointer position = _start.CreatePointer();
1947ITextPointer positionRef = start ? _start : _end;
1948ITextPointer position = positionRef.CreatePointer();
2009ITextPointer targetPointer = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
System\Windows\Documents\DocumentSequenceTextContainer.cs (25)
111ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
117ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
122ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
124return ((ITextPointer)position.Handle0).CreatePointer(direction);
134return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
139return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
144return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
149return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
159return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
164return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
169return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
172int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
174return ((ITextPointer)position1.Handle0).CompareTo(position2);
179return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
229ITextPointer ITextContainer.Start
242ITextPointer ITextContainer.End
358internal DocumentSequenceTextPointer VerifyPosition(ITextPointer position)
379internal DocumentSequenceTextPointer MapChildPositionToParent(ITextPointer tp)
552private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
736ITextPointer tpChildStart, tpChildEnd;
1005ITextPointer dynamicTextPointer = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward);
1006ITextPointer parentTextPointer = ((DocumentSequenceTextContainer)this.TextContainer).MapChildPositionToParent(dynamicTextPointer);
1034ITextPointer childTp = parentChangePosition.ChildPointer;
System\Windows\Documents\DocumentSequenceTextPointer.cs (134)
36internal DocumentSequenceTextPointer(ChildDocumentBlock childBlock, ITextPointer childPosition)
53/// <see cref="ITextPointer.SetLogicalDirection"/>
55void ITextPointer.SetLogicalDirection(LogicalDirection direction)
62/// <see cref="ITextPointer.CompareTo(ITextPointer)"/>
64int ITextPointer.CompareTo(ITextPointer position)
70/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/>
72int ITextPointer.CompareTo(StaticTextPointer position)
74return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0);
78/// <see cref="ITextPointer.GetOffsetToPosition"/>
80int ITextPointer.GetOffsetToPosition(ITextPointer position)
86/// <see cref="ITextPointer.GetPointerContext"/>
88TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
94/// <see cref="ITextPointer.GetTextRunLength"/>
97int ITextPointer.GetTextRunLength(LogicalDirection direction)
103string ITextPointer.GetTextInRun(LogicalDirection direction)
109/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
112int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
118/// <see cref="ITextPointer.GetAdjacentElement"/>
121object ITextPointer.GetAdjacentElement(LogicalDirection direction)
127/// <see cref="ITextPointer.GetElementType"/>
130Type ITextPointer.GetElementType(LogicalDirection direction)
136/// <see cref="ITextPointer.HasEqualScope"/>
138bool ITextPointer.HasEqualScope(ITextPointer position)
145/// <see cref="ITextPointer.GetValue"/>
148object ITextPointer.GetValue(DependencyProperty property)
154/// <see cref="ITextPointer.ReadLocalValue"/>
157object ITextPointer.ReadLocalValue(DependencyProperty property)
163/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
166LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
172/// <see cref="ITextPointer.CreatePointer()"/>
174ITextPointer ITextPointer.CreatePointer()
182/// <see cref="ITextPointer.CreateStaticPointer"/>
184StaticTextPointer ITextPointer.CreateStaticPointer()
186return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
190/// <see cref="ITextPointer.CreatePointer(int)"/>
192ITextPointer ITextPointer.CreatePointer(int distance)
198/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
200ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
206/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
208ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
214void ITextPointer.Freeze()
220/// <see cref="ITextPointer.GetFrozenPointer"/>
222ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
233void ITextPointer.InsertTextInRun(string textData)
245void ITextPointer.DeleteContentToPosition(ITextPointer limit)
251ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
253ITextPointer pointer = ((ITextPointer)this).CreatePointer();
266ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
268ITextPointer pointer = ((ITextPointer)this).CreatePointer();
277ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
279ITextPointer pointer = ((ITextPointer)this).CreatePointer();
286ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
288ITextPointer pointer = ((ITextPointer)this).CreatePointer();
300/// <see cref="ITextPointer.ValidateLayout"/>
301bool ITextPointer.ValidateLayout()
303return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView);
331Type ITextPointer.ParentType
340/// <see cref="ITextPointer.TextContainer"/>
342ITextContainer ITextPointer.TextContainer
348bool ITextPointer.HasValidLayout
352return (((ITextPointer)this).TextContainer.TextView != null &&
353((ITextPointer)this).TextContainer.TextView.IsValid &&
354((ITextPointer)this).TextContainer.TextView.Contains(this));
359bool ITextPointer.IsAtCaretUnitBoundary
363Invariant.Assert(((ITextPointer)this).HasValidLayout);
364ITextView textView = ((ITextPointer)this).TextContainer.TextView;
367if (!isAtCaretUnitBoundary && ((ITextPointer)this).LogicalDirection == LogicalDirection.Backward)
375ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward);
383/// <see cref="ITextPointer.LogicalDirection"/>
385LogicalDirection ITextPointer.LogicalDirection
393bool ITextPointer.IsAtInsertionPosition
399bool ITextPointer.IsFrozen
408int ITextPointer.Offset
417int ITextPointer.CharOffset
449/// <see cref="ITextPointer.MoveByOffset"/>
451bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
459/// <see cref="ITextPointer.MoveByOffset"/>
461int ITextPointer.MoveByOffset(int offset)
476/// <see cref="ITextPointer.MoveToPosition"/>
478void ITextPointer.MoveToPosition(ITextPointer position)
498/// <see cref="ITextPointer.MoveToElementEdge"/>
500void ITextPointer.MoveToElementEdge(ElementEdge edge)
508int ITextPointer.MoveToLineBoundary(int count)
510return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true);
514Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
519bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
524bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
560internal ITextPointer ChildPointer
603/// <see cref="ITextPointer.CompareTo(ITextPointer)"/>
605public static int CompareTo(DocumentSequenceTextPointer thisTp, ITextPointer position)
615/// <see cref="ITextPointer.GetOffsetToPosition"/>
617public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position)
637/// <see cref="ITextPointer.GetPointerContext"/>
647/// <see cref="ITextPointer.GetTextRunLength"/>
658/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
687/// <see cref="ITextPointer.GetAdjacentElement"/>
698/// <see cref="ITextPointer.GetElementType"/>
711/// <see cref="ITextPointer.GetElementType"/>
719/// <see cref="ITextPointer.HasEqualScope"/>
721public static bool HasEqualScope(DocumentSequenceTextPointer thisTp, ITextPointer position)
734/// <see cref="ITextPointer.GetValue"/>
745/// <see cref="ITextPointer.ReadLocalValue"/>
756/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
764public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp)
769public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance)
774public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, LogicalDirection gravity)
780/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
782public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance, LogicalDirection gravity)
882ITextPointer pointer = thisTp.ChildPointer;
1032ITextPointer childTn = thisTp.ChildPointer;
1121private ITextPointer _childTp;
System\Windows\Documents\DocumentSequenceTextView.cs (17)
78internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
86ITextPointer childOTP = ChildTextView.GetTextPositionFromPoint(point, snapToText);
125internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
154internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
206internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
227ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.LogicalDirection), suggestedX, count, out newSuggestedX, out linesMoved);
259internal override bool IsAtCaretUnitBoundary(ITextPointer position)
306internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
332internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
358internal override TextSegment GetLineRange(ITextPointer position)
411internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end)
431internal override bool Contains(ITextPointer position)
System\Windows\Documents\FixedTextContainer.cs (22)
96ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
102ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
107ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
109return ((ITextPointer)position.Handle0).CreatePointer(direction);
119return ((ITextPointer)pointer.Handle0).GetPointerContext(direction);
124return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0);
129return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count);
134return ((ITextPointer)position.Handle0).GetAdjacentElement(direction);
144return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset));
149return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction));
154return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0);
157int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
159return ((ITextPointer)position1.Handle0).CompareTo(position2);
164return ((ITextPointer)position.Handle0).GetValue(formattingProperty);
198ITextPointer ITextContainer.Start
211ITextPointer ITextContainer.End
325internal FixedTextPointer VerifyPosition(ITextPointer position)
345internal int GetPageNumber(ITextPointer textPointer)
617private bool _GetFixedNodesForFlowRange(ITextPointer start, ITextPointer end, out FixedSOMElement[] elements, out int startIndex, out int endIndex)
System\Windows\Documents\FixedTextPointer.cs (124)
65internal int CompareTo(ITextPointer position)
72int ITextPointer.CompareTo(StaticTextPointer position)
74return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0);
82int ITextPointer.CompareTo(ITextPointer position)
90int ITextPointer.GetOffsetToPosition(ITextPointer position)
100TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
110int ITextPointer.GetTextRunLength(LogicalDirection direction)
121string ITextPointer.GetTextInRun(LogicalDirection direction)
127/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
130int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
147/// <see cref="ITextPointer.GetAdjacentElement"/>
150object ITextPointer.GetAdjacentElement(LogicalDirection direction)
162/// <see cref="ITextPointer.GetElementType"/>
165Type ITextPointer.GetElementType(LogicalDirection direction)
181/// <see cref="ITextPointer.HasEqualScope"/>
183bool ITextPointer.HasEqualScope(ITextPointer position)
195/// <see cref="ITextPointer.GetValue"/>
198object ITextPointer.GetValue(DependencyProperty property)
207/// <see cref="ITextPointer.ReadLocalValue"/>
210object ITextPointer.ReadLocalValue(DependencyProperty property)
224/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
227LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
240/// <see cref="ITextPointer.CreatePointer()"/>
242ITextPointer ITextPointer.CreatePointer()
244return ((ITextPointer)this).CreatePointer(0, ((ITextPointer)this).LogicalDirection);
250/// <see cref="ITextPointer.CreateStaticPointer"/>
252StaticTextPointer ITextPointer.CreateStaticPointer()
254return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
258/// <see cref="ITextPointer.CreatePointer(int)"/>
260ITextPointer ITextPointer.CreatePointer(int distance)
262return ((ITextPointer)this).CreatePointer(distance, ((ITextPointer)this).LogicalDirection);
266/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
268ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
270return ((ITextPointer)this).CreatePointer(0, gravity);
274/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
276ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
290/// <see cref="ITextPointer.Freeze"/>
292void ITextPointer.Freeze()
298/// <see cref="ITextPointer.GetFrozenPointer"/>
300ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
307/// <see cref="ITextPointer.GetNextContextPosition"/>
309ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
311ITextPointer pointer = ((ITextPointer)this).CreatePointer();
325/// <see cref="ITextPointer.GetInsertionPosition"/>
327ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
329ITextPointer pointer = ((ITextPointer)this).CreatePointer();
339/// <see cref="ITextPointer.GetFormatNormalizedPosition"/>
341ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
343ITextPointer pointer = ((ITextPointer)this).CreatePointer();
351/// <see cref="ITextPointer.GetNextInsertionPosition"/>
353ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
355ITextPointer pointer = ((ITextPointer)this).CreatePointer();
370/// <see cref="ITextPointer.SetLogicalDirection"/>
373void ITextPointer.SetLogicalDirection(LogicalDirection direction)
381/// <see cref="ITextPointer.MoveByOffset"/>
383bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
395/// <see cref="ITextPointer.MoveByOffset"/>
397int ITextPointer.MoveByOffset(int offset)
412/// <see cref="ITextPointer.MoveToPosition"/>
414void ITextPointer.MoveToPosition(ITextPointer position)
424/// <see cref="ITextPointer.MoveToElementEdge"/>
426void ITextPointer.MoveToElementEdge(ElementEdge edge)
460/// <see cref="ITextPointer.MoveToLineBoundary"/>
462int ITextPointer.MoveToLineBoundary(int count)
464return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true);
468/// <see cref="ITextPointer.GetCharacterRect"/>
470Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
476/// <see cref="ITextPointer.MoveToInsertionPosition"/>
478bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
484/// <see cref="ITextPointer.MoveToNextInsertionPosition"/>
486bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
499void ITextPointer.InsertTextInRun(string textData)
507/// <see cref="ITextPointer.DeleteContentToPosition"/>
509void ITextPointer.DeleteContentToPosition(ITextPointer limit)
515/// <see cref="ITextPointer.ValidateLayout"/>
517bool ITextPointer.ValidateLayout()
519return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView);
533/// <see cref="ITextPointer.ParentType"/>
535Type ITextPointer.ParentType
545/// <see cref="ITextPointer.TextContainer"/>
547ITextContainer ITextPointer.TextContainer
553/// <see cref="ITextPointer.HasValidLayout"/>
555bool ITextPointer.HasValidLayout
559return (((ITextPointer)this).TextContainer.TextView != null &&
560((ITextPointer)this).TextContainer.TextView.IsValid &&
561((ITextPointer)this).TextContainer.TextView.Contains(this));
566/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/>
568bool ITextPointer.IsAtCaretUnitBoundary
572Invariant.Assert(((ITextPointer)this).HasValidLayout);
573ITextView textView = ((ITextPointer)this).TextContainer.TextView;
584ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward);
592/// <see cref="ITextPointer.LogicalDirection"/>
594LogicalDirection ITextPointer.LogicalDirection
603/// <see cref="ITextPointer.IsAtInsertionPosition"/>
605bool ITextPointer.IsAtInsertionPosition
611/// <see cref="ITextPointer.IsFrozen"/>
613bool ITextPointer.IsFrozen
622/// <see cref="ITextPointer.Offset"/>
624int ITextPointer.Offset
634/// <see cref="ITextPointer.CharOffset"/>
636int ITextPointer.CharOffset
System\Windows\Documents\FixedTextView.cs (34)
74internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText)
80ITextPointer textPos = this.End;
92ITextPointer pos = null;
157internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
188ITextPointer psNext = position.CreatePointer(1);
245internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
337internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved)
348ITextPointer pos = position;
377((ITextPointer)nav).MoveToInsertionPosition(scanDir);
378((ITextPointer)nav).MoveToNextInsertionPosition(scanDir);
443internal override bool IsAtCaretUnitBoundary(ITextPointer position)
514internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction)
550ITextPointer pointer = position.CreatePointer();
569internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position)
588internal override TextSegment GetLineRange(ITextPointer position)
618ITextPointer begin = _CreateTextPointer(new FixedPosition(fixedNodes[0], 0), LogicalDirection.Forward);
619ITextPointer end = _CreateTextPointer(new FixedPosition(lastNode, lastIndex), LogicalDirection.Backward);
623ITextPointer temp = begin;
646internal override bool Contains(ITextPointer position)
823private ITextPointer _SnapToText(Point point)
825ITextPointer itp = null;
876itp = ((ITextPointer)this.Start).CreatePointer(LogicalDirection.Forward);
881itp = ((ITextPointer)this.End).CreatePointer(LogicalDirection.Backward);
1090TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir);
1114symbolType = ((ITextPointer)nav).GetPointerContext(textdir);
1118if (((ITextPointer)nav).MoveToNextInsertionPosition(textdir) &&
1156((ITextPointer)nav).MoveToNextInsertionPosition(dir);
1176private ITextPointer _CreateTextPointer(FixedPosition fixedPosition, LogicalDirection edge)
1192private ITextPointer _CreateTextPointerFromGlyphs(Glyphs g, Point point)
1207private void _SkipFormattingTags(ITextPointer textPointer)
System\Windows\Documents\ITextView.cs (38)
60ITextPointer GetTextPositionFromPoint(Point point, bool snapToText);
94Rect GetRectangleFromTextPosition(ITextPointer position);
133Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform);
141Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition);
193ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved);
203ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved);
230bool IsAtCaretUnitBoundary(ITextPointer position);
276ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction);
301ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position);
327TextSegment GetLineRange(ITextPointer position);
359ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end);
389bool Contains(ITextPointer position);
395void BringPositionIntoViewAsync(ITextPointer position, object userState);
412void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState);
423void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState);
469bool Validate(ITextPointer position);
595public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState)
623public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState)
647public ITextPointer Position
665private readonly ITextPointer _position;
692public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState)
707public ITextPointer Position
733public ITextPointer NewPosition
759private readonly ITextPointer _position;
773private readonly ITextPointer _newPosition;
808public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState)
823public ITextPointer Position
849public ITextPointer NewPosition
875private readonly ITextPointer _position;
889private readonly ITextPointer _newPosition;
System\Windows\Documents\NullTextNavigator.cs (112)
48int ITextPointer.CompareTo(ITextPointer position)
55int ITextPointer.CompareTo(StaticTextPointer position)
64int ITextPointer.GetOffsetToPosition(ITextPointer position)
72/// <see cref="ITextPointer.GetPointerContext"/>
74TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction)
81/// <see cref="ITextPointer.GetTextRunLength"/>
84int ITextPointer.GetTextRunLength(LogicalDirection direction)
91/// <see cref="ITextPointer.GetTextInRun(LogicalDirection)"/>
93string ITextPointer.GetTextInRun(LogicalDirection direction)
99/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/>
102int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count)
109/// <see cref="ITextPointer.GetAdjacentElement"/>
112object ITextPointer.GetAdjacentElement(LogicalDirection direction)
119/// <see cref="ITextPointer.GetElementType"/>
122Type ITextPointer.GetElementType(LogicalDirection direction)
129/// <see cref="ITextPointer.HasEqualScope"/>
131bool ITextPointer.HasEqualScope(ITextPointer position)
137/// <see cref="ITextPointer.GetValue"/>
140object ITextPointer.GetValue(DependencyProperty property)
146/// <see cref="ITextPointer.ReadLocalValue"/>
148object ITextPointer.ReadLocalValue(DependencyProperty property)
154/// <see cref="ITextPointer.GetLocalValueEnumerator"/>
157LocalValueEnumerator ITextPointer.GetLocalValueEnumerator()
163/// <see cref="ITextPointer.CreatePointer()"/>
165ITextPointer ITextPointer.CreatePointer()
167return ((ITextPointer)this).CreatePointer(0, _gravity);
172StaticTextPointer ITextPointer.CreateStaticPointer()
174return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer());
178/// <see cref="ITextPointer.CreatePointer(int)"/>
180ITextPointer ITextPointer.CreatePointer(int distance)
182return ((ITextPointer)this).CreatePointer(distance, _gravity);
186/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/>
188ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity)
190return ((ITextPointer)this).CreatePointer(0, gravity);
194/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/>
196ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity)
204void ITextPointer.Freeze()
210/// <see cref="ITextPointer.GetFrozenPointer"/>
212ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection)
222/// <see cref="ITextPointer.SetLogicalDirection"/>
225void ITextPointer.SetLogicalDirection(LogicalDirection direction)
234/// <see cref="ITextPointer.MoveByOffset"/>
236bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
246/// <see cref="ITextPointer.MoveByOffset"/>
248int ITextPointer.MoveByOffset(int distance)
258/// <see cref="ITextPointer.MoveToPosition"/>
260void ITextPointer.MoveToPosition(ITextPointer position)
268/// <see cref="ITextPointer.MoveToElementEdge"/>
270void ITextPointer.MoveToElementEdge(ElementEdge edge)
278/// <see cref="ITextPointer.MoveToLineBoundary"/>
280int ITextPointer.MoveToLineBoundary(int count)
287/// <see cref="ITextPointer.GetCharacterRect"/>
289Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
296/// <see cref="ITextPointer.MoveToInsertionPosition"/>
298bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction)
304/// <see cref="ITextPointer.MoveToNextInsertionPosition"/>
306bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction)
312/// <see cref="ITextPointer.InsertTextInRun"/>
314void ITextPointer.InsertTextInRun(string textData)
320/// <see cref="ITextPointer.DeleteContentToPosition"/>
322void ITextPointer.DeleteContentToPosition(ITextPointer limit)
329/// <see cref="ITextPointer.GetNextContextPosition"/>
331ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction)
333ITextPointer pointer = ((ITextPointer)this).CreatePointer();
347/// <see cref="ITextPointer.GetInsertionPosition"/>
349ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction)
351ITextPointer pointer = ((ITextPointer)this).CreatePointer();
361/// <see cref="ITextPointer.GetFormatNormalizedPosition"/>
363ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction)
365ITextPointer pointer = ((ITextPointer)this).CreatePointer();
373/// <see cref="ITextPointer.GetNextInsertionPosition"/>
375ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction)
377ITextPointer pointer = ((ITextPointer)this).CreatePointer();
390/// <see cref="ITextPointer.ValidateLayout"/>
392bool ITextPointer.ValidateLayout()
409/// <see cref="ITextPointer.ParentType"/>
411Type ITextPointer.ParentType
423/// <see cref="ITextPointer.TextContainer"/>
425ITextContainer ITextPointer.TextContainer
431/// <see cref="ITextPointer.HasValidLayout"/>
433bool ITextPointer.HasValidLayout
443/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/>
445bool ITextPointer.IsAtCaretUnitBoundary
455/// <see cref="ITextPointer.LogicalDirection"/>
457LogicalDirection ITextPointer.LogicalDirection
463/// <see cref="ITextPointer.IsAtInsertionPosition"/>
465bool ITextPointer.IsAtInsertionPosition
471/// <see cref="ITextPointer.IsFrozen"/>
473bool ITextPointer.IsFrozen
482/// <see cref="ITextPointer.Offset"/>
484int ITextPointer.Offset
494/// <see cref="ITextPointer.CharOffset"/>
496int ITextPointer.CharOffset
System\Windows\Documents\Speller.cs (73)
111internal SpellingError GetError(ITextPointer position, LogicalDirection direction, bool forceEvaluation)
113ITextPointer start;
114ITextPointer end;
145internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction)
194ExpandToWordBreakAndContext(error.Start, LogicalDirection.Backward, language, out ITextPointer contentStart, out ITextPointer contextStart);
195ExpandToWordBreakAndContext(error.End, LogicalDirection.Forward, language, out ITextPointer contentEnd, out ITextPointer contextEnd);
234ITextPointer errorStart;
235ITextPointer errorEnd;
546ITextPointer start;
547ITextPointer end;
618private bool GetNextScanRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
620ITextPointer rawStart;
621ITextPointer rawEnd;
648private void GetNextScanRangeRaw(ITextPointer searchStart, out ITextPointer start, out ITextPointer end)
677private void AdjustScanRangeAroundComposition(ITextPointer rawStart, ITextPointer rawEnd,
678out ITextPointer start, out ITextPointer end)
697ITextPointer wordBreakLeft;
698ITextPointer wordBreakRight;
699ITextPointer caretPosition;
763private ScanStatus ScanRange(ITextPointer start, ITextPointer end, long timeLimit)
765ITextPointer contextStart;
766ITextPointer contextEnd;
767ITextPointer contentStart;
768ITextPointer contentEnd;
1017ITextPointer timeoutPosition = data.TextMap.MapOffsetToPosition(timeOutOffset);
1045ITextPointer errorStart;
1046ITextPointer errorEnd;
1089private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language,
1090out ITextPointer contentPosition, out ITextPointer contextPosition)
1092ITextPointer start;
1093ITextPointer end;
1094ITextPointer outwardPosition;
1095ITextPointer inwardPosition;
1319private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError)
1321ITextPointer closestErrorPosition;
1322ITextPointer searchPosition;
1323ITextPointer start;
1324ITextPointer end;
1359ITextPointer closestLanguageTransition = GetNextLanguageTransition(position, direction, language, searchPosition);
1391private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition)
1393ITextPointer navigator = position.CreatePointer();
1468private void ScanPosition(ITextPointer position, LogicalDirection direction)
1470ITextPointer start;
1471ITextPointer end;
1488private XmlLanguage GetCurrentLanguage(ITextPointer position)
1499private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language)
1649internal TextMap(ITextPointer contextStart, ITextPointer contextEnd,
1650ITextPointer contentStart, ITextPointer contentEnd)
1652ITextPointer position;
1764internal ITextPointer MapOffsetToPosition(int offset)
1800private bool IsAdjacentToFormatElement(ITextPointer pointer)
1824private readonly ITextPointer _basePosition;
1849internal ScanStatus(long timeLimit, ITextPointer startPosition)
1876internal ITextPointer TimeoutPosition
1883internal ITextPointer StartPosition
1892private readonly ITextPointer _startPosition;
1896private ITextPointer _timeoutPosition;
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;
751private ITextPointer GetRunEndPositionDynamic(int index)
799internal Run(ITextPointer position, RunType runType)
805internal ITextPointer Position
817private ITextPointer _position;
System\windows\Documents\TextEditorSelection.cs (72)
118internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position)
128ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward);
130ITextPointer lineEnd = position.CreatePointer(LogicalDirection.Backward);
283ITextPointer position = TextEditorSelection.GetEndInner(This);
293ITextPointer originalMovingPosition;
305ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
327ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition);
328ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
372ITextPointer position = TextEditorSelection.GetStartInner(This);
382ITextPointer originalMovingPosition;
394ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
417ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition);
418ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward);
469ITextPointer position = TextEditorSelection.GetEndInner(This);
474ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
521ITextPointer position = TextEditorSelection.GetStartInner(This);
525ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
574ITextPointer position = TextEditorSelection.GetEndInner(This);
579ITextPointer movingPosition;
588ITextPointer targetPosition;
691ITextPointer position = TextEditorSelection.GetStartInner(This);
696ITextPointer movingPosition;
705ITextPointer targetPosition;
797ITextPointer startPositionInner = TextEditorSelection.GetStartInner(This);
818ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward);
849ITextPointer endPositionInner = TextEditorSelection.GetEndInner(This);
870ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation);
1035ITextPointer originalMovingPosition;
1056ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition);
1084ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition);
1085ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward);
1121private static void AdjustMovingPositionForSelectDownByLine(TextEditor This, ITextPointer newMovingPosition, ITextPointer originalMovingPosition, double suggestedX)
1207ITextPointer originalMovingPosition;
1228ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition);
1274ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition);
1275ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward);
1331ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
1372ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer();
1405ITextPointer movingPosition;
1416ITextPointer targetPosition;
1501ITextPointer movingPosition;
1512ITextPointer targetPosition;
1601ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This);
1646ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This);
1668ITextPointer destination = lineRange.End;
1689ITextPointer newDestination = destination.GetNextInsertionPosition(LogicalDirection.Forward);
2036ITextPointer position = textEditor.Selection.MovingPosition.CreatePointer();
2072ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start);
2142ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer();
2162ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer();
2206ITextPointer wordBoundary = textEditor.Selection.MovingPosition.CreatePointer();
2234private static Double GetSuggestedX(TextEditor This, out ITextPointer innerMovingPosition)
2282private static Double GetSuggestedYFromPosition(TextEditor This, ITextPointer position)
2316private static ITextPointer GetMovingPositionInner(TextEditor This)
2318ITextPointer movingPosition = This.Selection.MovingPosition;
2346private static ITextPointer GetStartInner(TextEditor This)
2358private static ITextPointer GetEndInner(TextEditor This)
2360ITextPointer end = This.Selection.End;
2369private static ITextPointer GetPositionAtLineStart(ITextPointer position)
2378private static ITextPointer GetPositionAtLineEnd(ITextPointer position)
2385private static void ExtendSelectionAndBringIntoView(ITextPointer position, TextEditor textEditor)
2391private static void BringIntoView(ITextPointer position, TextEditor textEditor)
2411ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward);
2423private static ITextPointer AdjustPositionAtTableRowEnd(ITextPointer position)
2427ITextPointer cellEnd = position.GetNextInsertionPosition(LogicalDirection.Backward);
2438private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position)
2440ITextPointer navigator = position.CreatePointer();
2455private static double GetAbsoluteXOffset(ITextView textview, ITextPointer position)
System\windows\Documents\TextEditorSpelling.cs (15)
37internal static SpellingError GetSpellingErrorAtPosition(TextEditor This, ITextPointer position, LogicalDirection direction)
63ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character);
102internal static ITextPointer GetNextSpellingErrorPosition(TextEditor This, ITextPointer position, LogicalDirection direction)
137ITextPointer textStart;
138ITextPointer textEnd;
141ITextPointer caretPosition;
181private static bool IsErrorAtNonMergeableInlineEdge(SpellingError spellingError, out ITextPointer textStart, out ITextPointer textEnd)
254private static ITextPointer GetNextTextPosition(ITextPointer position, ITextPointer limit, LogicalDirection direction, out char character)
303private static ITextPointer GetNextNonWhiteSpacePosition(ITextPointer position, ITextPointer limit)
System\Windows\Documents\TextFindEngine.cs (17)
89ITextPointer findContainerStartPosition,
90ITextPointer findContainerEndPosition,
179ITextPointer startPosition,
180ITextPointer endPosition,
192ITextPointer navigator;
222ITextPointer startFindTextPosition = navigator.CreatePointer();
277ITextPointer startMatchPosition = startFindTextPosition.CreatePointer();
280ITextPointer endMatchPosition = startFindTextPosition.CreatePointer();
305private static void GetContextualInformation(ITextPointer position, int oppositeEndOffset,
308ITextPointer oppositeEndPosition = position.CreatePointer(oppositeEndOffset, position.LogicalDirection);
324private static bool HasNeighboringSeparatorChar(ITextPointer position, LogicalDirection direction)
326ITextPointer nextPosition = position.GetNextInsertionPosition(direction);
335ITextPointer temp = position;
643ITextPointer startPosition,
644ITextPointer endPosition,
645ITextPointer navigator,
896private static bool IsAdjacentToFormatElement(ITextPointer pointer, LogicalDirection direction)
System\Windows\Documents\TextPointerBase.cs (79)
38internal static ITextPointer Min(ITextPointer position1, ITextPointer position2)
52internal static ITextPointer Max(ITextPointer position1, ITextPointer position2)
58internal static string GetTextInRun(ITextPointer position, LogicalDirection direction)
76internal static int GetTextWithLimit(ITextPointer thisPointer, LogicalDirection direction, char[] textBuffer, int startIndex, int count, ITextPointer limit)
134internal static bool IsAtInsertionPosition(ITextPointer position)
142internal static bool IsAtPotentialRunPosition(ITextPointer position)
178private static bool IsAtPotentialRunPosition(ITextPointer backwardPosition, ITextPointer forwardPosition)
227internal static bool IsAtPotentialParagraphPosition(ITextPointer position)
252internal static bool IsBeforeFirstTable(ITextPointer position)
264internal static bool IsInBlockUIContainer(ITextPointer position)
269internal static bool IsAtBlockUIContainerStart(ITextPointer position)
275internal static bool IsAtBlockUIContainerEnd(ITextPointer position)
282private static bool IsInAncestorScope(ITextPointer position, Type allowedParentType, Type limitingType)
284ITextPointer navigator = position.CreatePointer();
301internal static bool IsInAnchoredBlock(ITextPointer position)
307internal static bool IsInHyperlinkScope(ITextPointer position)
315internal static ITextPointer GetFollowingNonMergeableInlineContentStart(ITextPointer position)
317ITextPointer navigator = position.CreatePointer();
386internal static bool IsAtNonMergeableInlineStart(ITextPointer position)
392internal static bool IsAtNonMergeableInlineEnd(ITextPointer position)
399internal static bool IsPositionAtNonMergeableInlineBoundary(ITextPointer position)
404internal static bool IsAtFormatNormalizedPosition(ITextPointer position, LogicalDirection direction)
409internal static bool IsAtInsertionPosition(ITextPointer position, LogicalDirection direction)
414internal static bool IsAtNormalizedPosition(ITextPointer position, LogicalDirection direction, bool respectCaretUnitBoundaries)
451internal static int GetOffset(ITextPointer thisPosition)
469internal static bool IsAtWordBoundary(ITextPointer thisPosition, LogicalDirection insideWordDirection)
472ITextPointer navigator = thisPosition.CreatePointer();
510internal static TextSegment GetWordRange(ITextPointer thisPosition)
524internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction)
540ITextPointer navigator = thisPosition.CreatePointer();
543ITextPointer wordEnd = navigator;
546ITextPointer wordStart;
586private static ITextPointer RestrictWithinBlock(ITextPointer position, ITextPointer limit, LogicalDirection direction)
621internal static bool IsNextToPlainLineBreak(ITextPointer thisPosition, LogicalDirection direction)
649internal static bool IsNextToRichLineBreak(ITextPointer thisPosition, LogicalDirection direction)
658internal static bool IsNextToParagraphBreak(ITextPointer thisPosition, LogicalDirection direction)
669internal static bool IsNextToAnyBreak(ITextPointer thisPosition, LogicalDirection direction)
682internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView)
711internal static bool IsAtRowEnd(ITextPointer thisPosition)
723internal static bool IsAfterLastParagraph(ITextPointer thisPosition)
731internal static bool IsAtParagraphOrBlockUIContainerStart(ITextPointer pointer)
798internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count)
804internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart)
806ITextPointer position;
856internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction)
862internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope)
874ITextPointer insertionPosition = thisPointer.GetInsertionPosition(direction);
923internal static bool MoveToFormatNormalizedPosition(ITextPointer thisNavigator, LogicalDirection direction)
936internal static bool MoveToInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction)
959internal static bool MoveToNextInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction)
967ITextPointer initialPosition = thisNavigator.CreatePointer();
1067internal static bool MoveToNextWordBoundary(ITextPointer thisNavigator, LogicalDirection movingDirection)
1072ITextPointer startPosition = thisNavigator.CreatePointer();
1099internal static ITextPointer GetFrozenPointer(ITextPointer thisPointer, LogicalDirection logicalDirection)
1101ITextPointer frozenPointer;
1116/// <see cref="ITextPointer.ValidateLayout"/>
1117internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView)
1138private static bool NormalizePosition(ITextPointer thisNavigator, LogicalDirection direction, bool respectCaretUnitBoundaries)
1254private static int LeaveNonMergeableInlineBoundary(ITextPointer thisNavigator, LogicalDirection direction, int symbolCount)
1283private static int LeaveNonMergeableAncestor(ITextPointer thisNavigator, LogicalDirection direction)
1301private static bool IsAtNormalizedPosition(ITextPointer position, bool respectCaretUnitBoundaries)
1327private static bool IsAtCaretUnitBoundary(ITextPointer position)
1360private static bool IsInsideCompoundSequence(ITextPointer position)
1412private static void GetWordBreakerText(ITextPointer pointer, out char[] text, out int position)
1419ITextPointer navigator;
1469private static bool IsAtNonMergeableInlineEdge(ITextPointer position, LogicalDirection direction)
1475ITextPointer navigator = position.CreatePointer();
1489private static BorderingElementCategory GetBorderingElementCategory(ITextPointer position, LogicalDirection direction)
1515private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType)
System\Windows\Documents\TextRangeBase.cs (56)
61internal static bool Contains(ITextRange thisRange, ITextPointer textPointer)
116internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2)
155internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition)
187internal static void SelectWord(ITextRange thisRange, ITextPointer position)
194ITextPointer normalizedPosition = position.CreatePointer();
237internal static void SelectParagraph(ITextRange thisRange, ITextPointer position)
241ITextPointer start;
242ITextPointer end;
291ITextPointer nextPosition = thisRange.End.CreatePointer();
308ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward);
330internal static void FindParagraphOrListItemBoundaries(ITextPointer position, out ITextPointer start, out ITextPointer end)
344private static void SkipParagraphContent(ITextPointer navigator, LogicalDirection direction)
402ITextPointer position = textSegment.Start.CreatePointer();
434private static object GetCharacterValueFromPosition(ITextPointer pointer, DependencyProperty formattingProperty)
471ITextPointer position = textSegment.Start.CreatePointer();
514ITextPointer startNavigator = thisRange.Start.CreatePointer();
515ITextPointer endNavigator = thisRange.End.CreatePointer();
653internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition)
665internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition, ref Char[] charArray)
673ITextPointer navigator = startPosition.CreatePointer();
748private static void PlainConvertTextRun(StringBuilder textBuffer, ITextPointer navigator, ITextPointer endPosition, ref Char[] charArray)
760private static void PlainConvertParagraphEnd(StringBuilder textBuffer, ITextPointer navigator)
797private static void PlainConvertListStart(ITextPointer navigator, ref Stack<int> listItemCounter)
811private static void PlainConvertListEnd(ITextPointer navigator, ref Stack<int> listItemCounter)
825private static void PlainConvertListItemStart(StringBuilder textBuffer, ITextPointer navigator, ref Stack<int> listItemCounter)
859private static void PlainConvertAccessKey(StringBuilder textBuffer, ITextPointer navigator)
1190internal static ITextPointer GetStart(ITextRange thisRange)
1198internal static ITextPointer GetEnd(ITextRange thisRange)
1253ITextPointer start = thisRange.Start;
1290ITextPointer explicitInsertPosition = null;
1351ITextPointer insertPosition = (explicitInsertPosition == null) ? thisRange.Start : explicitInsertPosition;
1375ITextPointer newStart = insertPosition.GetFrozenPointer(LogicalDirection.Backward);
1376ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward);
1619ITextPointer start = range.Start.CreatePointer();
1628ITextPointer end = range.End.CreatePointer();
1702private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end)
1787private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1803private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction)
1805ITextPointer normalizedPosition;
1922ITextPointer start = thisRange._TextSegments[0].Start;
1923ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
1985private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged)
2019ITextPointer newStart = position1;
2020ITextPointer newEnd = position2;
2042ITextPointer finalStart = thisRange._TextSegments[0].Start;
2043ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeSerialization.cs (37)
77ITextPointer commonAncestor = FindSerializationCommonAncestor(range);
166if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0)
195private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements)
205ITextPointer textReader = rangeStart.CreatePointer();
249ITextPointer ptr = textReader.CreatePointer();
283ITextPointer endPointer = textReader.CreatePointer();
359ITextPointer pointer = textSegment.Start.CreatePointer();
421private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements)
433ITextPointer previousLevel = thisElement.CreatePointer();
451ITextPointer position = thisElement.CreatePointer();
470ITextPointer position = thisElement.CreatePointer();
494ITextPointer position = thisElement.CreatePointer();
541private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements)
650private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot)
770private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
773ITextPointer outerContext = null;
835private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties)
840ITextPointer parentContext = onlyAffected ? null : context.CreatePointer();
954private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties)
1672private static ITextPointer FindSerializationCommonAncestor(ITextRange range)
1675ITextPointer commonAncestor = range.Start.CreatePointer();
1676ITextPointer runningEnd = range.End.CreatePointer();
1708ITextPointer hyperlinkStart = GetHyperlinkStart(range);
1725private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range)
1741ITextPointer navigator = commonAncestor.CreatePointer();
1849private static bool IsPartialNonTypographic(ITextPointer textReader, ITextPointer rangeEnd)
1855ITextPointer elementNavigation = textReader.CreatePointer();
1856ITextPointer elementEnd = textReader.CreatePointer();
1877private static bool IsHyperlinkInvalid(ITextPointer textReader, ITextPointer rangeEnd)
1888ITextPointer hyperlinkNavigation = textReader.CreatePointer();
1889ITextPointer hyperlinkEnd = textReader.CreatePointer();
1921private static ITextPointer GetHyperlinkStart(ITextRange range)
1923ITextPointer hyperlinkStart = null;
System\windows\Documents\TextSelection.cs (44)
88void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition)
105void ITextRange.SelectWord(ITextPointer position)
124void ITextRange.SelectParagraph(ITextPointer position)
256ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
394ITextPointer ITextSelection.AnchorPosition
407ITextPointer ITextSelection.MovingPosition
412ITextPointer movingPosition;
454void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace)
469ITextPointer reversePosition = caretPosition.CreatePointer(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward);
561void ITextSelection.ExtendToPosition(ITextPointer position)
569ITextPointer anchorPosition = thisSelection.AnchorPosition;
591ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
592ITextPointer movingPosition = ((ITextSelection)this).MovingPosition;
593ITextPointer newMovingPosition;
656private ITextPointer GetNextTextSegmentInsertionPosition(LogicalDirection direction)
680ITextPointer position = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/false);
794void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
811void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection)
831ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition;
839ITextPointer startPosition;
840ITextPointer movingPosition;
872private bool BeginMouseSelectionProcess(ITextPointer cursorPosition)
898private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange)
1083ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer();
1850private void SetActivePositions(ITextPointer anchorPosition, ITextPointer movingPosition)
1890private MovingEdge ConvertToMovingEdge(ITextPointer anchorPosition, ITextPointer movingPosition)
1942private void MoveSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint)
1952ITextPointer movingPosition = null;
1978private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect)
2121ITextPointer caretPosition = IdentifyCaretPosition(this);
2171private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection)
2173ITextPointer caretPosition = currentTextSelection.MovingPosition;
2212private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition)
2269ITextPointer nextCharacterPosition;
2362private static double CalculateScrollToOriginPosition(TextEditor textEditor, ITextPointer caretPosition, double horizontalCaretPosition)
2672private ITextPointer PropertyPosition
2677ITextPointer position = null;
2746private ITextPointer _anchorPosition;
2765private ITextPointer _previousCursorPosition;
2768private ITextPointer _reenterPosition;
System\Windows\Documents\TextStore.cs (71)
360ITextPointer start;
361ITextPointer end;
405ITextPointer navigator;
406ITextPointer limit;
495ITextPointer start;
496ITextPointer end;
655ITextPointer startNavigator;
656ITextPointer endNavigator;
688ITextPointer start;
689ITextPointer end;
874ITextPointer position;
947ITextPointer position;
992ITextPointer positionCur = position.CreatePointer(LogicalDirection.Backward);
993ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward);
1025ITextPointer startPointer;
1026ITextPointer endPointer;
1079ITextPointer navigator = startPointer.CreatePointer();
1088ITextPointer end;
1094ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start;
1242ITextPointer start;
1243ITextPointer end;
1340ITextPointer oldStart;
1341ITextPointer oldEnd;
1345ITextPointer newStart = null;
1346ITextPointer newEnd = null;
1409ITextPointer start;
1410ITextPointer end;
1494ITextPointer navigator;
1770ITextPointer compositionStart;
1771ITextPointer compositionEnd;
1834private bool GetFnReconv(ITextPointer textStart, ITextPointer textEnd, out UnsafeNativeMethods.ITfFnReconversion funcReconv, out UnsafeNativeMethods.ITfRange rangeNew)
1913internal ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
1917ITextPointer pointer = this.TextContainer.CreatePointerAtCharOffset(charOffset, direction);
2457private static bool WalkTextRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2518private static bool WalkObjectRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2560private static bool WalkRegionBoundary(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv)
2904private void TextPositionsFromITfRange(UnsafeNativeMethods.ITfRange range, out ITextPointer start, out ITextPointer end)
2924private void GetCompositionPositions(out ITextPointer start, out ITextPointer end)
2940private void GetCompositionPositions(UnsafeNativeMethods.ITfCompositionView view, out ITextPointer start, out ITextPointer end)
3006ITextPointer positionCurrent;
3007ITextPointer positionNext;
3123private CompositionParentUndoUnit OpenCompositionUndoUnit(ITextPointer compositionStart, ITextPointer compositionEnd)
3143ITextPointer start;
3175private static Rect GetLineBounds(ITextPointer start, ITextPointer end)
3188ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward);
3363private void BreakTypingSequence(ITextPointer caretPosition)
3380private static void GetAdjustedSelection(ITextPointer startIn, ITextPointer endIn, out ITextPointer startOut, out ITextPointer endOut)
3463private void GetNormalizedRange(int startCharOffset, int endCharOffset, out ITextPointer start, out ITextPointer end)
3646ITextPointer start = this.TextContainer.CreatePointerAtOffset(record.StartOffsetBefore, LogicalDirection.Backward);
3647ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward);
3965ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward);
3966ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward);
3986ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(imeSelectionAnchorOffset, LogicalDirection.Backward);
3987ITextPointer moving = this.TextContainer.CreatePointerAtOffset(imeSelectionMovingOffset, LogicalDirection.Backward);
4351internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit)
4566private ITextPointer _previousCompositionStart;
4569private ITextPointer _previousCompositionEnd;