5 implementations of ITextPointer
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
21internal sealed class PasswordTextPointer : ITextPointer
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
31internal sealed class DocumentSequenceTextPointer : ContentPosition, ITextPointer
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
32internal class FixedTextPointer : ContentPosition, ITextPointer
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
25internal sealed class NullTextPointer : ITextPointer
src\Framework\System\Windows\Documents\TextPointer.cs (1)
241public class TextPointer : ContentPosition, ITextPointer
2103 references to ITextPointer
PresentationFramework (2103)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (11)
110ITextPointer startPointer = segment.Start.CreatePointer(LogicalDirection.Forward); 117ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 336ITextPointer segStart; 355ITextPointer segEnd; 454ITextPointer start = null; 560private static ITextPointer FindStartVisibleTextPointer(DocumentPage documentPage) 562ITextPointer start, end; 585private static ITextPointer FindEndVisibleTextPointer(DocumentPage documentPage) 587ITextPointer start, end; 611private static bool GetTextViewRange(DocumentPage documentPage, out ITextPointer start, out ITextPointer end)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (15)
122ITextPointer start = null; 123ITextPointer end = null; 139while (((ITextPointer)current).CompareTo(end) < 0) 166ITextPointer start = null; 167ITextPointer end = null; 182public static UIElement GetParent(ITextPointer pointer) 258public static Point GetAnchorPointForPointer(ITextPointer pointer) 283public static Point GetPointForPointer(ITextPointer pointer) 307public static Rect GetAnchorRectangle(ITextPointer pointer) 343public static IDocumentPaginatorSource GetPointerPage(ITextPointer pointer, out int pageNumber) 376internal static void CheckSelection(object selection, out ITextPointer start, out ITextPointer end, out IList<TextSegment> segments) 403internal static ITextView GetDocumentPageTextView(ITextPointer pointer) 442ITextPointer start = segment.Start.CreatePointer(LogicalDirection.Forward); 443ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (14)
150ITextPointer start; 151ITextPointer end; 158ITextPointer elementStart; 159ITextPointer elementEnd; 239ITextPointer elementStart; 240ITextPointer elementEnd; 250ITextPointer start = elementStart.CreatePointer(startOffset);// new TextPointer((TextPointer)elementStart, startOffset); 252ITextPointer end = (textRangeLength <= endOffset) ? 273ITextPointer currentStart = anchor.Start; 274ITextPointer currentEnd = anchor.End; 505private bool GetNodesStartAndEnd(DependencyObject startNode, out ITextPointer start, out ITextPointer end) 539private void GetTextSegmentValues(TextSegment segment, ITextPointer elementStart, ITextPointer elementEnd, out int startOffset, out int endOffset)
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
251ITextPointer start = segments[0].Start; 252ITextPointer end = segments[segments.Count - 1].End;
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (36)
81ITextPointer start = highlightRange.Range.Start; 82ITextPointer end = highlightRange.Range.End; 101ITextPointer invalidateStart; 102ITextPointer invalidateEnd; 134ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 135ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 185ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 186ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 214ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 215ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 288ITextPointer dynamicPosition; 354private void ProcessOverlapingSegments(IHighlightRange highlightRange, out ITextPointer invalidateStart, out ITextPointer invalidateEnd) 470private ITextPointer GetNextForwardPosition(StaticTextPointer pos) 495private ITextPointer GetNextBackwardPosition(StaticTextPointer pos) 515void GetSpannedSegments(ITextPointer start, ITextPointer end, out int startSeg, out int endSeg) 574internal AnnotationHighlightChangedEventArgs(ITextPointer start, ITextPointer end) 624internal HighlightSegment(ITextPointer start, ITextPointer end, IHighlightRange owner) 640internal HighlightSegment(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners) 655private void Init(ITextPointer start, ITextPointer end, IList<IHighlightRange> owners) 782internal IList<HighlightSegment> Split(ITextPointer ps, LogicalDirection side) 812internal IList<HighlightSegment> Split(ITextPointer ps1, ITextPointer ps2, IHighlightRange newOwner) 1010ITextPointer cursor = _segment.Start.CreatePointer(); 1011ITextPointer segmentStart = null; 1077private void OpenSegment(ref ITextPointer segmentStart, ITextPointer cursor) 1088private void CloseSegment(ref ITextPointer segmentStart, ITextPointer cursor, ITextPointer end) 1099ITextPointer segmentEnd = cursor.GetInsertionPosition(LogicalDirection.Backward);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (9)
379private void SetMarkerTransform(Path marker, ITextPointer anchor, ITextPointer baseAnchor, int xScaleFactor) 682ITextPointer start = anchor.Start.CreatePointer(LogicalDirection.Forward); 683ITextPointer end = anchor.End.CreatePointer(LogicalDirection.Backward); 730private void CheckPosition(ITextPointer position) 813private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 843ITextPointer nextPointer = pointer.GetNextInsertionPosition(direction); 967ITextPointer pos = textView.GetTextPositionFromPoint(currentPosition, false); 978private static void CheckAllHighlightRanges(ITextPointer pos)
src\Framework\MS\Internal\Annotations\TextAnchor.cs (7)
106internal bool Contains(ITextPointer textPointer) 147internal void AddTextSegment(ITextPointer start, ITextPointer end) 514internal ITextPointer Start 525internal ITextPointer End 661private static TextSegment CreateNormalizedSegment(ITextPointer start, ITextPointer end)
src\Framework\MS\Internal\Documents\ColumnResult.cs (3)
111internal bool Contains(ITextPointer position, bool strict) 130internal ITextPointer StartPosition 142internal ITextPointer EndPosition
src\Framework\MS\Internal\Documents\DocumentGrid.cs (11)
309ITextPointer tp = TextEditor.Selection.Start; 1863ITextPointer tp = data.ContentPosition as ITextPointer; 1995ITextPointer selection = GetVisibleSelection(); 2582private ITextPointer GetVisibleSelection() 2584ITextPointer selection = null; 2588ITextPointer tp = TextEditor.Selection.Start; 2616private int GetPageNumberForVisibleSelection(ITextPointer selection) 2649ITextPointer tp = GetVisibleSelection(); 2720private bool TextViewContains( ITextPointer tp ) 2914ITextPointer selection = GetVisibleSelection();
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (21)
100internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 119internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 147internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 173internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 175ITextPointer positionOut; 202internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 204ITextPointer positionOut = position; 243internal override bool IsAtCaretUnitBoundary(ITextPointer position) 260internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 277internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 294internal override TextSegment GetLineRange(ITextPointer position) 311internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 328internal override bool Contains(ITextPointer position) 408/// <see cref="ITextView.Validate(ITextPointer)"/> 410internal override bool Validate(ITextPointer position)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (5)
99ITextPointer contentStart; 100ITextPointer contentEnd; 101ITextPointer startPointer = null; 239ITextPointer temp = contentStart; 412ITextPointer contextMenuPosition = null;
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (2)
330void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (5)
362ITextPointer position; 712private void InvalidateBRTLayout(ITextPointer start, ITextPointer end) 1125void IFlowDocumentFormatter.OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end)
src\Framework\MS\Internal\Documents\HostedElements.cs (4)
105Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 106((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 116Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 117while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0)
src\Framework\MS\Internal\Documents\IFlowDocumentFormatter.cs (2)
35void OnContentInvalidated(bool affectsLayout, ITextPointer start, ITextPointer end);
src\Framework\MS\Internal\Documents\LineResult.cs (12)
40internal abstract ITextPointer GetTextPositionFromDistance(double distance); 45internal abstract bool IsAtCaretUnitBoundary(ITextPointer position); 50internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 55internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 60internal abstract ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 70internal abstract ITextPointer GetContentEndPosition(); 80internal abstract ITextPointer GetEllipsesPosition(); 115internal abstract ITextPointer StartPosition { get; } 120internal abstract ITextPointer EndPosition { get; }
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (47)
94internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 96ITextPointer position = null; 119internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 148internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 166ITextPointer startPositionInTextSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 167ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 191internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 206internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 219internal override bool IsAtCaretUnitBoundary(ITextPointer position) 241internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 243ITextPointer positionOut = null; 263internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 265ITextPointer positionOut = null; 285internal override TextSegment GetLineRange(ITextPointer position) 307internal override bool Contains(ITextPointer position) 320internal override void BringPositionIntoViewAsync(ITextPointer position, object userState) 384ITextPointer position; 483internal override void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 507internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 608internal ITextView GetPageTextViewFromPosition(ITextPointer position) 760ITextPointer newPosition; 832ITextPointer newPosition; 869private ITextPointer GetPositionAtNextLineCore(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved, out int pageNumber) 871ITextPointer positionOut; 973private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber) 976ITextPointer positionOut = position; 1027private ITextPointer GetPositionAtPageBoundary(bool pageTop, ITextView pageTextView, ITextPointer position, double suggestedX) 1031ITextPointer positionOut; 1141private DocumentPageTextView GetTextViewFromPosition(ITextPointer position) 1368ITextPointer newPosition; 1599internal BringPositionIntoViewRequest(ITextPointer position, object userState) 1605internal readonly ITextPointer Position; 1621internal ITextPointer Position; 1629internal BringLineIntoViewRequest(ITextPointer position, double suggestedX, int count, object userState) 1639internal readonly ITextPointer Position; 1642internal ITextPointer NewPosition; 1653internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState) 1663internal readonly ITextPointer Position; 1666internal ITextPointer NewPosition;
src\Framework\MS\Internal\Documents\ParagraphResult.cs (29)
84internal virtual bool Contains(ITextPointer position, bool strict) 103internal ITextPointer StartPosition 115internal ITextPointer EndPosition 248internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 357internal Rect GetRectangleFromTextPosition(ITextPointer position) 370internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 379internal bool IsAtCaretUnitBoundary(ITextPointer position) 391internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 400internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 414internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 428internal override bool Contains(ITextPointer position, bool strict) 637internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position) 649internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 661internal CellParaClient GetCellParaClientFromPosition(ITextPointer position) 713internal Rect GetRectangleFromRowEndPosition(ITextPointer position) 1091internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success) 1098ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition; 1264internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success) 1271ITextPointer endPositionInThisPara = endPosition.CompareTo(this.EndPosition) < 0 ? endPosition : this.EndPosition; 1348internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
121ITextPointer position = _owner.Host.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
src\Framework\MS\Internal\Documents\TextBoxView.cs (40)
604ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 611ITextPointer position; 629Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 683Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 693Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 749ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward); 772ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 782ITextPointer nextLinePosition; 804ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 819bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 858ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 927ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 935ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 975ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 983TextSegment ITextView.GetLineRange(ITextPointer position) 990ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 991ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 999ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 1009bool ITextView.Contains(ITextPointer position) 1017void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 1039void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 1050void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 1087/// <see cref="ITextView.Validate(ITextPointer)"/> 1089bool ITextView.Validate(ITextPointer position) 1309ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[0].Offset, LogicalDirection.Backward); 1310ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count-1].EndOffset, LogicalDirection.Forward); 1694private int GetLineIndexFromPosition(ITextPointer position) 1700private int GetLineIndexFromPosition(ITextPointer position, LogicalDirection direction) 1750private ITextPointer GetTextPositionFromDistance(int lineIndex, double x) 2055ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2100ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2151ITextPointer position = _host.TextContainer.CreatePointerAtOffset(unclippedStartOffset, LogicalDirection.Backward); 2179ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(endOffset, LogicalDirection.Backward); 2898private bool Contains(ITextPointer position)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (24)
118internal bool Contains(ITextPointer position, bool strict) 158internal ITextPointer StartPosition 162ITextPointer startPosition = null; 170internal ITextPointer EndPosition 174ITextPointer endPosition = null; 316internal static List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end, ITextPointer ownerContentStart) 400internal static bool IsImmediateAutomationChild(ITextPointer elementStart, ITextPointer ownerContentStart) 405ITextPointer position = elementStart.CreatePointer(); 436internal static AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end, out ITextPointer elementStart, out ITextPointer elementEnd) 440ITextPointer position; 442List<ITextPointer> positionsStart, positionsEnd; 447positionsStart = new List<ITextPointer>(); 463positionsEnd = new List<ITextPointer>(); 543internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element) 545ITextPointer textPointer; 592internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction) 608internal static ITextPointer GetTextPointerForEmbeddedObject(FrameworkElement embeddedObject) 611ITextPointer position;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (88)
69internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 92internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 117internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 162ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 163ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 233internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 235ITextPointer positionOut; 287internal override bool IsAtCaretUnitBoundary(ITextPointer position) 306internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 326internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 345internal override TextSegment GetLineRange(ITextPointer position) 364internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 393internal override bool Contains(ITextPointer position) 470internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments) 688private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements) 690ITextPointer position; 751private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText) 753ITextPointer position = null; 908private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText) 910ITextPointer position = null; 1119private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1156private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position) 1259private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1282ITextPointer startPosition, 1283ITextPointer endPosition, 1350ITextPointer startPosition, 1351ITextPointer endPosition, 1376ITextPointer startPosition, 1377ITextPointer endPosition, 1459private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1494private bool IsAtCaretUnitBoundary(ParagraphResult paragraph, ITextPointer position) 1565private bool IsAtCaretUnitBoundary(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1584private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction) 1588ITextPointer nextCaretPosition = position; 1621private ITextPointer GetNextCaretUnitPosition(ParagraphResult paragraph, ITextPointer position, LogicalDirection direction) 1623ITextPointer nextCaretPosition = position; 1693private ITextPointer GetNextCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, LogicalDirection direction) 1710private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1714ITextPointer backspaceCaretPosition = position; 1745private ITextPointer GetBackspaceCaretUnitPosition(ParagraphResult paragraph, ITextPointer position) 1747ITextPointer backspaceCaretPosition = position; 1815private ITextPointer GetBackspaceCaretUnitPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2132private int GetColumnFromPosition(ReadOnlyCollection<ColumnResult> columns, ITextPointer position) 2183private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, out bool isFloatingPara) 2209private static int GetParagraphFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position) 2280private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2315private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position) 2419private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2450private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ParagraphResult> paragraphs, ITextPointer position, double suggestedX, ref int count, out bool positionFound) 2455ITextPointer positionOut = position; 2670private ITextPointer GetPositionAtNextLineInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out bool positionFound) 2673ITextPointer positionOut = position; 2721private ITextPointer GetPositionAtNextLine(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position, double suggestedX, ref int count, out double newSuggestedX, out bool positionFound) 2723ITextPointer positionOut = null; 2762ITextPointer siblingColumnPosition = GetPositionAtNextLineFromSiblingColumn(columns, columnIndex, suggestedX, ref newSuggestedX, ref count); 2793private ITextPointer GetPositionAtNextLineFromSiblingPara(ReadOnlyCollection<ParagraphResult> paragraphs, int paragraphIndex, double suggestedX, ref int count) 2798ITextPointer positionOut = null; 2957private ITextPointer GetPositionAtNextLineFromSiblingTextPara(TextParagraphResult paragraph, double suggestedX, ref int count) 2959ITextPointer positionOut = null; 3075private ITextPointer GetPositionAtNextLineFromSiblingColumn(ReadOnlyCollection<ColumnResult> columns, int columnIndex, double columnSuggestedX, ref double newSuggestedX, ref int count) 3077ITextPointer positionOut = null; 3123private bool ContainsCore(ITextPointer position) 3138private bool GetGlyphRunsFromParagraphs(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> paragraphs) 3152ITextPointer startRange = start.CompareTo(tpr.StartPosition) < 0 ? tpr.StartPosition : start; 3153ITextPointer endRange = end.CompareTo(tpr.EndPosition) < 0 ? end : tpr.EndPosition; 3191private void GetGlyphRunsFromFloatingElements(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ParagraphResult> floatingElements, out bool success) 3203ITextPointer endThisPara = end.CompareTo(paragraph.EndPosition) < 0 ? end : paragraph.EndPosition; 3236private void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end, ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements) 3295ITextPointer segmentEnd = _textContainer.End; 3486private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer) 3516private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
src\Framework\MS\Internal\Documents\TextParagraphView.cs (20)
70internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 72ITextPointer position; 93internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 115internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 147internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 149ITextPointer positionOut; 213internal override bool IsAtCaretUnitBoundary(ITextPointer position) 232internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 245ITextPointer positionOut = _owner.GetNextCaretUnitPosition(position, direction, dcp, lineIndex); 255internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 268ITextPointer positionOut = _owner.GetBackspaceCaretUnitPosition(position, dcp, lineIndex); 278internal override TextSegment GetLineRange(ITextPointer position) 307internal override bool Contains(ITextPointer position) 349internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText) 352ITextPointer orientedPosition; 384internal static int GetLineFromPosition(ReadOnlyCollection<LineResult> lines, ITextPointer position)
src\Framework\MS\Internal\Documents\TextViewBase.cs (49)
39internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 48internal virtual Rect GetRectangleFromTextPosition(ITextPointer position) 64internal abstract Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 69internal abstract Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition); 74internal abstract ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved); 79internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 89internal abstract bool IsAtCaretUnitBoundary(ITextPointer position); 94internal abstract ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 99internal abstract ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 104internal abstract TextSegment GetLineRange(ITextPointer position); 109internal virtual ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 122internal abstract bool Contains(ITextPointer position); 180internal virtual void BringPositionIntoViewAsync(ITextPointer position, object userState) 195ITextPointer position; 209internal virtual void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 211ITextPointer newPosition; 227internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 229ITextPointer newPosition; 266/// <see cref="ITextView.Validate(ITextPointer)"/> 268internal virtual bool Validate(ITextPointer position) 469ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 477Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 485Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 493Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 501ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 509ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 517bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 525ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 533ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 541TextSegment ITextView.GetLineRange(ITextPointer position) 549ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 557bool ITextView.Contains(ITextPointer position) 565void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 581void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 589void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 619/// <see cref="ITextView.Validate(ITextPointer)"/> 621bool ITextView.Validate(ITextPointer position)
src\Framework\MS\Internal\LayoutDump.cs (2)
616private static void DumpTextRange(XmlTextWriter writer, ITextPointer start, ITextPointer end)
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (6)
178internal void OnInvalidateLayout(ITextPointer start, ITextPointer end) 228internal void OnInvalidateRender(ITextPointer start, ITextPointer end) 437private void GetAffectedPages(ITextPointer start, ITextPointer end, out int pageStart, out int pageCount)
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (2)
341internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (2)
463internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (3)
164ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 254ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 1054protected virtual BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (2)
815internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (2)
821internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (3)
982while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.TextContainer.End) < 0) 1017if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 1018((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
src\Framework\MS\Internal\PtsHost\Line.cs (2)
207ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 208ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
76protected override BaseParagraph GetParagraph(ITextPointer textPointer, bool fEmptyOk)
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (3)
157ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 158ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 196ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (5)
868internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPosition(ITextPointer position) 886internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 963internal CellParaClient GetCellParaClientFromPosition(ITextPointer position) 1211internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (29)
756internal ITextPointer GetTextPosition(int dcp, LogicalDirection direction) 778internal Rect GetRectangleFromTextPosition(ITextPointer position) 847internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 946internal bool IsAtCaretUnitBoundary(ITextPointer position) 1006internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 1008ITextPointer nextCaretPosition = position; 1059internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 1061ITextPointer backspaceCaretPosition = position; 1121internal ITextPointer GetTextPositionFromDistance(int dcpLine, double distance) 1268internal void GetGlyphRuns(List<GlyphRun> glyphRuns, ITextPointer start, ITextPointer end) 2254ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2593ITextPointer position, 2689ITextPointer position, 2817private ITextPointer NextCaretUnitPositionFromDcpSimpleLines( 2819ITextPointer position, 2833ITextPointer nextCaretPosition = position; 2946private ITextPointer NextCaretUnitPositionFromDcpCompositeLines( 2948ITextPointer position, 2962ITextPointer nextCaretPosition = position; 3117private ITextPointer BackspaceCaretUnitPositionFromDcpSimpleLines( 3119ITextPointer position, 3132ITextPointer backspaceCaretPosition = position; 3213private ITextPointer BackspaceCaretUnitPositionFromDcpCompositeLines( 3215ITextPointer position, 3228ITextPointer backspaceCaretPosition = position;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (5)
892ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 893ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 915ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 916ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 969ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element);
src\Framework\MS\Internal\PtsHost\TextParaLineResult.cs (14)
47internal override ITextPointer GetTextPositionFromDistance(double distance) 59internal override bool IsAtCaretUnitBoundary(ITextPointer position) 75internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 88internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 104internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 114internal override ITextPointer GetContentEndPosition() 124internal override ITextPointer GetEllipsesPosition() 175internal override ITextPointer StartPosition 190internal override ITextPointer EndPosition 360private ITextPointer _startPosition; 365private ITextPointer _endPosition;
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
151internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition)
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
97ITextPointer position = _owner.TextContainer.CreatePointerAtOffset(dcp, LogicalDirection.Backward);
src\Framework\MS\Internal\Text\TextLineResult.cs (14)
49internal override ITextPointer GetTextPositionFromDistance(double distance) 59internal override bool IsAtCaretUnitBoundary(ITextPointer position) 71internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 82internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 94internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 108internal override ITextPointer GetContentEndPosition() 122internal override ITextPointer GetEllipsesPosition() 173internal override ITextPointer StartPosition 188internal override ITextPointer EndPosition 313private ITextPointer _startPosition; 318private ITextPointer _endPosition;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (2)
692ITextPointer start = selection.Start.CreatePointer(); 693ITextPointer end = selection.End.CreatePointer();
src\Framework\System\Windows\Automation\Peers\ContentTextAutomationPeer.cs (2)
58internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (4)
218internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end) 289private ITextPointer _childrenStart; 290private ITextPointer _childrenEnd;
src\Framework\System\Windows\Automation\Peers\PasswordBoxAutomationPeer.cs (2)
169internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
87internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Automation\Peers\TextAutomationPeer.cs (2)
84internal abstract List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end);
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
134internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
223internal override List<AutomationPeer> GetAutomationPeersFromRange(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
850ITextPointer contentPosition = arg as ITextPointer;
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
1092ITextPointer selectionStart; 1093ITextPointer selectionEnd;
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (24)
80internal void InsertText(ITextPointer position, string textData) 119internal void DeleteContent(ITextPointer startPosition, ITextPointer endPosition) 221ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 227ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 232ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 234return ((ITextPointer)position.Handle0).CreatePointer(direction); 244return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 249return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 254return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 259return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 269return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 274return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 279return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 282int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 284return ((ITextPointer)position1.Handle0).CompareTo(position2); 289return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 373ITextPointer ITextContainer.Start 387ITextPointer ITextContainer.End 519internal ITextPointer Start 533internal ITextPointer End 629private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (74)
54/// <see cref="ITextPointer.SetLogicalDirection"/> 56void ITextPointer.SetLogicalDirection(LogicalDirection direction) 84int ITextPointer.CompareTo(ITextPointer position) 107int ITextPointer.CompareTo(StaticTextPointer position) 109return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 124int ITextPointer.GetOffsetToPosition(ITextPointer position) 140TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 172int ITextPointer.GetTextRunLength(LogicalDirection direction) 189string ITextPointer.GetTextInRun(LogicalDirection direction) 194int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 229object ITextPointer.GetAdjacentElement(LogicalDirection direction) 249Type ITextPointer.GetElementType(LogicalDirection direction) 268bool ITextPointer.HasEqualScope(ITextPointer position) 289object ITextPointer.GetValue(DependencyProperty formattingProperty) 300object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 312LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 317ITextPointer ITextPointer.CreatePointer() 324StaticTextPointer ITextPointer.CreateStaticPointer() 326return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 329ITextPointer ITextPointer.CreatePointer(int distance) 334ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 356ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 362void ITextPointer.Freeze() 368/// <see cref="ITextPointer.GetFrozenPointer"/> 370ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 381void ITextPointer.InsertTextInRun(string textData) 393void ITextPointer.DeleteContentToPosition(ITextPointer limit) 425bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 466int ITextPointer.MoveByOffset(int distance) 494void ITextPointer.MoveToPosition(ITextPointer position) 512void ITextPointer.MoveToElementEdge(ElementEdge edge) 519int ITextPointer.MoveToLineBoundary(int count) 525Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 530bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 535bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 542ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 544ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 557ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 559ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 566ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 568ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 583ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 585ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 591/// <see cref="ITextPointer.ValidateLayout"/> 592bool ITextPointer.ValidateLayout() 608Type ITextPointer.ParentType 617ITextContainer ITextPointer.TextContainer 626bool ITextPointer.HasValidLayout 635bool ITextPointer.IsAtCaretUnitBoundary 655LogicalDirection ITextPointer.LogicalDirection 663bool ITextPointer.IsAtInsertionPosition 669bool ITextPointer.IsFrozen 678int ITextPointer.Offset 687int ITextPointer.CharOffset
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
791private ITextPointer GetMasterPageTextPointer(bool startOfPage) 793ITextPointer masterPointer = null;
src\Framework\System\Windows\Controls\TextAdaptor.cs (16)
100internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool clipToView, bool transformToScreen) 141ITextPointer position = start.CreatePointer(); 149ITextPointer first = (lineRange.Start.CompareTo(start) <= 0) ? start : lineRange.Start; 150ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End; 210internal void Select(ITextPointer start, ITextPointer end) 223internal void ScrollIntoView(ITextPointer start, ITextPointer end, bool alignToTop) 285ITextPointer pointer = alignToTop ? start.CreatePointer() : end.CreatePointer(); 523ITextPointer visibleStart = textView.GetTextPositionFromPoint(visibleRect.TopLeft, true); 524ITextPointer visibleEnd = textView.GetTextPositionFromPoint(visibleRect.BottomRight, true); 576ITextPointer rangeStart = null; 577ITextPointer rangeEnd = null; 599ITextPointer position = _textContainer.Start.CreatePointer(); 656ITextPointer position = textView.GetTextPositionFromPoint(location, true);
src\Framework\System\Windows\Controls\TextBlock.cs (14)
2213internal ITextPointer GetTextPositionFromDistance(int dcp, double distance, double lineVOffset, int index) 2230ITextPointer pos; 2259internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition) 2362internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 2388ITextPointer endOfLineTextPointer = _complexContent.TextContainer.Start.CreatePointer(0); 2476internal bool IsAtCaretUnitBoundary(ITextPointer position, int dcp, int lineIndex) 2544internal ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction, int dcp, int lineIndex) 2653ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 2673internal ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position, int dcp, int lineIndex) 2741ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 2925private static void InsertTextRun(ITextPointer position, string text, bool whitespacesIgnorable)
src\Framework\System\Windows\Controls\TextBox.cs (1)
590ITextPointer position = this.TextContainer.CreatePointerAtOffset(charIndex, direction);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (69)
58delegate(ITextPointer tp) 69delegate(ITextPointer tp) 79delegate(ITextPointer tp) 118delegate(ITextPointer tp) 158delegate(ITextPointer tp) 169delegate(ITextPointer tp) 179delegate(ITextPointer tp) 189delegate(ITextPointer tp) 200delegate(ITextPointer tp) 210delegate(ITextPointer tp) 238delegate(ITextPointer tp) 248delegate(ITextPointer tp) 259delegate(ITextPointer tp) 270delegate(ITextPointer tp) { return false; }, 277delegate(ITextPointer tp) 289delegate(ITextPointer tp) 304delegate(ITextPointer tp) 315delegate(ITextPointer tp) 326delegate(ITextPointer tp) 337delegate(ITextPointer tp) 348delegate(ITextPointer tp) 359delegate(ITextPointer tp) 370delegate(ITextPointer tp) { return OutlineStyles.None; }, 377delegate(ITextPointer tp) 388delegate(ITextPointer tp) 399delegate(ITextPointer tp) 410delegate(ITextPointer tp) 421delegate(ITextPointer tp) 443delegate(ITextPointer tp) 454delegate(ITextPointer tp) 467internal TextRangeAdaptor(TextAdaptor textAdaptor, ITextPointer start, ITextPointer end, AutomationPeer textPeer) 490internal static bool MoveToInsertionPosition(ITextPointer position, LogicalDirection direction) 735private bool MoveToUnitBoundary(ITextPointer position, bool isStart, LogicalDirection direction, TextUnit unit) 803ITextPointer nextLineStart = null; 830ITextPointer previousLineEnd = null; 866ITextPointer nextParagraphStart = textRange.End; 887ITextPointer previousParagraphEnd = textRange.Start; 1000private int MovePositionByUnits(ITextPointer position, TextUnit unit, int count) 1038ITextPointer positionOrig = position.CreatePointer(); 1165ITextPointer positionTemp = position.CreatePointer(); 1215ITextPointer start = _start.CreatePointer(); 1216ITextPointer end = _end.CreatePointer(); 1276private static string GetFontFamilyName(FontFamily fontFamily, ITextPointer context) 1388private AutomationPeer GetEnclosingAutomationPeer(ITextPointer start, ITextPointer end) 1391ITextPointer elementStart, elementEnd; 1430private List<AutomationPeer> GetAutomationPeersFromRange(AutomationPeer peer, ITextPointer start, ITextPointer end) 1450private static bool IsAtWordBoundary(ITextPointer position) 1465private static bool MoveToNextWordBoundary(ITextPointer position, LogicalDirection direction) 1468ITextPointer startPosition = position.CreatePointer(); 1516private ITextPointer GetInsertionPosition(ITextPointer position, LogicalDirection direction) 1535private ITextPointer _start; 1536private ITextPointer _end; 1558internal delegate object GetValueAtDelegate(ITextPointer textPointer); 1636ITextPointer position = (endpoint == TextPatternRangeEndpoint.Start) ? _start : _end; 1637ITextPointer targetPosition = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end; 1687ITextPointer attrStart = null; 1688ITextPointer attrEnd = null; 1692ITextPointer stop = _start; 1693ITextPointer position = _end.CreatePointer(LogicalDirection.Backward); 1723ITextPointer stop = _end; 1724ITextPointer position = _start.CreatePointer(LogicalDirection.Forward); 1916ITextPointer position = _start.CreatePointer(); 1968ITextPointer positionRef = start ? _start : _end; 1969ITextPointer position = positionRef.CreatePointer(); 2033ITextPointer targetPointer = (targetEndpoint == TextPatternRangeEndpoint.Start) ? rangeAdaptor._start : rangeAdaptor._end;
src\Framework\System\Windows\Documents\ChildDocumentBlock.cs (1)
151internal ITextPointer End
src\Framework\System\Windows\Documents\CompositionAdorner.cs (12)
327internal void AddAttributeRange(ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServiceDisplayAttribute) 330ITextPointer rangeStart = start.CreatePointer(LogicalDirection.Forward); 331ITextPointer rangeEnd = end.CreatePointer(LogicalDirection.Backward); 460internal AttributeRange(ITextView textView, ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServicesDisplayAttribute) 487ITextPointer start = _textView.TextContainer.Start.CreatePointer(_startOffset, LogicalDirection.Forward); 488ITextPointer end = _textView.TextContainer.Start.CreatePointer(_endOffset, LogicalDirection.Backward); 572private void AddMultipleCompositionLines(ITextPointer start, ITextPointer end) 575ITextPointer startLinePointer = start; 576ITextPointer endLinePointer = startLinePointer;
src\Framework\System\Windows\Documents\DocumentSequence.cs (4)
409if (cp != ContentPosition.Missing && (cp is ITextPointer)) 412return new DocumentSequenceTextPointer(childBlock, (ITextPointer)cp); 1185ITextPointer childPosition = _documentPaginator.GetPagePosition(_documentPage) as ITextPointer;
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (25)
115ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 121ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 126ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 128return ((ITextPointer)position.Handle0).CreatePointer(direction); 138return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 143return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 148return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 153return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 163return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 168return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 173return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 176int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 178return ((ITextPointer)position1.Handle0).CompareTo(position2); 183return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 233ITextPointer ITextContainer.Start 246ITextPointer ITextContainer.End 362internal DocumentSequenceTextPointer VerifyPosition(ITextPointer position) 386internal DocumentSequenceTextPointer MapChildPositionToParent(ITextPointer tp) 559private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 744ITextPointer tpChildStart, tpChildEnd; 1013ITextPointer dynamicTextPointer = textPosition.CreateDynamicTextPointer(LogicalDirection.Forward); 1014ITextPointer parentTextPointer = ((DocumentSequenceTextContainer)this.TextContainer).MapChildPositionToParent(dynamicTextPointer); 1042ITextPointer childTp = parentChangePosition.ChildPointer;
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (134)
40internal DocumentSequenceTextPointer(ChildDocumentBlock childBlock, ITextPointer childPosition) 57/// <see cref="ITextPointer.SetLogicalDirection"/> 59void ITextPointer.SetLogicalDirection(LogicalDirection direction) 66/// <see cref="ITextPointer.CompareTo(ITextPointer)"/> 68int ITextPointer.CompareTo(ITextPointer position) 74/// <see cref="ITextPointer.CompareTo(StaticTextPointer)"/> 76int ITextPointer.CompareTo(StaticTextPointer position) 78return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 82/// <see cref="ITextPointer.GetOffsetToPosition"/> 84int ITextPointer.GetOffsetToPosition(ITextPointer position) 90/// <see cref="ITextPointer.GetPointerContext"/> 92TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 98/// <see cref="ITextPointer.GetTextRunLength"/> 101int ITextPointer.GetTextRunLength(LogicalDirection direction) 107string ITextPointer.GetTextInRun(LogicalDirection direction) 113/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 116int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 122/// <see cref="ITextPointer.GetAdjacentElement"/> 125object ITextPointer.GetAdjacentElement(LogicalDirection direction) 131/// <see cref="ITextPointer.GetElementType"/> 134Type ITextPointer.GetElementType(LogicalDirection direction) 140/// <see cref="ITextPointer.HasEqualScope"/> 142bool ITextPointer.HasEqualScope(ITextPointer position) 149/// <see cref="ITextPointer.GetValue"/> 152object ITextPointer.GetValue(DependencyProperty property) 158/// <see cref="ITextPointer.ReadLocalValue"/> 161object ITextPointer.ReadLocalValue(DependencyProperty property) 167/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 170LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 176/// <see cref="ITextPointer.CreatePointer()"/> 178ITextPointer ITextPointer.CreatePointer() 186/// <see cref="ITextPointer.CreateStaticPointer"/> 188StaticTextPointer ITextPointer.CreateStaticPointer() 190return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 194/// <see cref="ITextPointer.CreatePointer(int)"/> 196ITextPointer ITextPointer.CreatePointer(int distance) 202/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 204ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 210/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 212ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 218void ITextPointer.Freeze() 224/// <see cref="ITextPointer.GetFrozenPointer"/> 226ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 237void ITextPointer.InsertTextInRun(string textData) 249void ITextPointer.DeleteContentToPosition(ITextPointer limit) 255ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 257ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 270ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 272ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 281ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 283ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 290ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 292ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 304/// <see cref="ITextPointer.ValidateLayout"/> 305bool ITextPointer.ValidateLayout() 307return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 335Type ITextPointer.ParentType 344/// <see cref="ITextPointer.TextContainer"/> 346ITextContainer ITextPointer.TextContainer 352bool ITextPointer.HasValidLayout 356return (((ITextPointer)this).TextContainer.TextView != null && 357((ITextPointer)this).TextContainer.TextView.IsValid && 358((ITextPointer)this).TextContainer.TextView.Contains(this)); 363bool ITextPointer.IsAtCaretUnitBoundary 367Invariant.Assert(((ITextPointer)this).HasValidLayout); 368ITextView textView = ((ITextPointer)this).TextContainer.TextView; 371if (!isAtCaretUnitBoundary && ((ITextPointer)this).LogicalDirection == LogicalDirection.Backward) 379ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward); 387/// <see cref="ITextPointer.LogicalDirection"/> 389LogicalDirection ITextPointer.LogicalDirection 397bool ITextPointer.IsAtInsertionPosition 403bool ITextPointer.IsFrozen 412int ITextPointer.Offset 421int ITextPointer.CharOffset 453/// <see cref="ITextPointer.MoveByOffset"/> 455bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 463/// <see cref="ITextPointer.MoveByOffset"/> 465int ITextPointer.MoveByOffset(int offset) 480/// <see cref="ITextPointer.MoveToPosition"/> 482void ITextPointer.MoveToPosition(ITextPointer position) 502/// <see cref="ITextPointer.MoveToElementEdge"/> 504void ITextPointer.MoveToElementEdge(ElementEdge edge) 512int ITextPointer.MoveToLineBoundary(int count) 514return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 518Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 523bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 528bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 564internal ITextPointer ChildPointer 607/// <see cref="ITextPointer.CompareTo(ITextPointer)"/> 609public static int CompareTo(DocumentSequenceTextPointer thisTp, ITextPointer position) 619/// <see cref="ITextPointer.GetOffsetToPosition"/> 621public static int GetOffsetToPosition(DocumentSequenceTextPointer thisTp, ITextPointer position) 641/// <see cref="ITextPointer.GetPointerContext"/> 651/// <see cref="ITextPointer.GetTextRunLength"/> 662/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 694/// <see cref="ITextPointer.GetAdjacentElement"/> 705/// <see cref="ITextPointer.GetElementType"/> 718/// <see cref="ITextPointer.GetElementType"/> 726/// <see cref="ITextPointer.HasEqualScope"/> 728public static bool HasEqualScope(DocumentSequenceTextPointer thisTp, ITextPointer position) 741/// <see cref="ITextPointer.GetValue"/> 755/// <see cref="ITextPointer.ReadLocalValue"/> 769/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 777public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp) 782public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance) 787public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, LogicalDirection gravity) 793/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 795public static ITextPointer CreatePointer(DocumentSequenceTextPointer thisTp, int distance, LogicalDirection gravity) 899ITextPointer pointer = thisTp.ChildPointer; 1049ITextPointer childTn = thisTp.ChildPointer; 1138private ITextPointer _childTp;
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (17)
84internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 92ITextPointer childOTP = ChildTextView.GetTextPositionFromPoint(point, snapToText); 131internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 160internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 212internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 233ITextPointer childOTP = ChildTextView.GetPositionAtNextLine(tp.ChildPointer.CreatePointer(position.LogicalDirection), suggestedX, count, out newSuggestedX, out linesMoved); 265internal override bool IsAtCaretUnitBoundary(ITextPointer position) 315internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 344internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 373internal override TextSegment GetLineRange(ITextPointer position) 426internal override ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end) 446internal override bool Contains(ITextPointer position)
src\Framework\System\Windows\Documents\FixedElement.cs (3)
272ITextPointer pos = ((ITextPointer)_start).CreatePointer(); 274while (pos.CompareTo((ITextPointer)_end) < 0)
src\Framework\System\Windows\Documents\FixedFindEngine.cs (8)
30internal static TextRange Find ( ITextPointer start, 31ITextPointer end, 89ITextPointer firstSearchPageStart = null; 90ITextPointer firstSearchPageEnd = null; 295private static void _GetFirstPageSearchPointers ( ITextPointer start, 296ITextPointer end, 299out ITextPointer firstSearchPageStart, 300out ITextPointer firstSearchPageEnd)
src\Framework\System\Windows\Documents\FixedTextContainer.cs (22)
100ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 106ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 111ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 113return ((ITextPointer)position.Handle0).CreatePointer(direction); 123return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 128return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 133return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 138return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 148return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 153return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 158return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 161int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 163return ((ITextPointer)position1.Handle0).CompareTo(position2); 168return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 202ITextPointer ITextContainer.Start 215ITextPointer ITextContainer.End 329internal FixedTextPointer VerifyPosition(ITextPointer position) 352internal int GetPageNumber(ITextPointer textPointer) 625private bool _GetFixedNodesForFlowRange(ITextPointer start, ITextPointer end, out FixedSOMElement[] elements, out int startIndex, out int endIndex)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (124)
71internal int CompareTo(ITextPointer position) 78int ITextPointer.CompareTo(StaticTextPointer position) 80return ((ITextPointer)this).CompareTo((ITextPointer)position.Handle0); 88int ITextPointer.CompareTo(ITextPointer position) 96int ITextPointer.GetOffsetToPosition(ITextPointer position) 106TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 116int ITextPointer.GetTextRunLength(LogicalDirection direction) 127string ITextPointer.GetTextInRun(LogicalDirection direction) 133/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 136int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 156/// <see cref="ITextPointer.GetAdjacentElement"/> 159object ITextPointer.GetAdjacentElement(LogicalDirection direction) 171/// <see cref="ITextPointer.GetElementType"/> 174Type ITextPointer.GetElementType(LogicalDirection direction) 190/// <see cref="ITextPointer.HasEqualScope"/> 192bool ITextPointer.HasEqualScope(ITextPointer position) 204/// <see cref="ITextPointer.GetValue"/> 207object ITextPointer.GetValue(DependencyProperty property) 219/// <see cref="ITextPointer.ReadLocalValue"/> 222object ITextPointer.ReadLocalValue(DependencyProperty property) 239/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 242LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 255/// <see cref="ITextPointer.CreatePointer()"/> 257ITextPointer ITextPointer.CreatePointer() 259return ((ITextPointer)this).CreatePointer(0, ((ITextPointer)this).LogicalDirection); 265/// <see cref="ITextPointer.CreateStaticPointer"/> 267StaticTextPointer ITextPointer.CreateStaticPointer() 269return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 273/// <see cref="ITextPointer.CreatePointer(int)"/> 275ITextPointer ITextPointer.CreatePointer(int distance) 277return ((ITextPointer)this).CreatePointer(distance, ((ITextPointer)this).LogicalDirection); 281/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 283ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 285return ((ITextPointer)this).CreatePointer(0, gravity); 289/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 291ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 305/// <see cref="ITextPointer.Freeze"/> 307void ITextPointer.Freeze() 313/// <see cref="ITextPointer.GetFrozenPointer"/> 315ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 322/// <see cref="ITextPointer.GetNextContextPosition"/> 324ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 326ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 340/// <see cref="ITextPointer.GetInsertionPosition"/> 342ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 344ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 354/// <see cref="ITextPointer.GetFormatNormalizedPosition"/> 356ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 358ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 366/// <see cref="ITextPointer.GetNextInsertionPosition"/> 368ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 370ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 385/// <see cref="ITextPointer.SetLogicalDirection"/> 388void ITextPointer.SetLogicalDirection(LogicalDirection direction) 396/// <see cref="ITextPointer.MoveByOffset"/> 398bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 410/// <see cref="ITextPointer.MoveByOffset"/> 412int ITextPointer.MoveByOffset(int offset) 427/// <see cref="ITextPointer.MoveToPosition"/> 429void ITextPointer.MoveToPosition(ITextPointer position) 439/// <see cref="ITextPointer.MoveToElementEdge"/> 441void ITextPointer.MoveToElementEdge(ElementEdge edge) 475/// <see cref="ITextPointer.MoveToLineBoundary"/> 477int ITextPointer.MoveToLineBoundary(int count) 479return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 483/// <see cref="ITextPointer.GetCharacterRect"/> 485Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 491/// <see cref="ITextPointer.MoveToInsertionPosition"/> 493bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 499/// <see cref="ITextPointer.MoveToNextInsertionPosition"/> 501bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 514void ITextPointer.InsertTextInRun(string textData) 525/// <see cref="ITextPointer.DeleteContentToPosition"/> 527void ITextPointer.DeleteContentToPosition(ITextPointer limit) 533/// <see cref="ITextPointer.ValidateLayout"/> 535bool ITextPointer.ValidateLayout() 537return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 551/// <see cref="ITextPointer.ParentType"/> 553Type ITextPointer.ParentType 563/// <see cref="ITextPointer.TextContainer"/> 565ITextContainer ITextPointer.TextContainer 571/// <see cref="ITextPointer.HasValidLayout"/> 573bool ITextPointer.HasValidLayout 577return (((ITextPointer)this).TextContainer.TextView != null && 578((ITextPointer)this).TextContainer.TextView.IsValid && 579((ITextPointer)this).TextContainer.TextView.Contains(this)); 584/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/> 586bool ITextPointer.IsAtCaretUnitBoundary 590Invariant.Assert(((ITextPointer)this).HasValidLayout); 591ITextView textView = ((ITextPointer)this).TextContainer.TextView; 602ITextPointer positionForwardGravity = ((ITextPointer)this).CreatePointer(LogicalDirection.Forward); 610/// <see cref="ITextPointer.LogicalDirection"/> 612LogicalDirection ITextPointer.LogicalDirection 621/// <see cref="ITextPointer.IsAtInsertionPosition"/> 623bool ITextPointer.IsAtInsertionPosition 629/// <see cref="ITextPointer.IsFrozen"/> 631bool ITextPointer.IsFrozen 640/// <see cref="ITextPointer.Offset"/> 642int ITextPointer.Offset 652/// <see cref="ITextPointer.CharOffset"/> 654int ITextPointer.CharOffset
src\Framework\System\Windows\Documents\FixedTextView.cs (34)
81internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 87ITextPointer textPos = this.End; 99ITextPointer pos = null; 164internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 195ITextPointer psNext = position.CreatePointer(1); 253internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 345internal override ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 356ITextPointer pos = position; 385((ITextPointer)nav).MoveToInsertionPosition(scanDir); 386((ITextPointer)nav).MoveToNextInsertionPosition(scanDir); 452internal override bool IsAtCaretUnitBoundary(ITextPointer position) 523internal override ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 559ITextPointer pointer = position.CreatePointer(); 578internal override ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position) 597internal override TextSegment GetLineRange(ITextPointer position) 627ITextPointer begin = _CreateTextPointer(new FixedPosition(fixedNodes[0], 0), LogicalDirection.Forward); 628ITextPointer end = _CreateTextPointer(new FixedPosition(lastNode, lastIndex), LogicalDirection.Backward); 632ITextPointer temp = begin; 655internal override bool Contains(ITextPointer position) 834private ITextPointer _SnapToText(Point point) 837ITextPointer itp = null; 888itp = ((ITextPointer)this.Start).CreatePointer(LogicalDirection.Forward); 893itp = ((ITextPointer)this.End).CreatePointer(LogicalDirection.Backward); 1102TextPointerContext symbolType = ((ITextPointer)ftp).GetPointerContext(textdir); 1126symbolType = ((ITextPointer)nav).GetPointerContext(textdir); 1130if (((ITextPointer)nav).MoveToNextInsertionPosition(textdir) && 1168((ITextPointer)nav).MoveToNextInsertionPosition(dir); 1188private ITextPointer _CreateTextPointer(FixedPosition fixedPosition, LogicalDirection edge) 1204private ITextPointer _CreateTextPointerFromGlyphs(Glyphs g, Point point) 1219private void _SkipFormattingTags(ITextPointer textPointer)
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
893ITextPointer textPointer = null; 1475ITextPointer segmentEnd;
src\Framework\System\Windows\Documents\FrameworkTextComposition.cs (12)
215internal void SetResultPositions(ITextPointer start, ITextPointer end, string text) 239internal void SetCompositionPositions(ITextPointer start, ITextPointer end, string text) 271internal ITextPointer _ResultStart 282internal ITextPointer _ResultEnd 293internal ITextPointer _CompositionStart 304internal ITextPointer _CompositionEnd 372private ITextPointer _resultStart; 375private ITextPointer _resultEnd; 378private ITextPointer _compositionStart; 381private ITextPointer _compositionEnd;
src\Framework\System\Windows\Documents\ImmComposition.cs (23)
710ITextPointer startNavigator; 711ITextPointer endNavigator; 712ITextPointer caretNavigator; 751ITextPointer startPosition = startNavigator.CreatePointer(LogicalDirection.Forward); 752ITextPointer endPosition = endNavigator.CreatePointer(LogicalDirection.Backward); 753ITextPointer caretPosition = caretNavigator.CreatePointer(LogicalDirection.Forward); 1201ITextPointer start; 1202ITextPointer end; 1213internal void UpdateCompositionText(FrameworkTextComposition composition, int resultLength, bool includeResultText, out ITextPointer start, out ITextPointer end) 1281ITextPointer caretPosition = _caretOffset >= 0 ? start.CreatePointer(_caretOffset, LogicalDirection.Forward) : end; 1320ITextPointer startAttribute = _startComposition.CreatePointer(startOffset, LogicalDirection.Backward); 1321ITextPointer endAttribute = _startComposition.CreatePointer(i + 1, LogicalDirection.Forward); 1553ITextPointer navigator; 1694ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward); 1699ITextPointer end = start.CreatePointer(LogicalDirection.Forward); 1714private static ITextPointer MoveToNextCharPos(ITextPointer position, int offset) 1818ITextPointer positionCurrent; 1819ITextPointer positionNext; 1990private void CloseCompositionUndoUnit(UndoCloseAction undoCloseAction, ITextPointer compositionEnd) 2121private ITextPointer _startComposition; 2127private ITextPointer _endComposition;
src\Framework\System\Windows\Documents\ITextContainer.cs (6)
41ITextPointer CreatePointerAtOffset(int offset, LogicalDirection direction); 46ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction); 48ITextPointer CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction); 68int CompareTo(StaticTextPointer position1, ITextPointer position2); 102ITextPointer Start { get; } 110ITextPointer End { get; }
src\Framework\System\Windows\Documents\ITextPointer.cs (14)
28ITextPointer CreatePointer(); 34ITextPointer CreatePointer(int offset); 37ITextPointer CreatePointer(LogicalDirection gravity); 40ITextPointer CreatePointer(int offset, LogicalDirection gravity); 49int CompareTo(ITextPointer position); 53bool HasEqualScope(ITextPointer position); 59int GetOffsetToPosition(ITextPointer position); 78void MoveToPosition(ITextPointer position); 87ITextPointer GetNextContextPosition(LogicalDirection direction); 93ITextPointer GetInsertionPosition(LogicalDirection direction); 96ITextPointer GetFormatNormalizedPosition(LogicalDirection direction); 102ITextPointer GetNextInsertionPosition(LogicalDirection direction); 117ITextPointer GetFrozenPointer(LogicalDirection logicalDirection); 123void DeleteContentToPosition(ITextPointer limit);
src\Framework\System\Windows\Documents\ITextRange.cs (7)
64bool Contains(ITextPointer position); 68void Select(ITextPointer position1, ITextPointer position2); 76void SelectWord(ITextPointer position); 85void SelectParagraph(ITextPointer position); 239ITextPointer Start { get; } 244ITextPointer End { get; }
src\Framework\System\Windows\Documents\ITextSelection.cs (6)
70void SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace); 77void ExtendToPosition(ITextPointer textPosition); 122void SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint); 125void ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection); 175ITextPointer AnchorPosition { get; } 182ITextPointer MovingPosition { get; }
src\Framework\System\Windows\Documents\ITextView.cs (38)
63ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 97Rect GetRectangleFromTextPosition(ITextPointer position); 136Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 144Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition); 196ITextPointer GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved); 207ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved); 234bool IsAtCaretUnitBoundary(ITextPointer position); 280ITextPointer GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction); 305ITextPointer GetBackspaceCaretUnitPosition(ITextPointer position); 331TextSegment GetLineRange(ITextPointer position); 363ReadOnlyCollection<GlyphRun> GetGlyphRuns(ITextPointer start, ITextPointer end); 393bool Contains(ITextPointer position); 400void BringPositionIntoViewAsync(ITextPointer position, object userState); 419void BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState); 431void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState); 477bool Validate(ITextPointer position); 603public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 631public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 655public ITextPointer Position 673private readonly ITextPointer _position; 700public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState) 715public ITextPointer Position 741public ITextPointer NewPosition 767private readonly ITextPointer _position; 781private readonly ITextPointer _newPosition; 816public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState) 831public ITextPointer Position 857public ITextPointer NewPosition 883private readonly ITextPointer _position; 897private readonly ITextPointer _newPosition;
src\Framework\System\Windows\Documents\NullTextContainer.cs (18)
87ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 93ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 98ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 100return ((ITextPointer)position.Handle0).CreatePointer(direction); 110return ((ITextPointer)pointer.Handle0).GetPointerContext(direction); 115return ((ITextPointer)position1.Handle0).GetOffsetToPosition((ITextPointer)position2.Handle0); 120return ((ITextPointer)position.Handle0).GetTextInRun(direction, textBuffer, startIndex, count); 125return ((ITextPointer)position.Handle0).GetAdjacentElement(direction); 135return new StaticTextPointer(this, ((ITextPointer)position.Handle0).CreatePointer(offset)); 140return new StaticTextPointer(this, ((ITextPointer)position.Handle0).GetNextContextPosition(direction)); 145return ((ITextPointer)position1.Handle0).CompareTo((ITextPointer)position2.Handle0); 148int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 150return ((ITextPointer)position1.Handle0).CompareTo(position2); 155return ((ITextPointer)position.Handle0).GetValue(formattingProperty); 182ITextPointer ITextContainer.Start 195ITextPointer ITextContainer.End
src\Framework\System\Windows\Documents\NullTextNavigator.cs (112)
50int ITextPointer.CompareTo(ITextPointer position) 57int ITextPointer.CompareTo(StaticTextPointer position) 66int ITextPointer.GetOffsetToPosition(ITextPointer position) 74/// <see cref="ITextPointer.GetPointerContext"/> 76TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 83/// <see cref="ITextPointer.GetTextRunLength"/> 86int ITextPointer.GetTextRunLength(LogicalDirection direction) 93/// <see cref="ITextPointer.GetTextInRun(LogicalDirection)"/> 95string ITextPointer.GetTextInRun(LogicalDirection direction) 101/// <see cref="ITextPointer.GetTextInRun(LogicalDirection,char[],int,int)"/> 104int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 111/// <see cref="ITextPointer.GetAdjacentElement"/> 114object ITextPointer.GetAdjacentElement(LogicalDirection direction) 121/// <see cref="ITextPointer.GetElementType"/> 124Type ITextPointer.GetElementType(LogicalDirection direction) 131/// <see cref="ITextPointer.HasEqualScope"/> 133bool ITextPointer.HasEqualScope(ITextPointer position) 139/// <see cref="ITextPointer.GetValue"/> 142object ITextPointer.GetValue(DependencyProperty property) 148/// <see cref="ITextPointer.ReadLocalValue"/> 150object ITextPointer.ReadLocalValue(DependencyProperty property) 156/// <see cref="ITextPointer.GetLocalValueEnumerator"/> 159LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 165/// <see cref="ITextPointer.CreatePointer()"/> 167ITextPointer ITextPointer.CreatePointer() 169return ((ITextPointer)this).CreatePointer(0, _gravity); 174StaticTextPointer ITextPointer.CreateStaticPointer() 176return new StaticTextPointer(((ITextPointer)this).TextContainer, ((ITextPointer)this).CreatePointer()); 180/// <see cref="ITextPointer.CreatePointer(int)"/> 182ITextPointer ITextPointer.CreatePointer(int distance) 184return ((ITextPointer)this).CreatePointer(distance, _gravity); 188/// <see cref="ITextPointer.CreatePointer(LogicalDirection)"/> 190ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 192return ((ITextPointer)this).CreatePointer(0, gravity); 196/// <see cref="ITextPointer.CreatePointer(int,LogicalDirection)"/> 198ITextPointer ITextPointer.CreatePointer(int distance, LogicalDirection gravity) 206void ITextPointer.Freeze() 212/// <see cref="ITextPointer.GetFrozenPointer"/> 214ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 224/// <see cref="ITextPointer.SetLogicalDirection"/> 227void ITextPointer.SetLogicalDirection(LogicalDirection direction) 236/// <see cref="ITextPointer.MoveByOffset"/> 238bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 248/// <see cref="ITextPointer.MoveByOffset"/> 250int ITextPointer.MoveByOffset(int distance) 260/// <see cref="ITextPointer.MoveToPosition"/> 262void ITextPointer.MoveToPosition(ITextPointer position) 270/// <see cref="ITextPointer.MoveToElementEdge"/> 272void ITextPointer.MoveToElementEdge(ElementEdge edge) 280/// <see cref="ITextPointer.MoveToLineBoundary"/> 282int ITextPointer.MoveToLineBoundary(int count) 289/// <see cref="ITextPointer.GetCharacterRect"/> 291Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 298/// <see cref="ITextPointer.MoveToInsertionPosition"/> 300bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 306/// <see cref="ITextPointer.MoveToNextInsertionPosition"/> 308bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 314/// <see cref="ITextPointer.InsertTextInRun"/> 316void ITextPointer.InsertTextInRun(string textData) 322/// <see cref="ITextPointer.DeleteContentToPosition"/> 324void ITextPointer.DeleteContentToPosition(ITextPointer limit) 331/// <see cref="ITextPointer.GetNextContextPosition"/> 333ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 335ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 349/// <see cref="ITextPointer.GetInsertionPosition"/> 351ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 353ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 363/// <see cref="ITextPointer.GetFormatNormalizedPosition"/> 365ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 367ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 375/// <see cref="ITextPointer.GetNextInsertionPosition"/> 377ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 379ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 392/// <see cref="ITextPointer.ValidateLayout"/> 394bool ITextPointer.ValidateLayout() 411/// <see cref="ITextPointer.ParentType"/> 413Type ITextPointer.ParentType 425/// <see cref="ITextPointer.TextContainer"/> 427ITextContainer ITextPointer.TextContainer 433/// <see cref="ITextPointer.HasValidLayout"/> 435bool ITextPointer.HasValidLayout 445/// <see cref="ITextPointer.IsAtCaretUnitBoundary"/> 447bool ITextPointer.IsAtCaretUnitBoundary 457/// <see cref="ITextPointer.LogicalDirection"/> 459LogicalDirection ITextPointer.LogicalDirection 465/// <see cref="ITextPointer.IsAtInsertionPosition"/> 467bool ITextPointer.IsAtInsertionPosition 473/// <see cref="ITextPointer.IsFrozen"/> 475bool ITextPointer.IsFrozen 484/// <see cref="ITextPointer.Offset"/> 486int ITextPointer.Offset 496/// <see cref="ITextPointer.CharOffset"/> 498int ITextPointer.CharOffset
src\Framework\System\Windows\Documents\Paragraph.cs (2)
255ITextPointer navigator = paragraph.ContentStart.CreatePointer(); 256ITextPointer end = paragraph.ContentEnd;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (3)
428private ITextPointer _GetTextPosition(FixedNode node, int charIndex) 726public ITextPointer first; 727public ITextPointer second;
src\Framework\System\Windows\Documents\Speller.cs (73)
116internal SpellingError GetError(ITextPointer position, LogicalDirection direction, bool forceEvaluation) 118ITextPointer start; 119ITextPointer end; 150internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 192ITextPointer contextStart; 193ITextPointer contextEnd; 194ITextPointer contentStart; 195ITextPointer contentEnd; 258ITextPointer errorStart; 259ITextPointer errorEnd; 608ITextPointer start; 609ITextPointer end; 680private bool GetNextScanRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 682ITextPointer rawStart; 683ITextPointer rawEnd; 710private void GetNextScanRangeRaw(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 744private void AdjustScanRangeAroundComposition(ITextPointer rawStart, ITextPointer rawEnd, 745out ITextPointer start, out ITextPointer end) 764ITextPointer wordBreakLeft; 765ITextPointer wordBreakRight; 766ITextPointer caretPosition; 835private ScanStatus ScanRange(ITextPointer start, ITextPointer end, long timeLimit) 837ITextPointer contextStart; 838ITextPointer contextEnd; 839ITextPointer contentStart; 840ITextPointer contentEnd; 1087ITextPointer timeoutPosition = data.TextMap.MapOffsetToPosition(timeOutOffset); 1115ITextPointer errorStart; 1116ITextPointer errorEnd; 1164private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language, 1165out ITextPointer contentPosition, out ITextPointer contextPosition) 1167ITextPointer start; 1168ITextPointer end; 1169ITextPointer outwardPosition; 1170ITextPointer inwardPosition; 1399private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError) 1401ITextPointer closestErrorPosition; 1402ITextPointer searchPosition; 1403ITextPointer start; 1404ITextPointer end; 1439ITextPointer closestLanguageTransition = GetNextLanguageTransition(position, direction, language, searchPosition); 1471private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition) 1473ITextPointer navigator = position.CreatePointer(); 1563private void ScanPosition(ITextPointer position, LogicalDirection direction) 1565ITextPointer start; 1566ITextPointer end; 1583private XmlLanguage GetCurrentLanguage(ITextPointer position) 1594private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language) 1777internal TextMap(ITextPointer contextStart, ITextPointer contextEnd, 1778ITextPointer contentStart, ITextPointer contentEnd) 1780ITextPointer position; 1892internal ITextPointer MapOffsetToPosition(int offset) 1928private bool IsAdjacentToFormatElement(ITextPointer pointer) 1952private readonly ITextPointer _basePosition; 1977internal ScanStatus(long timeLimit, ITextPointer startPosition) 2004internal ITextPointer TimeoutPosition 2011internal ITextPointer StartPosition 2020private readonly ITextPointer _startPosition; 2024private ITextPointer _timeoutPosition;
src\Framework\System\Windows\Documents\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;
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (4)
86internal void FireChangedEvent(ITextPointer start, ITextPointer end) 200internal SpellerHighlightChangedEventArgs(ITextPointer start, ITextPointer end)
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (29)
38internal SpellerStatusTable(ITextPointer textContainerStart, SpellerHighlightLayer highlightLayer) 74ITextPointer end = e.ITextPosition.CreatePointer(e.Count); 84internal void GetFirstDirtyRange(ITextPointer searchStart, out ITextPointer start, out ITextPointer end) 109internal void MarkCleanRange(ITextPointer start, ITextPointer end) 116internal void MarkDirtyRange(ITextPointer start, ITextPointer end) 124internal void MarkErrorRange(ITextPointer start, ITextPointer end) 246out ITextPointer start, out ITextPointer end) 381private void MarkRange(ITextPointer start, ITextPointer end, RunType runType) 437private void AddRun(int index, ITextPointer start, ITextPointer end, RunType runType) 514ITextPointer errorStart; 515ITextPointer errorEnd; 555ITextPointer start; 556ITextPointer end; 587private void OnContentRemoved(ITextPointer position) 625ITextPointer runPosition = GetRun(i).Position; 655ITextPointer errorStart; 656ITextPointer errorEnd; 752private ITextPointer GetRunEndPositionDynamic(int index) 800internal Run(ITextPointer position, RunType runType) 806internal ITextPointer Position 818private ITextPointer _position;
src\Framework\System\Windows\Documents\StaticTextPointer.cs (2)
51internal ITextPointer CreateDynamicTextPointer(LogicalDirection direction) 107internal int CompareTo(ITextPointer position)
src\Framework\System\Windows\Documents\TextContainer.cs (6)
449ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction) 466ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 493ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction) 713int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2) 1724ITextPointer ITextContainer.Start 1732ITextPointer ITextContainer.End
src\Framework\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;
src\Framework\System\windows\Documents\TextEditor.cs (8)
428internal SpellingError GetSpellingErrorAtPosition(ITextPointer position, LogicalDirection direction) 440internal ITextPointer GetNextSpellingErrorPosition(ITextPointer position, LogicalDirection direction) 497XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 520FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty); 1435internal ITextPointer _NextLineAdvanceMovingPosition 1518ITextPointer cursorPosition; 2134private ITextPointer _nextLineAdvanceMovingPosition;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (4)
180ITextPointer position = null; 275private static void GetClippedPositionOffsets(TextEditor This, ITextPointer position, LogicalDirection direction, 422private static ITextPointer GetContentPosition(ITextPointer position)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (6)
147ITextPointer cursorPosition = this.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 434ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 465private ITextPointer GetDropPosition(Visual target, Point point) 477ITextPointer dropPosition = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/true); 564ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 634private bool IsSelectionContainsDropPosition(ITextSelection selection, ITextPointer dropPosition)
src\Framework\System\windows\Documents\TextEditorMouse.cs (6)
81ITextPointer cursorPosition = This.TextView.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true); 142ITextPointer position; 503ITextPointer snappedCursorPosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true); 529ITextPointer acceleratedCursorPosition = null; // cursorPosition corrected to accelerate scrolling 731ITextPointer mouseMovePosition = This.TextView.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false); 749ITextPointer otherEdgePosition = mouseMovePosition.GetNextContextPosition(mouseMovePosition.LogicalDirection);
src\Framework\System\windows\Documents\TextEditorSelection.cs (72)
126internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position) 136ITextPointer lineStart = position.CreatePointer(LogicalDirection.Forward); 138ITextPointer lineEnd = position.CreatePointer(LogicalDirection.Backward); 291ITextPointer position = TextEditorSelection.GetEndInner(This); 301ITextPointer originalMovingPosition; 313ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved); 335ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition); 336ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward); 380ITextPointer position = TextEditorSelection.GetStartInner(This); 390ITextPointer originalMovingPosition; 402ITextPointer newMovingPosition = This.TextView.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved); 425ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition); 426ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward); 477ITextPointer position = TextEditorSelection.GetEndInner(This); 482ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 529ITextPointer position = TextEditorSelection.GetStartInner(This); 533ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 582ITextPointer position = TextEditorSelection.GetEndInner(This); 587ITextPointer movingPosition; 596ITextPointer targetPosition; 700ITextPointer position = TextEditorSelection.GetStartInner(This); 705ITextPointer movingPosition; 714ITextPointer targetPosition; 806ITextPointer startPositionInner = TextEditorSelection.GetStartInner(This); 827ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward); 858ITextPointer endPositionInner = TextEditorSelection.GetEndInner(This); 879ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation); 1044ITextPointer originalMovingPosition; 1065ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition); 1093ITextPointer lineEndPosition = GetPositionAtLineEnd(originalMovingPosition); 1094ITextPointer nextPosition = lineEndPosition.GetNextInsertionPosition(LogicalDirection.Forward); 1130private static void AdjustMovingPositionForSelectDownByLine(TextEditor This, ITextPointer newMovingPosition, ITextPointer originalMovingPosition, double suggestedX) 1216ITextPointer originalMovingPosition; 1237ITextPointer newMovingPosition = AdjustPositionAtTableRowEnd(originalMovingPosition); 1283ITextPointer lineStartPosition = GetPositionAtLineStart(originalMovingPosition); 1284ITextPointer previousPosition = lineStartPosition.GetNextInsertionPosition(LogicalDirection.Backward); 1340ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 1381ITextPointer movingPointer = This.Selection.MovingPosition.CreatePointer(); 1414ITextPointer movingPosition; 1425ITextPointer targetPosition; 1510ITextPointer movingPosition; 1521ITextPointer targetPosition; 1610ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This); 1655ITextPointer movingPositionInner = TextEditorSelection.GetMovingPositionInner(This); 1677ITextPointer destination = lineRange.End; 1698ITextPointer newDestination = destination.GetNextInsertionPosition(LogicalDirection.Forward); 2045ITextPointer position = textEditor.Selection.MovingPosition.CreatePointer(); 2081ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2151ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer(); 2171ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer(); 2215ITextPointer wordBoundary = textEditor.Selection.MovingPosition.CreatePointer(); 2243private static Double GetSuggestedX(TextEditor This, out ITextPointer innerMovingPosition) 2291private static Double GetSuggestedYFromPosition(TextEditor This, ITextPointer position) 2325private static ITextPointer GetMovingPositionInner(TextEditor This) 2327ITextPointer movingPosition = This.Selection.MovingPosition; 2355private static ITextPointer GetStartInner(TextEditor This) 2367private static ITextPointer GetEndInner(TextEditor This) 2369ITextPointer end = This.Selection.End; 2378private static ITextPointer GetPositionAtLineStart(ITextPointer position) 2387private static ITextPointer GetPositionAtLineEnd(ITextPointer position) 2394private static void ExtendSelectionAndBringIntoView(ITextPointer position, TextEditor textEditor) 2400private static void BringIntoView(ITextPointer position, TextEditor textEditor) 2420ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward); 2432private static ITextPointer AdjustPositionAtTableRowEnd(ITextPointer position) 2436ITextPointer cellEnd = position.GetNextInsertionPosition(LogicalDirection.Backward); 2447private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position) 2449ITextPointer navigator = position.CreatePointer(); 2464private static double GetAbsoluteXOffset(ITextView textview, ITextPointer position)
src\Framework\System\windows\Documents\TextEditorSpelling.cs (15)
39internal static SpellingError GetSpellingErrorAtPosition(TextEditor This, ITextPointer position, LogicalDirection direction) 65ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 104internal static ITextPointer GetNextSpellingErrorPosition(TextEditor This, ITextPointer position, LogicalDirection direction) 139ITextPointer textStart; 140ITextPointer textEnd; 143ITextPointer caretPosition; 183private static bool IsErrorAtNonMergeableInlineEdge(SpellingError spellingError, out ITextPointer textStart, out ITextPointer textEnd) 256private static ITextPointer GetNextTextPosition(ITextPointer position, ITextPointer limit, LogicalDirection direction, out char character) 305private static ITextPointer GetNextNonWhiteSpacePosition(ITextPointer position, ITextPointer limit)
src\Framework\System\windows\Documents\TextEditorTyping.cs (12)
565ITextPointer position = This.Selection.End; 568ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); 615ITextPointer position = This.Selection.Start; 619ITextPointer backspacePosition = null; 645ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Backward); 810private static bool IsAtIndentedParagraphOrBlockUIContainerStart(ITextPointer position) 832private static bool IsAtListItemStart(ITextPointer position) 867private static bool IsAtListItemChildStart(ITextPointer position, bool emptyChildOnly) 880ITextPointer navigator = position.CreatePointer(); 931ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 990ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 1582ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
src\Framework\System\Windows\Documents\TextFindEngine.cs (17)
93ITextPointer findContainerStartPosition, 94ITextPointer findContainerEndPosition, 184ITextPointer startPosition, 185ITextPointer endPosition, 197ITextPointer navigator; 227ITextPointer startFindTextPosition = navigator.CreatePointer(); 282ITextPointer startMatchPosition = startFindTextPosition.CreatePointer(); 285ITextPointer endMatchPosition = startFindTextPosition.CreatePointer(); 310private static void GetContextualInformation(ITextPointer position, int oppositeEndOffset, 313ITextPointer oppositeEndPosition = position.CreatePointer(oppositeEndOffset, position.LogicalDirection); 329private static bool HasNeighboringSeparatorChar(ITextPointer position, LogicalDirection direction) 331ITextPointer nextPosition = position.GetNextInsertionPosition(direction); 340ITextPointer temp = position; 653ITextPointer startPosition, 654ITextPointer endPosition, 655ITextPointer navigator, 907private static bool IsAdjacentToFormatElement(ITextPointer pointer, LogicalDirection direction)
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (6)
55internal TextParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition) 129ITextPointer anchorPosition = textContainer.CreatePointerAtOffset(_undoAnchorPositionOffset, _undoAnchorPositionDirection); 130ITextPointer movingPosition = textContainer.CreatePointerAtOffset(_undoMovingPositionOffset, _undoMovingPositionDirection); 196internal void RecordRedoSelectionState(ITextPointer anchorPosition, ITextPointer movingPosition)
src\Framework\System\Windows\Documents\TextPointer.cs (75)
1003return (TextPointer)((ITextPointer)this).GetNextContextPosition(direction); 1076return (TextPointer)((ITextPointer)this).GetInsertionPosition(direction); 1143return (TextPointer)((ITextPointer)this).GetNextInsertionPosition(direction); 2368void ITextPointer.SetLogicalDirection(LogicalDirection direction) 2373int ITextPointer.CompareTo(ITextPointer position) 2378int ITextPointer.CompareTo(StaticTextPointer position) 2403int ITextPointer.GetOffsetToPosition(ITextPointer position) 2408TextPointerContext ITextPointer.GetPointerContext(LogicalDirection direction) 2413int ITextPointer.GetTextRunLength(LogicalDirection direction) 2419string ITextPointer.GetTextInRun(LogicalDirection direction) 2424int ITextPointer.GetTextInRun(LogicalDirection direction, char[] textBuffer, int startIndex, int count) 2429object ITextPointer.GetAdjacentElement(LogicalDirection direction) 2434Type ITextPointer.GetElementType(LogicalDirection direction) 2449bool ITextPointer.HasEqualScope(ITextPointer position) 2471ITextPointer ITextPointer.GetNextContextPosition(LogicalDirection direction) 2473ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2486ITextPointer ITextPointer.GetInsertionPosition(LogicalDirection direction) 2488ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2497ITextPointer ITextPointer.GetFormatNormalizedPosition(LogicalDirection direction) 2499ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2506ITextPointer ITextPointer.GetNextInsertionPosition(LogicalDirection direction) 2508ITextPointer pointer = ((ITextPointer)this).CreatePointer(); 2520object ITextPointer.GetValue(DependencyProperty formattingProperty) 2548object ITextPointer.ReadLocalValue(DependencyProperty formattingProperty) 2570LocalValueEnumerator ITextPointer.GetLocalValueEnumerator() 2588ITextPointer ITextPointer.CreatePointer() 2590return ((ITextPointer)this).CreatePointer(0, this.LogicalDirection); 2593StaticTextPointer ITextPointer.CreateStaticPointer() 2601ITextPointer ITextPointer.CreatePointer(int offset) 2603return ((ITextPointer)this).CreatePointer(offset, this.LogicalDirection); 2606ITextPointer ITextPointer.CreatePointer(LogicalDirection gravity) 2608return ((ITextPointer)this).CreatePointer(0, gravity); 2611ITextPointer ITextPointer.CreatePointer(int offset, LogicalDirection gravity) 2617void ITextPointer.Freeze() 2622ITextPointer ITextPointer.GetFrozenPointer(LogicalDirection logicalDirection) 2628bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction) 2633int ITextPointer.MoveByOffset(int offset) 2638void ITextPointer.MoveToPosition(ITextPointer position) 2643void ITextPointer.MoveToElementEdge(ElementEdge edge) 2679int ITextPointer.MoveToLineBoundary(int count) 2685Rect ITextPointer.GetCharacterRect(LogicalDirection direction) 2690bool ITextPointer.MoveToInsertionPosition(LogicalDirection direction) 2695bool ITextPointer.MoveToNextInsertionPosition(LogicalDirection direction) 2803void ITextPointer.InsertTextInRun(string textData) 2813void ITextPointer.DeleteContentToPosition(ITextPointer limit) 2827/// <see cref="ITextPointer.ValidateLayout"/> 2828bool ITextPointer.ValidateLayout() 2833/// <see cref="ITextPointer.ValidateLayout"/> 3640Type ITextPointer.ParentType 3657ITextContainer ITextPointer.TextContainer 3666bool ITextPointer.HasValidLayout 3675bool ITextPointer.IsAtCaretUnitBoundary 3704LogicalDirection ITextPointer.LogicalDirection 3719bool ITextPointer.IsAtInsertionPosition 3725bool ITextPointer.IsFrozen 3734int ITextPointer.Offset 3755int ITextPointer.CharOffset
src\Framework\System\Windows\Documents\TextPointerBase.cs (79)
40internal static ITextPointer Min(ITextPointer position1, ITextPointer position2) 54internal static ITextPointer Max(ITextPointer position1, ITextPointer position2) 60internal static string GetTextInRun(ITextPointer position, LogicalDirection direction) 78internal static int GetTextWithLimit(ITextPointer thisPointer, LogicalDirection direction, char[] textBuffer, int startIndex, int count, ITextPointer limit) 136internal static bool IsAtInsertionPosition(ITextPointer position) 144internal static bool IsAtPotentialRunPosition(ITextPointer position) 180private static bool IsAtPotentialRunPosition(ITextPointer backwardPosition, ITextPointer forwardPosition) 229internal static bool IsAtPotentialParagraphPosition(ITextPointer position) 254internal static bool IsBeforeFirstTable(ITextPointer position) 266internal static bool IsInBlockUIContainer(ITextPointer position) 271internal static bool IsAtBlockUIContainerStart(ITextPointer position) 277internal static bool IsAtBlockUIContainerEnd(ITextPointer position) 284private static bool IsInAncestorScope(ITextPointer position, Type allowedParentType, Type limitingType) 286ITextPointer navigator = position.CreatePointer(); 303internal static bool IsInAnchoredBlock(ITextPointer position) 309internal static bool IsInHyperlinkScope(ITextPointer position) 317internal static ITextPointer GetFollowingNonMergeableInlineContentStart(ITextPointer position) 319ITextPointer navigator = position.CreatePointer(); 388internal static bool IsAtNonMergeableInlineStart(ITextPointer position) 394internal static bool IsAtNonMergeableInlineEnd(ITextPointer position) 401internal static bool IsPositionAtNonMergeableInlineBoundary(ITextPointer position) 406internal static bool IsAtFormatNormalizedPosition(ITextPointer position, LogicalDirection direction) 411internal static bool IsAtInsertionPosition(ITextPointer position, LogicalDirection direction) 416internal static bool IsAtNormalizedPosition(ITextPointer position, LogicalDirection direction, bool respectCaretUnitBoundaries) 453internal static int GetOffset(ITextPointer thisPosition) 471internal static bool IsAtWordBoundary(ITextPointer thisPosition, LogicalDirection insideWordDirection) 474ITextPointer navigator = thisPosition.CreatePointer(); 512internal static TextSegment GetWordRange(ITextPointer thisPosition) 526internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction) 542ITextPointer navigator = thisPosition.CreatePointer(); 545ITextPointer wordEnd = navigator; 548ITextPointer wordStart; 588private static ITextPointer RestrictWithinBlock(ITextPointer position, ITextPointer limit, LogicalDirection direction) 623internal static bool IsNextToPlainLineBreak(ITextPointer thisPosition, LogicalDirection direction) 654internal static bool IsNextToRichLineBreak(ITextPointer thisPosition, LogicalDirection direction) 663internal static bool IsNextToParagraphBreak(ITextPointer thisPosition, LogicalDirection direction) 674internal static bool IsNextToAnyBreak(ITextPointer thisPosition, LogicalDirection direction) 687internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView) 716internal static bool IsAtRowEnd(ITextPointer thisPosition) 728internal static bool IsAfterLastParagraph(ITextPointer thisPosition) 736internal static bool IsAtParagraphOrBlockUIContainerStart(ITextPointer pointer) 803internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count) 809internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart) 811ITextPointer position; 861internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction) 867internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope) 879ITextPointer insertionPosition = thisPointer.GetInsertionPosition(direction); 928internal static bool MoveToFormatNormalizedPosition(ITextPointer thisNavigator, LogicalDirection direction) 941internal static bool MoveToInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 964internal static bool MoveToNextInsertionPosition(ITextPointer thisNavigator, LogicalDirection direction) 972ITextPointer initialPosition = thisNavigator.CreatePointer(); 1072internal static bool MoveToNextWordBoundary(ITextPointer thisNavigator, LogicalDirection movingDirection) 1077ITextPointer startPosition = thisNavigator.CreatePointer(); 1104internal static ITextPointer GetFrozenPointer(ITextPointer thisPointer, LogicalDirection logicalDirection) 1106ITextPointer frozenPointer; 1121/// <see cref="ITextPointer.ValidateLayout"/> 1122internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView) 1143private static bool NormalizePosition(ITextPointer thisNavigator, LogicalDirection direction, bool respectCaretUnitBoundaries) 1259private static int LeaveNonMergeableInlineBoundary(ITextPointer thisNavigator, LogicalDirection direction, int symbolCount) 1288private static int LeaveNonMergeableAncestor(ITextPointer thisNavigator, LogicalDirection direction) 1306private static bool IsAtNormalizedPosition(ITextPointer position, bool respectCaretUnitBoundaries) 1332private static bool IsAtCaretUnitBoundary(ITextPointer position) 1365private static bool IsInsideCompoundSequence(ITextPointer position) 1417private static void GetWordBreakerText(ITextPointer pointer, out char[] text, out int position) 1424ITextPointer navigator; 1474private static bool IsAtNonMergeableInlineEdge(ITextPointer position, LogicalDirection direction) 1480ITextPointer navigator = position.CreatePointer(); 1494private static BorderingElementCategory GetBorderingElementCategory(ITextPointer position, LogicalDirection direction) 1520private static bool IsNextToRichBreak(ITextPointer thisPosition, LogicalDirection direction, Type lineBreakType)
src\Framework\System\Windows\Documents\TextRange.cs (14)
63this((ITextPointer)position1, (ITextPointer)position2) 67internal TextRange(ITextPointer position1, ITextPointer position2) 75internal TextRange(ITextPointer position1, ITextPointer position2, bool ignoreTextUnitBoundaries) 123bool ITextRange.Contains(ITextPointer position) 133void ITextRange.Select(ITextPointer position1, ITextPointer position2) 143void ITextRange.SelectWord(ITextPointer position) 153void ITextRange.SelectParagraph(ITextPointer position) 312ITextPointer ITextRange.Start 325ITextPointer ITextRange.End 699internal void SelectParagraph(ITextPointer position)
src\Framework\System\Windows\Documents\TextRangeBase.cs (56)
63internal static bool Contains(ITextRange thisRange, ITextPointer textPointer) 121internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2) 160internal static void Select(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition) 192internal static void SelectWord(ITextRange thisRange, ITextPointer position) 202ITextPointer normalizedPosition = position.CreatePointer(); 245internal static void SelectParagraph(ITextRange thisRange, ITextPointer position) 252ITextPointer start; 253ITextPointer end; 302ITextPointer nextPosition = thisRange.End.CreatePointer(); 319ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward); 341internal static void FindParagraphOrListItemBoundaries(ITextPointer position, out ITextPointer start, out ITextPointer end) 355private static void SkipParagraphContent(ITextPointer navigator, LogicalDirection direction) 413ITextPointer position = textSegment.Start.CreatePointer(); 445private static object GetCharacterValueFromPosition(ITextPointer pointer, DependencyProperty formattingProperty) 482ITextPointer position = textSegment.Start.CreatePointer(); 525ITextPointer startNavigator = thisRange.Start.CreatePointer(); 526ITextPointer endNavigator = thisRange.End.CreatePointer(); 664internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition) 676internal static string GetTextInternal(ITextPointer startPosition, ITextPointer endPosition, ref Char[] charArray) 684ITextPointer navigator = startPosition.CreatePointer(); 759private static void PlainConvertTextRun(StringBuilder textBuffer, ITextPointer navigator, ITextPointer endPosition, ref Char[] charArray) 771private static void PlainConvertParagraphEnd(StringBuilder textBuffer, ITextPointer navigator) 808private static void PlainConvertListStart(ITextPointer navigator, ref Stack<int> listItemCounter) 822private static void PlainConvertListEnd(ITextPointer navigator, ref Stack<int> listItemCounter) 836private static void PlainConvertListItemStart(StringBuilder textBuffer, ITextPointer navigator, ref Stack<int> listItemCounter) 870private static void PlainConvertAccessKey(StringBuilder textBuffer, ITextPointer navigator) 1201internal static ITextPointer GetStart(ITextRange thisRange) 1209internal static ITextPointer GetEnd(ITextRange thisRange) 1264ITextPointer start = thisRange.Start; 1304ITextPointer explicitInsertPosition = null; 1365ITextPointer insertPosition = (explicitInsertPosition == null) ? thisRange.Start : explicitInsertPosition; 1389ITextPointer newStart = insertPosition.GetFrozenPointer(LogicalDirection.Backward); 1390ITextPointer newEnd = insertPosition.CreatePointer(LogicalDirection.Forward); 1647ITextPointer start = range.Start.CreatePointer(); 1656ITextPointer end = range.End.CreatePointer(); 1730private static void CreateNormalizedTextSegment(ITextRange thisRange, ITextPointer start, ITextPointer end) 1815private static bool IsAtNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1831private static ITextPointer GetNormalizedPosition(ITextRange thisRange, ITextPointer position, LogicalDirection direction) 1833ITextPointer normalizedPosition; 1950ITextPointer start = thisRange._TextSegments[0].Start; 1951ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 2013private static void SelectPrivate(ITextRange thisRange, ITextPointer position1, ITextPointer position2, bool includeCellAtMovingPosition, bool markRangeChanged) 2047ITextPointer newStart = position1; 2048ITextPointer newEnd = position2; 2070ITextPointer finalStart = thisRange._TextSegments[0].Start; 2071ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
src\Framework\System\Windows\Documents\TextRangeEdit.cs (10)
500object outerContextValue = ((ITextPointer)source.ElementStart).GetValue(nonFormattingCharacterProperties[i]); 1250internal static ITextPointer GetAdjustedRangeEnd(ITextPointer rangeStart, ITextPointer rangeEnd) 1395internal static void DeleteInlineContent(ITextPointer start, ITextPointer end) 1412internal static void DeleteParagraphContent(ITextPointer start, ITextPointer end) 1640((ITextPointer)nextPosition).MoveToElementEdge(edgeAfterElement); 1646((ITextPointer)nextPosition).MoveToElementEdge(edgeBeforeElement);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (4)
183internal static bool IsTableStructureCrossed(ITextPointer anchorPosition, ITextPointer movingPosition) 402internal static void IdentifyValidBoundaries(ITextRange range, out ITextPointer start, out ITextPointer end)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (37)
79ITextPointer commonAncestor = FindSerializationCommonAncestor(range); 168if (((ITextPointer)fragment.ContentStart).CompareTo(fragment.ContentEnd) == 0) 201private static void WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, ref int elementLevel, WpfPayload wpfPayload, bool ignoreWriteHyperlinkEnd, List<int> ignoreList, bool preserveTextElements) 211ITextPointer textReader = rangeStart.CreatePointer(); 255ITextPointer ptr = textReader.CreatePointer(); 289ITextPointer endPointer = textReader.CreatePointer(); 365ITextPointer pointer = textSegment.Start.CreatePointer(); 427private static int WriteOpeningTags(ITextRange range, ITextPointer thisElement, ITextPointer scope, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, out bool ignoreWriteHyperlinkEnd, ref List<int> ignoreList, bool preserveTextElements) 439ITextPointer previousLevel = thisElement.CreatePointer(); 457ITextPointer position = thisElement.CreatePointer(); 476ITextPointer position = thisElement.CreatePointer(); 500ITextPointer position = thisElement.CreatePointer(); 547private static void WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool reduceElement, bool preserveTextElements) 657private static void WriteRootFlowDocument(ITextRange range, ITextPointer context, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, bool lastParagraphMustBeMerged, bool useFlowDocumentAsRoot) 776private static void WriteInheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 779ITextPointer outerContext = null; 841private static void WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, bool onlyAffected, DependencyObject complexProperties) 846ITextPointer parentContext = onlyAffected ? null : context.CreatePointer(); 961private static void WriteLocallySetProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, DependencyObject complexProperties) 1692private static ITextPointer FindSerializationCommonAncestor(ITextRange range) 1695ITextPointer commonAncestor = range.Start.CreatePointer(); 1696ITextPointer runningEnd = range.End.CreatePointer(); 1728ITextPointer hyperlinkStart = GetHyperlinkStart(range); 1745private static bool IsAcceptableAncestor(ITextPointer commonAncestor, ITextRange range) 1761ITextPointer navigator = commonAncestor.CreatePointer(); 1869private static bool IsPartialNonTypographic(ITextPointer textReader, ITextPointer rangeEnd) 1875ITextPointer elementNavigation = textReader.CreatePointer(); 1876ITextPointer elementEnd = textReader.CreatePointer(); 1897private static bool IsHyperlinkInvalid(ITextPointer textReader, ITextPointer rangeEnd) 1908ITextPointer hyperlinkNavigation = textReader.CreatePointer(); 1909ITextPointer hyperlinkEnd = textReader.CreatePointer(); 1941private static ITextPointer GetHyperlinkStart(ITextRange range) 1943ITextPointer hyperlinkStart = null;
src\Framework\System\Windows\Documents\TextSchema.cs (2)
92internal static bool IsInTextContent(ITextPointer position) 219internal static bool IsValidChild(ITextPointer position, Type childType)
src\Framework\System\windows\Documents\TextSegment.cs (9)
46internal TextSegment(ITextPointer startPosition, ITextPointer endPosition) : 63internal TextSegment(ITextPointer startPosition, ITextPointer endPosition, bool preserveLogicalDirection) 97internal bool Contains(ITextPointer position) 115internal ITextPointer Start 126internal ITextPointer End 161private readonly ITextPointer _start; 164private readonly ITextPointer _end;
src\Framework\System\windows\Documents\TextSelection.cs (44)
91void ITextRange.Select(ITextPointer anchorPosition, ITextPointer movingPosition) 108void ITextRange.SelectWord(ITextPointer position) 127void ITextRange.SelectParagraph(ITextPointer position) 259ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 397ITextPointer ITextSelection.AnchorPosition 410ITextPointer ITextSelection.MovingPosition 415ITextPointer movingPosition; 457void ITextSelection.SetCaretToPosition(ITextPointer caretPosition, LogicalDirection direction, bool allowStopAtLineEnd, bool allowStopNearSpace) 472ITextPointer reversePosition = caretPosition.CreatePointer(direction == LogicalDirection.Forward ? LogicalDirection.Backward : LogicalDirection.Forward); 564void ITextSelection.ExtendToPosition(ITextPointer position) 572ITextPointer anchorPosition = thisSelection.AnchorPosition; 594ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 595ITextPointer movingPosition = ((ITextSelection)this).MovingPosition; 596ITextPointer newMovingPosition; 659private ITextPointer GetNextTextSegmentInsertionPosition(LogicalDirection direction) 683ITextPointer position = this.TextView.GetTextPositionFromPoint(point, /*snapToText:*/false); 797void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 814void ITextSelection.ExtendSelectionByMouse(ITextPointer cursorPosition, bool forceWordSelection, bool forceParagraphSelection) 834ITextPointer anchorPosition = ((ITextSelection)this).AnchorPosition; 842ITextPointer startPosition; 843ITextPointer movingPosition; 875private bool BeginMouseSelectionProcess(ITextPointer cursorPosition) 901private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange) 1086ITextPointer movingPosition = nextCell.ContentEnd.CreatePointer(); 1858private void SetActivePositions(ITextPointer anchorPosition, ITextPointer movingPosition) 1898private MovingEdge ConvertToMovingEdge(ITextPointer anchorPosition, ITextPointer movingPosition) 1950private void MoveSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 1960ITextPointer movingPosition = null; 1986private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect) 2129ITextPointer caretPosition = IdentifyCaretPosition(this); 2179private static ITextPointer IdentifyCaretPosition(ITextSelection currentTextSelection) 2181ITextPointer caretPosition = currentTextSelection.MovingPosition; 2220private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition) 2277ITextPointer nextCharacterPosition; 2370private static double CalculateScrollToOriginPosition(TextEditor textEditor, ITextPointer caretPosition, double horizontalCaretPosition) 2685private ITextPointer PropertyPosition 2690ITextPointer position = null; 2759private ITextPointer _anchorPosition; 2778private ITextPointer _previousCursorPosition; 2781private ITextPointer _reenterPosition;
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (12)
188ITextPointer newStart; 189ITextPointer newEnd; 190ITextPointer invalidRangeLeftStart; 191ITextPointer invalidRangeLeftEnd; 192ITextPointer invalidRangeRightStart; 193ITextPointer invalidRangeRightEnd; 334internal TextSelectionHighlightChangedEventArgs(ITextPointer invalidRangeLeftStart, ITextPointer invalidRangeLeftEnd, 335ITextPointer invalidRangeRightStart, ITextPointer invalidRangeRightEnd) 398private ITextPointer _oldStart; 399private ITextPointer _oldEnd;
src\Framework\System\Windows\Documents\TextServicesDisplayAttribute.cs (4)
75internal void Apply(ITextPointer start, ITextPointer end) 101internal static Color GetColor(UnsafeNativeMethods.TF_DA_COLOR dacolor, ITextPointer position) 121internal Color GetLineColor(ITextPointer position)
src\Framework\System\Windows\Documents\TextServicesDisplayAttributePropertyRanges.cs (4)
84ITextPointer start; 85ITextPointer end; 113ITextPointer start; 114ITextPointer end;
src\Framework\System\Windows\Documents\TextServicesPropertyRanges.cs (4)
99ITextPointer start; 100ITextPointer end; 143out ITextPointer start, 144out ITextPointer end)
src\Framework\System\Windows\Documents\TextStore.cs (71)
260ITextPointer start; 261ITextPointer end; 298ITextPointer navigator; 299ITextPointer limit; 374ITextPointer start; 375ITextPointer end; 528ITextPointer startNavigator; 529ITextPointer endNavigator; 556ITextPointer start; 557ITextPointer end; 737ITextPointer position; 816ITextPointer position; 861ITextPointer positionCur = position.CreatePointer(LogicalDirection.Backward); 862ITextPointer positionPrev = position.CreatePointer(LogicalDirection.Forward); 891ITextPointer startPointer; 892ITextPointer endPointer; 939ITextPointer navigator = startPointer.CreatePointer(); 948ITextPointer end; 954ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start; 1114ITextPointer start; 1115ITextPointer end; 1206ITextPointer oldStart; 1207ITextPointer oldEnd; 1211ITextPointer newStart = null; 1212ITextPointer newEnd = null; 1269ITextPointer start; 1270ITextPointer end; 1359ITextPointer navigator; 1641ITextPointer compositionStart; 1642ITextPointer compositionEnd; 1713private bool GetFnReconv(ITextPointer textStart, ITextPointer textEnd, out UnsafeNativeMethods.ITfFnReconversion funcReconv, out UnsafeNativeMethods.ITfRange rangeNew) 1797internal ITextPointer CreatePointerAtCharOffset(int charOffset, LogicalDirection direction) 1801ITextPointer pointer = this.TextContainer.CreatePointerAtCharOffset(charOffset, direction); 2312private static bool WalkTextRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2373private static bool WalkObjectRun(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2415private static bool WalkRegionBoundary(ITextPointer navigator, ITextPointer limit, char[] text, int cchReq, ref int charsCopied, UnsafeNativeMethods.TS_RUNINFO[] runInfo, int cRunInfoReq, ref int cRunInfoRcv) 2793private void TextPositionsFromITfRange(UnsafeNativeMethods.ITfRange range, out ITextPointer start, out ITextPointer end) 2818private void GetCompositionPositions(out ITextPointer start, out ITextPointer end) 2838private void GetCompositionPositions(UnsafeNativeMethods.ITfCompositionView view, out ITextPointer start, out ITextPointer end) 2914ITextPointer positionCurrent; 2915ITextPointer positionNext; 3032private CompositionParentUndoUnit OpenCompositionUndoUnit(ITextPointer compositionStart, ITextPointer compositionEnd) 3052ITextPointer start; 3084private static Rect GetLineBounds(ITextPointer start, ITextPointer end) 3097ITextPointer navigator = start.CreatePointer(LogicalDirection.Forward); 3285private void BreakTypingSequence(ITextPointer caretPosition) 3302private static void GetAdjustedSelection(ITextPointer startIn, ITextPointer endIn, out ITextPointer startOut, out ITextPointer endOut) 3385private void GetNormalizedRange(int startCharOffset, int endCharOffset, out ITextPointer start, out ITextPointer end) 3548ITextPointer start = this.TextContainer.CreatePointerAtOffset(record.StartOffsetBefore, LogicalDirection.Backward); 3549ITextPointer end = this.TextContainer.CreatePointerAtOffset(record.EndOffsetBefore, LogicalDirection.Forward); 3808ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(appSelectionAnchorOffset, LogicalDirection.Forward); 3809ITextPointer moving = this.TextContainer.CreatePointerAtOffset(appSelectionMovingOffset, LogicalDirection.Forward); 3829ITextPointer anchor = this.TextContainer.CreatePointerAtOffset(imeSelectionAnchorOffset, LogicalDirection.Backward); 3830ITextPointer moving = this.TextContainer.CreatePointerAtOffset(imeSelectionMovingOffset, LogicalDirection.Backward); 4191internal CompositionParentUndoUnit(ITextSelection selection, ITextPointer anchorPosition, ITextPointer movingPosition, bool isFirstCompositionUnit) 4406private ITextPointer _previousCompositionStart; 4409private ITextPointer _previousCompositionEnd;
src\Framework\System\Windows\Documents\ValidationHelper.cs (4)
32internal static void VerifyPosition(ITextContainer tree, ITextPointer position) 40internal static void VerifyPosition(ITextContainer container, ITextPointer position, string paramName) 58internal static void VerifyPositionPair(ITextPointer startPosition, ITextPointer endPosition)