5 implementations of ITextPointer
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
19internal sealed class PasswordTextPointer : ITextPointer
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
27internal sealed class DocumentSequenceTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\FixedTextPointer.cs (1)
30internal class FixedTextPointer : ContentPosition, ITextPointer
System\Windows\Documents\NullTextNavigator.cs (1)
23internal sealed class NullTextPointer : ITextPointer
System\Windows\Documents\TextPointer.cs (1)
239public class TextPointer : ContentPosition, ITextPointer
2108 references to ITextPointer
PresentationFramework (2108)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (11)
107ITextPointer startPointer = segment.Start.CreatePointer(LogicalDirection.Forward); 114ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 326ITextPointer segStart; 345ITextPointer segEnd; 443ITextPointer start = null; 546private static ITextPointer FindStartVisibleTextPointer(DocumentPage documentPage) 548ITextPointer start, end; 570private static ITextPointer FindEndVisibleTextPointer(DocumentPage documentPage) 572ITextPointer start, end; 595private static bool GetTextViewRange(DocumentPage documentPage, out ITextPointer start, out ITextPointer end)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (15)
118ITextPointer start = null; 119ITextPointer end = null; 135while (((ITextPointer)current).CompareTo(end) < 0) 161ITextPointer start = null; 162ITextPointer end = null; 177public static UIElement GetParent(ITextPointer pointer) 251public static Point GetAnchorPointForPointer(ITextPointer pointer) 275public static Point GetPointForPointer(ITextPointer pointer) 298public static Rect GetAnchorRectangle(ITextPointer pointer) 333public static IDocumentPaginatorSource GetPointerPage(ITextPointer pointer, out int pageNumber) 366internal static void CheckSelection(object selection, out ITextPointer start, out ITextPointer end, out IList<TextSegment> segments) 393internal static ITextView GetDocumentPageTextView(ITextPointer pointer) 432ITextPointer start = segment.Start.CreatePointer(LogicalDirection.Forward); 433ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (14)
140ITextPointer start; 141ITextPointer end; 148ITextPointer elementStart; 149ITextPointer elementEnd; 226ITextPointer elementStart; 227ITextPointer elementEnd; 237ITextPointer start = elementStart.CreatePointer(startOffset);// new TextPointer((TextPointer)elementStart, startOffset); 239ITextPointer end = (textRangeLength <= endOffset) ? 260ITextPointer currentStart = anchor.Start; 261ITextPointer currentEnd = anchor.End; 491private bool GetNodesStartAndEnd(DependencyObject startNode, out ITextPointer start, out ITextPointer end) 525private void GetTextSegmentValues(TextSegment segment, ITextPointer elementStart, ITextPointer elementEnd, out int startOffset, out int endOffset)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
245ITextPointer start = segments[0].Start; 246ITextPointer end = segments[segments.Count - 1].End;
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\Annotations\Component\MarkedHighlightComponent.cs (9)
364private void SetMarkerTransform(Path marker, ITextPointer anchor, ITextPointer baseAnchor, int xScaleFactor) 661ITextPointer start = anchor.Start.CreatePointer(LogicalDirection.Forward); 662ITextPointer end = anchor.End.CreatePointer(LogicalDirection.Backward); 708private void CheckPosition(ITextPointer position) 791private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 821ITextPointer nextPointer = pointer.GetNextInsertionPosition(direction); 945ITextPointer pos = textView.GetTextPositionFromPoint(currentPosition, false); 956private static void CheckAllHighlightRanges(ITextPointer pos)
MS\Internal\Annotations\TextAnchor.cs (7)
103internal bool Contains(ITextPointer textPointer) 141internal void AddTextSegment(ITextPointer start, ITextPointer end) 507internal ITextPointer Start 518internal ITextPointer End 654private static TextSegment CreateNormalizedSegment(ITextPointer start, ITextPointer end)
MS\Internal\Documents\ColumnResult.cs (3)
97internal bool Contains(ITextPointer position, bool strict) 116internal ITextPointer StartPosition 128internal ITextPointer EndPosition
MS\Internal\Documents\DocumentGrid.cs (11)
302ITextPointer tp = TextEditor.Selection.Start; 1824ITextPointer tp = data.ContentPosition as ITextPointer; 1956ITextPointer selection = GetVisibleSelection(); 2540private ITextPointer GetVisibleSelection() 2542ITextPointer selection = null; 2546ITextPointer tp = TextEditor.Selection.Start; 2574private int GetPageNumberForVisibleSelection(ITextPointer selection) 2606ITextPointer tp = GetVisibleSelection(); 2677private bool TextViewContains(ITextPointer tp) 2863ITextPointer selection = GetVisibleSelection();
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\DocumentViewerHelper.cs (5)
84ITextPointer contentStart; 85ITextPointer contentEnd; 86ITextPointer startPointer = null; 224ITextPointer temp = contentStart; 392ITextPointer contextMenuPosition = null;
MS\Internal\Documents\FlowDocumentFormatter.cs (2)
325void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
MS\Internal\Documents\FlowDocumentPaginator.cs (5)
351ITextPointer position; 695private void InvalidateBRTLayout(ITextPointer start, ITextPointer end) 1108void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
MS\Internal\Documents\HostedElements.cs (4)
97Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 98((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 108Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 109while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0)
MS\Internal\Documents\IFlowDocumentFormatter.cs (2)
30void OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end);
MS\Internal\Documents\LineResult.cs (12)
34internal abstract ITextPointer GetTextPositionFromDistance(double distance); 39internal abstract bool IsAtCaretUnitBoundary(ITextPointer position); 44internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 49internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 54internal abstract ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 64internal abstract ITextPointer GetContentEndPosition(); 74internal abstract ITextPointer GetEllipsesPosition(); 109internal abstract ITextPointer StartPosition { get; } 114internal abstract ITextPointer EndPosition { get; }
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\TextBoxLine.cs (1)
119ITextPointer position = _owner.Host.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
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\LayoutDump.cs (2)
613private static void DumpTextRange(XmlTextWriter writer, ITextPointer start, ITextPointer end)
MS\Internal\PtsHost\BreakRecordTable.cs (6)
176internal void OnInvalidateLayout(ITextPointer start, ITextPointer end) 226internal void OnInvalidateRender(ITextPointer start, ITextPointer end) 435private void GetAffectedPages(ITextPointer start, ITextPointer end, out int pageStart, out int pageCount)
MS\Internal\PtsHost\CellParaClient.cs (2)
314internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\ContainerParaClient.cs (2)
401internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\ContainerParagraph.cs (3)
160ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 249ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 1028protected virtual BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
MS\Internal\PtsHost\FigureParaClient.cs (2)
740internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\FloaterParaClient.cs (2)
748internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
960while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.TextContainer.End) < 0) 995if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 996((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
MS\Internal\PtsHost\Line.cs (2)
204ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 205ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\ListParagraph.cs (1)
72protected override BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
MS\Internal\PtsHost\OptimalTextSource.cs (3)
153ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 154ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 192ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\TableParaClient.cs (5)
807internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position) 824internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 895internal CellParaClient GetCellParaClientFromPosition(ITextPointer position) 1124internal Rect GetRectangleFromRowEndPosition(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;
MS\Internal\PtsHost\TextParagraph.cs (5)
885ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 886ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 908ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 909ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 961ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element);
MS\Internal\PtsHost\TextParaLineResult.cs (14)
42internal override ITextPointer GetTextPositionFromDistance(double distance) 54internal override bool IsAtCaretUnitBoundary(ITextPointer position) 70internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 83internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 99internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 109internal override ITextPointer GetContentEndPosition() 119internal override ITextPointer GetEllipsesPosition() 170internal override ITextPointer StartPosition 185internal override ITextPointer EndPosition 355private ITextPointer _startPosition; 360private ITextPointer _endPosition;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
144internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
MS\Internal\Text\ComplexLine.cs (1)
94ITextPointer position = _owner.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
MS\Internal\Text\TextLineResult.cs (14)
44internal override ITextPointer GetTextPositionFromDistance(double distance) 54internal override bool IsAtCaretUnitBoundary(ITextPointer position) 66internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 77internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 89internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 103internal override ITextPointer GetContentEndPosition() 117internal override ITextPointer GetEllipsesPosition() 168internal override ITextPointer StartPosition 183internal override ITextPointer EndPosition 308private ITextPointer _startPosition; 313private ITextPointer _endPosition;
System\Windows\Annotations\AnnotationHelper.cs (2)
685ITextPointer start = selection.Start.CreatePointer(); 686ITextPointer end = selection.End.CreatePointer();
System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (2)
88internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
204internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end) 275private ITextPointer _childrenStart; 276private ITextPointer _childrenEnd;
System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (2)
165internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
90internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextAutomationPeer.cs (2)
113internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
135internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
209internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
844ITextPointer contentPosition = arg as ITextPointer;
System\Windows\Controls\PasswordBox.cs (2)
1076ITextPointer selectionStart; 1077ITextPointer selectionEnd;
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\PasswordTextNavigator.cs (74)
52/// <see cref="ITextPointer.SetLogicalDirection"/> 54void ITextPointer.SetLogicalDirection(LogicalDirection direction) 82int ITextPointer.CompareTo(ITextPointer position) 105int ITextPointer.CompareTo(StaticTextPointer position) 107return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 122int ITextPointer.GetOffsetToPosition(ITextPointer position) 138TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 170int ITextPointer.GetTextRunLength(LogicalDirection direction) 187string ITextPointer.GetTextInRun(LogicalDirection direction) 192int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 227object ITextPointer.GetAdjacentElement(LogicalDirection direction) 247Type ITextPointer.GetElementType(LogicalDirection direction) 266bool ITextPointer.HasEqualScope(ITextPointer position) 287object ITextPointer.GetValue(DependencyProperty formattingProperty) 298object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 310LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 315ITextPointer ITextPointer.CreatePointer() 322StaticTextPointer ITextPointer.CreateStaticPointer() 324return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 327ITextPointer ITextPointer.CreatePointer(int distance) 332ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 354ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 360void ITextPointer.Freeze() 366/// <see cref="ITextPointer.GetFrozenPointer"/> 368ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 379void ITextPointer.InsertTextInRun(string textData) 391void ITextPointer.DeleteContentToPosition(ITextPointer limit) 423bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 464int ITextPointer.MoveByOffset(int distance) 492void ITextPointer.MoveToPosition(ITextPointer position) 510void ITextPointer.MoveToElementEdge(ElementEdge edge) 517int ITextPointer.MoveToLineBoundary(int count) 523Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 528bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 533bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 540ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 542ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 555ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 557ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 564ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 566ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 581ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 583ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 589/// <see cref="ITextPointer.ValidateLayout"/> 590bool ITextPointer.ValidateLayout() 606Type ITextPointer.ParentType 615ITextContainer ITextPointer.TextContainer 624bool ITextPointer.HasValidLayout 633bool ITextPointer.IsAtCaretUnitBoundary 653LogicalDirection ITextPointer.LogicalDirection 661bool ITextPointer.IsAtInsertionPosition 667bool ITextPointer.IsFrozen 676int ITextPointer.Offset 685int ITextPointer.CharOffset
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
779private ITextPointer GetMasterPageTextPointer(bool startOfPage) 781ITextPointer masterPointer = null;
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\TextBox.cs (1)
561ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction);
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\ChildDocumentBlock.cs (1)
148internal ITextPointer End
System\Windows\Documents\CompositionAdorner.cs (12)
325internal void AddAttributeRange(ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServiceDisplayAttribute) 328ITextPointer rangeStart = start.CreatePointer(LogicalDirection.Forward); 329ITextPointer rangeEnd = end.CreatePointer(LogicalDirection.Backward); 458internal AttributeRange(ITextView textView, ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServicesDisplayAttribute) 485ITextPointer start = _textView.TextContainer.Start.CreatePointer(_startOffset, LogicalDirection.Forward); 486ITextPointer end = _textView.TextContainer.Start.CreatePointer(_endOffset, LogicalDirection.Backward); 570private void AddMultipleCompositionLines(ITextPointer start, ITextPointer end) 573ITextPointer startLinePointer = start; 574ITextPointer endLinePointer = startLinePointer;
System\Windows\Documents\DocumentSequence.cs (4)
383if (cp != ContentPosition.Missing && (cp is ITextPointer)) 386return new DocumentSequenceTextPointer(childBlock, (ITextPointer)cp); 1156ITextPointer childPosition = _documentPaginator.GetPagePosition(_documentPage) as ITextPointer;
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\FixedElement.cs (3)
267ITextPointer pos = ((ITextPointer)_start).CreatePointer(); 269while (pos.CompareTo((ITextPointer)_end) < 0)
System\Windows\Documents\FixedFindEngine.cs (8)
26internal static TextRange Find ( ITextPointer start, 27ITextPointer end, 85ITextPointer firstSearchPageStart = null; 86ITextPointer firstSearchPageEnd = null; 290private static void _GetFirstPageSearchPointers ( ITextPointer start, 291ITextPointer end, 294out ITextPointer firstSearchPageStart, 295out ITextPointer firstSearchPageEnd)
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\FlowDocument.cs (2)
885ITextPointer textPointer = null; 1466ITextPointer segmentEnd;
System\Windows\Documents\FrameworkTextComposition.cs (12)
188internal void SetResultPositions(ITextPointer start, ITextPointer end, string text) 212internal void SetCompositionPositions(ITextPointer start, ITextPointer end, string text) 244internal ITextPointer _ResultStart 255internal ITextPointer _ResultEnd 266internal ITextPointer _CompositionStart 277internal ITextPointer _CompositionEnd 341private ITextPointer _resultStart; 344private ITextPointer _resultEnd; 347private ITextPointer _compositionStart; 350private ITextPointer _compositionEnd;
System\Windows\Documents\ImmComposition.cs (23)
614ITextPointer startNavigator; 615ITextPointer endNavigator; 616ITextPointer caretNavigator; 655ITextPointer startPosition = startNavigator.CreatePointer(LogicalDirection.Forward); 656ITextPointer endPosition = endNavigator.CreatePointer(LogicalDirection.Backward); 657ITextPointer caretPosition = caretNavigator.CreatePointer(LogicalDirection.Forward); 1069ITextPointer start; 1070ITextPointer end; 1081internal void UpdateCompositionText(FrameworkTextComposition composition, int resultLength, bool includeResultText, out ITextPointer start, out ITextPointer end) 1149ITextPointer caretPosition = _caretOffset >= 0 ? start.CreatePointer(_caretOffset, LogicalDirection.Forward) : end; 1188ITextPointer startAttribute = _startComposition.CreatePointer(startOffset, LogicalDirection.Backward); 1189ITextPointer endAttribute = _startComposition.CreatePointer(i + 1, LogicalDirection.Forward); 1406ITextPointer navigator; 1543ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward); 1548ITextPointer end = start.CreatePointer(LogicalDirection.Forward); 1563private static ITextPointer MoveToNextCharPos(ITextPointer position, int offset) 1644ITextPointer positionCurrent; 1645ITextPointer positionNext; 1800private void CloseCompositionUndoUnit(UndoCloseAction undoCloseAction, ITextPointer compositionEnd) 1930private ITextPointer _startComposition; 1936private ITextPointer _endComposition;
System\Windows\Documents\ITextContainer.cs (6)
38ITextPointer CreatePointerAtOffset(int offset, LogicalDirection direction); 43ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction); 45ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 65int CompareTo(StaticTextPointer position1, ITextPointer position2); 99ITextPointer Start { get; } 107ITextPointer End { get; }
System\Windows\Documents\ITextPointer.cs (14)
26ITextPointer CreatePointer(); 32ITextPointer CreatePointer(int offset); 35ITextPointer CreatePointer(LogicalDirection gravity); 38ITextPointer CreatePointer(int offset, LogicalDirection gravity); 47int CompareTo(ITextPointer position); 51bool HasEqualScope(ITextPointer position); 57int GetOffsetToPosition(ITextPointer position); 76void MoveToPosition(ITextPointer position); 85ITextPointer GetNextContextPosition(LogicalDirection direction); 91ITextPointer GetInsertionPosition(LogicalDirection direction); 94ITextPointer GetFormatNormalizedPosition(LogicalDirection direction); 100ITextPointer GetNextInsertionPosition(LogicalDirection direction); 115ITextPointer GetFrozenPointer(LogicalDirection logicalDirection); 121void DeleteContentToPosition(ITextPointer limit);
System\Windows\Documents\ITextRange.cs (7)
62bool Contains(ITextPointer position); 66void Select(ITextPointer position1, ITextPointer position2); 74void SelectWord(ITextPointer position); 83void SelectParagraph(ITextPointer position); 237ITextPointer Start { get; } 242ITextPointer End { get; }
System\Windows\Documents\ITextSelection.cs (6)
68void SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace); 75void ExtendToPosition(ITextPointer textPosition); 120void SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint); 123void ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection); 173ITextPointer AnchorPosition { get; } 180ITextPointer MovingPosition { get; }
System\Windows\Documents\ITextView.cs (38)
60ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 94Rect GetRectangleFromTextPosition(ITextPointer position); 133Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 141Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition); 193ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved); 203ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved); 230bool IsAtCaretUnitBoundary(ITextPointer position); 276ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 301ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 327TextSegment GetLineRange(ITextPointer position); 359ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 389bool Contains(ITextPointer position); 395void BringPositionIntoViewAsync(ITextPointer position, object userState); 412void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState); 423void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState); 469bool Validate(ITextPointer position); 595public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 623public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 647public ITextPointer Position 665private readonly ITextPointer _position; 692public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState) 707public ITextPointer Position 733public ITextPointer NewPosition 759private readonly ITextPointer _position; 773private readonly ITextPointer _newPosition; 808public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState) 823public ITextPointer Position 849public ITextPointer NewPosition 875private readonly ITextPointer _position; 889private readonly ITextPointer _newPosition;
System\Windows\Documents\NullTextContainer.cs (18)
84ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 90ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 95ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 97return ((ITextPointer)position.Handle0).CreatePointer(direction); 107return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 112return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 117return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 122return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 132return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 137return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 142return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 145int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 147return ((ITextPointer)position1.Handle0).CompareTo(position2); 152return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 179ITextPointer ITextContainer.Start 192ITextPointer ITextContainer.End
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\Paragraph.cs (2)
248ITextPointer navigator = paragraph.ContentStart.CreatePointer(); 249ITextPointer end = paragraph.ContentEnd;
System\Windows\Documents\RubberbandSelector.cs (3)
330private ITextPointer _GetTextPosition(FixedNode node, int charIndex) 628public ITextPointer first; 629public ITextPointer second;
System\Windows\Documents\Speller.cs (73)
110internal SpellingError GetError(ITextPointer position, LogicalDirection direction, bool forceEvaluation) 112ITextPointer start; 113ITextPointer end; 144internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 181ITextPointer contextStart; 182ITextPointer contextEnd; 183ITextPointer contentStart; 184ITextPointer contentEnd; 247ITextPointer errorStart; 248ITextPointer errorEnd; 559ITextPointer start; 560ITextPointer end; 631private bool GetNextScanRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 633ITextPointer rawStart; 634ITextPointer rawEnd; 661private void GetNextScanRangeRaw(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 690private void AdjustScanRangeAroundComposition(ITextPointer rawStart, ITextPointer rawEnd, 691out ITextPointer start, out ITextPointer end) 710ITextPointer wordBreakLeft; 711ITextPointer wordBreakRight; 712ITextPointer caretPosition; 776private ScanStatus ScanRange(ITextPointer start, ITextPointer end, long timeLimit) 778ITextPointer contextStart; 779ITextPointer contextEnd; 780ITextPointer contentStart; 781ITextPointer contentEnd; 1032ITextPointer timeoutPosition = data.TextMap.MapOffsetToPosition(timeOutOffset); 1060ITextPointer errorStart; 1061ITextPointer errorEnd; 1104private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language, 1105out ITextPointer contentPosition, out ITextPointer contextPosition) 1107ITextPointer start; 1108ITextPointer end; 1109ITextPointer outwardPosition; 1110ITextPointer inwardPosition; 1334private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError) 1336ITextPointer closestErrorPosition; 1337ITextPointer searchPosition; 1338ITextPointer start; 1339ITextPointer end; 1374ITextPointer closestLanguageTransition = GetNextLanguageTransition(position, direction, language, searchPosition); 1406private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition) 1408ITextPointer navigator = position.CreatePointer(); 1493private void ScanPosition(ITextPointer position, LogicalDirection direction) 1495ITextPointer start; 1496ITextPointer end; 1513private XmlLanguage GetCurrentLanguage(ITextPointer position) 1524private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language) 1674internal TextMap(ITextPointer contextStart, ITextPointer contextEnd, 1675ITextPointer contentStart, ITextPointer contentEnd) 1677ITextPointer position; 1789internal ITextPointer MapOffsetToPosition(int offset) 1825private bool IsAdjacentToFormatElement(ITextPointer pointer) 1849private readonly ITextPointer _basePosition; 1874internal ScanStatus(long timeLimit, ITextPointer startPosition) 1901internal ITextPointer TimeoutPosition 1908internal ITextPointer StartPosition 1917private readonly ITextPointer _startPosition; 1921private ITextPointer _timeoutPosition;
System\Windows\Documents\SpellerError.cs (6)
30internal SpellingError(Speller speller, ITextPointer start, ITextPointer end) 121internal ITextPointer Start 132internal ITextPointer End 154private readonly ITextPointer _start; 157private readonly ITextPointer _end;
System\Windows\Documents\SpellerHighlightLayer.cs (4)
86internal void FireChangedEvent(ITextPointer start, ITextPointer end) 200internal SpellerHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
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\StaticTextPointer.cs (2)
49internal ITextPointer CreateDynamicTextPointer(LogicalDirection direction) 105internal int CompareTo(ITextPointer position)
System\Windows\Documents\TextContainer.cs (6)
434ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 451ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 478ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 698int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 1709ITextPointer ITextContainer.Start 1717ITextPointer ITextContainer.End
System\Windows\Documents\TextContainerChangeEventArgs.cs (4)
27internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange) : 32internal TextContainerChangeEventArgs(ITextPointer textPosition, int count, int charCount, TextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 53internal ITextPointer ITextPosition 122private readonly ITextPointer _textPosition;
System\windows\Documents\TextEditor.cs (8)
413internal SpellingError GetSpellingErrorAtPosition(ITextPointer position, LogicalDirection direction) 425internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 482XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 505FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 1408internal ITextPointer _NextLineAdvanceMovingPosition 1490ITextPointer cursorPosition; 2083private ITextPointer _nextLineAdvanceMovingPosition;
System\windows\Documents\TextEditorContextMenu.cs (4)
171ITextPointer position = null; 261private static void GetClippedPositionOffsets(TextEditor This, ITextPointer position, LogicalDirection direction, 400private static ITextPointer GetContentPosition(ITextPointer position)
System\windows\Documents\TextEditorDragDrop.cs (6)
144ITextPointer cursorPosition = this.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 422ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 453private ITextPointer GetDropPosition(Visual target, Point point) 465ITextPointer dropPosition = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/true); 552ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 622private bool IsSelectionContainsDropPosition(ITextSelection selection, ITextPointer dropPosition)
System\windows\Documents\TextEditorMouse.cs (6)
79ITextPointer cursorPosition = This.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 140ITextPointer position; 501ITextPointer snappedCursorPosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true); 527ITextPointer acceleratedCursorPosition = null; // cursorPosition corrected to accelerate scrolling 730ITextPointer mouseMovePosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false); 748ITextPointer otherEdgePosition = mouseMovePosition.GetNextContextPosition(mouseMovePosition.LogicalDirection);
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\TextEditorTyping.cs (12)
549ITextPointer position = This.Selection.End; 552ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); 599ITextPointer position = This.Selection.Start; 603ITextPointer backspacePosition = null; 629ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Backward); 793private static bool IsAtIndentedParagraphOrBlockUIContainerStart(ITextPointer position) 815private static bool IsAtListItemStart(ITextPointer position) 850private static bool IsAtListItemChildStart(ITextPointer position, bool emptyChildOnly) 863ITextPointer navigator = position.CreatePointer(); 914ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 973ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 1565ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
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\TextParentUndoUnit.cs (6)
50internal TextParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition) 124ITextPointer anchorPosition = textContainer.CreatePointerAtOffset(_undoAnchorPositionOffset, _undoAnchorPositionDirection); 125ITextPointer movingPosition = textContainer.CreatePointerAtOffset(_undoMovingPositionOffset, _undoMovingPositionDirection); 191internal void RecordRedoSelectionState(ITextPointer anchorPosition, ITextPointer movingPosition)
System\Windows\Documents\TextPointer.cs (75)
992return (TextPointer)((ITextPointer)this).GetNextContextPosition(direction); 1065return (TextPointer)((ITextPointer)this).GetInsertionPosition(direction); 1132return (TextPointer)((ITextPointer)this).GetNextInsertionPosition(direction); 2348void ITextPointer.SetLogicalDirection(LogicalDirection direction) 2353int ITextPointer.CompareTo(ITextPointer position) 2358int ITextPointer.CompareTo(StaticTextPointer position) 2383int ITextPointer.GetOffsetToPosition(ITextPointer position) 2388TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 2393int ITextPointer.GetTextRunLength(LogicalDirection direction) 2399string ITextPointer.GetTextInRun(LogicalDirection direction) 2404int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 2409object ITextPointer.GetAdjacentElement(LogicalDirection direction) 2414Type ITextPointer.GetElementType(LogicalDirection direction) 2429bool ITextPointer.HasEqualScope(ITextPointer position) 2451ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 2453ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2466ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 2468ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2477ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 2479ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2486ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 2488ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2500object ITextPointer.GetValue(DependencyProperty formattingProperty) 2525object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 2544LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 2562ITextPointer ITextPointer.CreatePointer() 2564return ((ITextPointer)this).CreatePointer(0, this.LogicalDirection); 2567StaticTextPointer ITextPointer.CreateStaticPointer() 2575ITextPointer ITextPointer.CreatePointer(int offset) 2577return ((ITextPointer)this).CreatePointer(offset, this.LogicalDirection); 2580ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 2582return ((ITextPointer)this).CreatePointer(0, gravity); 2585ITextPointer ITextPointer.CreatePointer(int offset, LogicalDirection gravity) 2591void ITextPointer.Freeze() 2596ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 2602bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 2607int ITextPointer.MoveByOffset(int offset) 2612void ITextPointer.MoveToPosition(ITextPointer position) 2617void ITextPointer.MoveToElementEdge(ElementEdge edge) 2653int ITextPointer.MoveToLineBoundary(int count) 2659Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 2664bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 2669bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 2777void ITextPointer.InsertTextInRun(string textData) 2787void ITextPointer.DeleteContentToPosition(ITextPointer limit) 2801/// <see cref="ITextPointer.ValidateLayout"/> 2802bool ITextPointer.ValidateLayout() 2807/// <see cref="ITextPointer.ValidateLayout"/> 3614Type ITextPointer.ParentType 3631ITextContainer ITextPointer.TextContainer 3640bool ITextPointer.HasValidLayout 3649bool ITextPointer.IsAtCaretUnitBoundary 3678LogicalDirection ITextPointer.LogicalDirection 3693bool ITextPointer.IsAtInsertionPosition 3699bool ITextPointer.IsFrozen 3708int ITextPointer.Offset 3729int ITextPointer.CharOffset
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) 652internal static bool IsNextToRichLineBreak(ITextPointer thisPosition, LogicalDirection direction) 661internal static bool IsNextToParagraphBreak(ITextPointer thisPosition, LogicalDirection direction) 672internal static bool IsNextToAnyBreak(ITextPointer thisPosition, LogicalDirection direction) 685internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView) 714internal static bool IsAtRowEnd(ITextPointer thisPosition) 726internal static bool IsAfterLastParagraph(ITextPointer thisPosition) 734internal static bool IsAtParagraphOrBlockUIContainerStart(ITextPointer pointer) 801internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count) 807internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart) 809ITextPointer position; 859internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction) 865internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope) 877ITextPointer insertionPosition = thisPointer.GetInsertionPosition(direction); 926internal static bool MoveToFormatNormalizedPosition(ITextPointer thisNavigator, LogicalDirection direction) 939internal static bool MoveToInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 962internal static bool MoveToNextInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 970ITextPointer initialPosition = thisNavigator.CreatePointer(); 1070internal static bool MoveToNextWordBoundary(ITextPointer thisNavigator, LogicalDirection movingDirection) 1075ITextPointer startPosition = thisNavigator.CreatePointer(); 1102internal static ITextPointer GetFrozenPointer(ITextPointer thisPointer, LogicalDirection logicalDirection) 1104ITextPointer frozenPointer; 1119/// <see cref="ITextPointer.ValidateLayout"/> 1120internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView) 1141private static bool NormalizePosition(ITextPointer thisNavigator, LogicalDirection direction, bool respectCaretUnitBoundaries) 1257private static int LeaveNonMergeableInlineBoundary(ITextPointer thisNavigator, LogicalDirection direction, int symbolCount) 1286private static int LeaveNonMergeableAncestor(ITextPointer thisNavigator, LogicalDirection direction) 1304private static bool IsAtNormalizedPosition(ITextPointer position, bool respectCaretUnitBoundaries) 1330private static bool IsAtCaretUnitBoundary(ITextPointer position) 1363private static bool IsInsideCompoundSequence(ITextPointer position) 1415private static void GetWordBreakerText(ITextPointer pointer, out char[] text, out int position) 1422ITextPointer navigator; 1472private static bool IsAtNonMergeableInlineEdge(ITextPointer position, LogicalDirection direction) 1478ITextPointer navigator = position.CreatePointer(); 1492private static BorderingElementCategory GetBorderingElementCategory(ITextPointer position, LogicalDirection direction) 1518private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType)
System\Windows\Documents\TextRange.cs (16)
61this((ITextPointer)position1, (ITextPointer)position2) 65internal TextRange(ITextPointer position1, ITextPointer position2) 83this((ITextPointer)position1, (ITextPointer)position2) 91internal TextRange(ITextPointer position1, ITextPointer position2, bool ignoreTextUnitBoundaries) 133bool ITextRange.Contains(ITextPointer position) 143void ITextRange.Select(ITextPointer position1, ITextPointer position2) 153void ITextRange.SelectWord(ITextPointer position) 163void ITextRange.SelectParagraph(ITextPointer position) 322ITextPointer ITextRange.Start 335ITextPointer ITextRange.End 709internal void SelectParagraph(ITextPointer position)
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\TextRangeEdit.cs (10)
498object outerContextValue = ((ITextPointer)source.ElementStart).GetValue(nonFormattingCharacterProperties[i]); 1248internal static ITextPointer GetAdjustedRangeEnd(ITextPointer rangeStart, ITextPointer rangeEnd) 1393internal static void DeleteInlineContent(ITextPointer start, ITextPointer end) 1410internal static void DeleteParagraphContent(ITextPointer start, ITextPointer end) 1638((ITextPointer)nextPosition).MoveToElementEdge(edgeAfterElement); 1644((ITextPointer)nextPosition).MoveToElementEdge(edgeBeforeElement);
System\Windows\Documents\TextRangeEditTables.cs (4)
180internal static bool IsTableStructureCrossed(ITextPointer anchorPosition, ITextPointer movingPosition) 399internal static void IdentifyValidBoundaries(ITextRange range, out ITextPointer start, out ITextPointer 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\TextSchema.cs (2)
90internal static bool IsInTextContent(ITextPointer position) 217internal static bool IsValidChild(ITextPointer position, Type childType)
System\windows\Documents\TextSegment.cs (9)
44internal TextSegment(ITextPointer startPosition, ITextPointer endPosition) : 61internal TextSegment(ITextPointer startPosition, ITextPointer endPosition, bool preserveLogicalDirection) 95internal bool Contains(ITextPointer position) 113internal ITextPointer Start 124internal ITextPointer End 159private readonly ITextPointer _start; 162private readonly ITextPointer _end;
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\TextSelectionHighlightLayer.cs (12)
182ITextPointer newStart; 183ITextPointer newEnd; 184ITextPointer invalidRangeLeftStart; 185ITextPointer invalidRangeLeftEnd; 186ITextPointer invalidRangeRightStart; 187ITextPointer invalidRangeRightEnd; 328internal TextSelectionHighlightChangedEventArgs(ITextPointer invalidRangeLeftStart, ITextPointer invalidRangeLeftEnd, 329ITextPointer invalidRangeRightStart, ITextPointer invalidRangeRightEnd) 392private ITextPointer _oldStart; 393private ITextPointer _oldEnd;
System\Windows\Documents\TextServicesDisplayAttribute.cs (4)
69internal void Apply(ITextPointer start, ITextPointer end) 94internal static Color GetColor(UnsafeNativeMethods.TF_DA_COLOR dacolor, ITextPointer position) 114internal Color GetLineColor(ITextPointer position)
System\Windows\Documents\TextServicesDisplayAttributePropertyRanges.cs (4)
68ITextPointer start; 69ITextPointer end; 93ITextPointer start; 94ITextPointer end;
System\Windows\Documents\TextServicesPropertyRanges.cs (4)
81ITextPointer start; 82ITextPointer end; 120out ITextPointer start, 121out ITextPointer end)
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); 2466private static bool WalkTextRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2527private static bool WalkObjectRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2569private static bool WalkRegionBoundary(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2913private void TextPositionsFromITfRange(UnsafeNativeMethods.ITfRange range, out ITextPointer start, out ITextPointer end) 2933private void GetCompositionPositions(out ITextPointer start, out ITextPointer end) 2949private void GetCompositionPositions(UnsafeNativeMethods.ITfCompositionView view, out ITextPointer start, out ITextPointer end) 3015ITextPointer positionCurrent; 3016ITextPointer positionNext; 3132private CompositionParentUndoUnit OpenCompositionUndoUnit(ITextPointer compositionStart, ITextPointer compositionEnd) 3152ITextPointer start; 3184private static Rect GetLineBounds(ITextPointer start, ITextPointer end) 3197ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward); 3372private void BreakTypingSequence(ITextPointer caretPosition) 3389private static void GetAdjustedSelection(ITextPointer startIn, ITextPointer endIn, out ITextPointer startOut, out ITextPointer endOut) 3472private void GetNormalizedRange(int startCharOffset, int endCharOffset, out ITextPointer start, out ITextPointer end) 3655ITextPointer start = this.TextContainer.CreatePointerAtOffset(record.StartOffsetBefore, LogicalDirection.Backward); 3656ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward); 3974ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward); 3975ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward); 3995ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(imeSelectionAnchorOffset, LogicalDirection.Backward); 3996ITextPointer moving = this.TextContainer.CreatePointerAtOffset(imeSelectionMovingOffset, LogicalDirection.Backward); 4364internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit) 4579private ITextPointer _previousCompositionStart; 4582private ITextPointer _previousCompositionEnd;
System\Windows\Documents\ValidationHelper.cs (4)
30internal static void VerifyPosition(ITextContainer tree, ITextPointer position) 38internal static void VerifyPosition(ITextContainer container, ITextPointer position, string paramName) 56internal static void VerifyPositionPair(ITextPointer startPosition, ITextPointer endPosition)