200 references to TextPointerBase
PresentationFramework (200)
src\Framework\MS\Internal\Annotations\TextAnchor.cs (3)
667if (!TextPointerBase.IsAtInsertionPosition(start, start.LogicalDirection)) 675if (!TextPointerBase.IsAtInsertionPosition(start, start.LogicalDirection)) 679if (!TextPointerBase.IsAtInsertionPosition(end, start.LogicalDirection))
src\Framework\MS\Internal\Documents\TextBoxView.cs (5)
750if (TextPointerBase.IsNextToPlainLineBreak(endOfLinePosition, LogicalDirection.Backward)) 2056if (TextPointerBase.IsNextToPlainLineBreak(position, LogicalDirection.Backward)) 2102if (TextPointerBase.IsNextToPlainLineBreak(endOfLinePosition, LogicalDirection.Backward)) 2152if (TextPointerBase.IsNextToPlainLineBreak(position, LogicalDirection.Backward)) 2181if (TextPointerBase.IsNextToPlainLineBreak(endOfLinePosition, LogicalDirection.Backward))
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (1)
2256return (TextPointerBase.IsNextToAnyBreak(position, LogicalDirection.Backward));
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (10)
191return TextPointerBase.GetTextInRun(this, direction); 372return TextPointerBase.GetFrozenPointer(this, logicalDirection); 521return TextPointerBase.MoveToLineBoundary(this, _container.TextView, count); 527return TextPointerBase.GetCharacterRect(this, direction); 532return TextPointerBase.MoveToInsertionPosition(this, direction); 537return TextPointerBase.MoveToNextInsertionPosition(this, direction); 586TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 594return TextPointerBase.ValidateLayout(this, _container.TextView); 665get { return TextPointerBase.IsAtInsertionPosition(this); } 682return TextPointerBase.GetOffset(this);
src\Framework\System\Windows\Controls\TextBlock.cs (1)
2437&& TextPointerBase.IsNextToAnyBreak(endOfLineTextPointer, LogicalDirection.Backward))
src\Framework\System\Windows\Controls\TextBox.cs (2)
1411rect = TextPointerBase.GetCharacterRect(position, position.LogicalDirection, relativeToTextBox); 1474if (TextPointerBase.IsNextToPlainLineBreak(textPointer, LogicalDirection.Forward))
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (12)
493(!TextPointerBase.IsAtNonMergeableInlineStart(position) && !TextPointerBase.IsAtNonMergeableInlineEnd(position))) 536if (expandStart && !TextPointerBase.IsAtInsertionPosition(_start)) 538TextPointerBase.MoveToNextInsertionPosition(_start, LogicalDirection.Backward); 540if (expandEnd && !TextPointerBase.IsAtInsertionPosition(_end)) 542TextPointerBase.MoveToNextInsertionPosition(_end, LogicalDirection.Forward); 742if (!TextPointerBase.IsAtInsertionPosition(position)) 744if (TextPointerBase.MoveToNextInsertionPosition(position, direction)) 1014if (!TextPointerBase.MoveToNextInsertionPosition(position, direction)) 1101if (TextPointerBase.IsAtRowEnd(position)) 1452if (!TextPointerBase.IsAtInsertionPosition(position)) 1457return TextPointerBase.IsAtWordBoundary(position, LogicalDirection.Forward);
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (10)
109return TextPointerBase.GetTextInRun(this, direction); 228return TextPointerBase.GetFrozenPointer(this, logicalDirection); 284TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 307return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 399get { return TextPointerBase.IsAtInsertionPosition(this); } 416return TextPointerBase.GetOffset(this); 514return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 520return TextPointerBase.GetCharacterRect(this, direction); 525return TextPointerBase.MoveToInsertionPosition(this, direction); 530return TextPointerBase.MoveToNextInsertionPosition(this, direction);
src\Framework\System\Windows\Documents\FixedTextPointer.cs (10)
129return TextPointerBase.GetTextInRun(this, direction); 317return TextPointerBase.GetFrozenPointer(this, logicalDirection); 359TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 479return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 487return TextPointerBase.GetCharacterRect(this, direction); 495return TextPointerBase.MoveToInsertionPosition(this, direction); 503return TextPointerBase.MoveToNextInsertionPosition(this, direction); 537return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 625get { return TextPointerBase.IsAtInsertionPosition(this); } 646return TextPointerBase.GetOffset(this);
src\Framework\System\Windows\Documents\NullTextNavigator.cs (6)
97return TextPointerBase.GetTextInRun(this, direction); 216return TextPointerBase.GetFrozenPointer(this, logicalDirection); 302return TextPointerBase.MoveToInsertionPosition(this, direction); 310return TextPointerBase.MoveToNextInsertionPosition(this, direction); 368TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 469get { return TextPointerBase.IsAtInsertionPosition(this); }
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (1)
101start = TextPointerBase.Max(searchStart, run.Position);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1276endOfFirstLine = textData.IndexOfAny(TextPointerBase.NextLineCharacters);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (4)
493!TextPointerBase.IsAtWordBoundary(dropPosition, /*insideWordDirection:*/LogicalDirection.Forward) && 496TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.Start, LogicalDirection.Forward) && // 497TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.End, LogicalDirection.Forward)) 500TextSegment wordSegment = TextPointerBase.GetWordRange(dropPosition);
src\Framework\System\windows\Documents\TextEditorLists.cs (5)
60ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 61ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 144ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 145ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 352if (TextPointerBase.IsAtPotentialParagraphPosition(position))
src\Framework\System\windows\Documents\TextEditorSelection.cs (20)
326if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 416if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 876LogicalDirection orientation = TextPointerBase.IsNextToPlainLineBreak(lineRange.End, LogicalDirection.Backward) ? LogicalDirection.Forward : LogicalDirection.Backward; 1084if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 1146if (TextPointerBase.IsNextToAnyBreak(newMovingPosition, LogicalDirection.Forward) || 1274if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 1679if (TextPointerBase.IsNextToPlainLineBreak(destination, LogicalDirection.Forward) || 1680TextPointerBase.IsNextToRichLineBreak(destination, LogicalDirection.Forward)) 1693else if (TextPointerBase.IsNextToParagraphBreak(destination, LogicalDirection.Forward) && 1694TextPointerBase.IsNextToParagraphBreak(This.Selection.AnchorPosition, LogicalDirection.Backward)) 2142if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2152TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward); 2162if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2172TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Backward); 2216TextPointerBase.MoveToNextWordBoundary(wordBoundary, direction); 2332TextPointerBase.IsNextToAnyBreak(movingPosition, LogicalDirection.Backward)) 2338if (TextPointerBase.IsNextToPlainLineBreak(movingPosition, LogicalDirection.Backward)) 2343else if (TextPointerBase.IsAfterLastParagraph(movingPosition)) 2418if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start)) 2434if (TextPointerBase.IsAtRowEnd(position))
src\Framework\System\windows\Documents\TextEditorSpelling.cs (3)
208if (TextPointerBase.IsAtNonMergeableInlineStart(textStart) || 209TextPointerBase.IsAtNonMergeableInlineEnd(textEnd)) 358isSelectionIgnoringErrors = TextPointerBase.IsCharUnicodeNewLine(text[i]);
src\Framework\System\windows\Documents\TextEditorTyping.cs (15)
576if (TextPointerBase.IsAtRowEnd(deletePosition)) 654if (TextPointerBase.IsAtRowEnd(deletePosition)) 759!TextPointerBase.IsAtRowEnd(position)) 812if ((position is TextPointer) && TextPointerBase.IsAtParagraphOrBlockUIContainerStart(position)) 939TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward); 998TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Backward); 1140if (newEnd.HasNonMergeableInlineAncestor && !TextPointerBase.IsPositionAtNonMergeableInlineBoundary(newEnd)) 1194if (TextPointerBase.IsAtRowEnd(position)) 1201(TextPointerBase.IsInEmptyListItem(position) || IsAtListItemChildStart(position, true /* emptyChildOnly */)) && 1207else if (TextPointerBase.IsBeforeFirstTable(position) || 1208TextPointerBase.IsAtBlockUIContainerStart(position)) 1215else if (TextPointerBase.IsAtBlockUIContainerEnd(position)) 1376if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1408if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1438if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End))
src\Framework\System\Windows\Documents\TextEffectResolver.cs (1)
82continuousTextEnd = (TextPointer)TextPointerBase.Min(continuousTextEnd, endPosition);
src\Framework\System\Windows\Documents\TextPointer.cs (12)
752return TextPointerBase.GetTextInRun(this, direction); 1273return TextPointerBase.GetCharacterRect(this, direction); 1588return TextPointerBase.IsAtInsertionPosition(this); 2057return TextPointerBase.MoveToInsertionPosition(this, direction); 2100return TextPointerBase.MoveToNextInsertionPosition(this, direction); 2142return TextPointerBase.MoveToLineBoundary(this, _tree.TextView, count); 2365return (TextPointer)TextPointerBase.GetFrozenPointer(this, logicalDirection); 2421return TextPointerBase.GetTextInRun(this, direction); 2500TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 2836return TextPointerBase.ValidateLayout(this, _tree.TextView); 3836return TextPointerBase.IsAtRowEnd(this); 3867return TextPointerBase.IsAtNonMergeableInlineStart(this);
src\Framework\System\Windows\Documents\TextRangeBase.cs (15)
205TextSegment wordRange = TextPointerBase.GetWordRange(normalizedPosition); 218!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Forward) && // 219!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Backward)) 223autoWordRange = TextPointerBase.GetWordRange(thisRange.Start); 297!TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Forward)) 316(TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Backward) || 317TextPointerBase.IsAfterLastParagraph(thisRange.End))) 528if (TextPointerBase.IsAfterLastParagraph(endNavigator)) 764runLength = TextPointerBase.GetTextWithLimit(navigator, LogicalDirection.Forward, charArray, 0, runLength, endPosition); 1747if (!TextPointerBase.IsAfterLastParagraph(end)) 1821isAtNormalizedPosition = TextPointerBase.IsAtFormatNormalizedPosition(position, direction); 1825isAtNormalizedPosition = TextPointerBase.IsAtInsertionPosition(position, direction); 1971if (!TextPointerBase.IsAtInsertionPosition(start, start.LogicalDirection)) 1989!TextPointerBase.IsAtInsertionPosition(start, LogicalDirection.Forward) || 1990!TextPointerBase.IsAtInsertionPosition(end, LogicalDirection.Backward))
src\Framework\System\Windows\Documents\TextRangeEdit.cs (12)
598bool structuralBoundaryCrossed = TextPointerBase.IsAtRowEnd(position) || 599TextPointerBase.IsBeforeFirstTable(position) || 600TextPointerBase.IsInBlockUIContainer(position); 611Invariant.Assert(TextPointerBase.IsPositionAtNonMergeableInlineBoundary(position), "Position must be at hyperlink boundary!"); 646bool needToSplitListItem = TextPointerBase.GetImmediateListItem(paragraph.ContentStart) != null; 1044if (TextPointerBase.IsAtPotentialParagraphPosition(pointer)) 1260else if (TextPointerBase.IsAfterLastParagraph(rangeEnd)) 1436if (TextPointerBase.IsAfterLastParagraph(endPosition)) 1466if (firstParagraphOrBlockUIContainer == null && TextPointerBase.IsInEmptyListItem(startPosition)) 1472if (secondParagraphOrBlockUIContainer == null && TextPointerBase.IsInEmptyListItem(endPosition)) 1899if (TextPointerBase.IsAtPotentialRunPosition(run)) 2093if (TextPointerBase.IsAtPotentialRunPosition(pointer))
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (10)
262if (range.IsEmpty && TextPointerBase.IsAtPotentialParagraphPosition(range.Start)) 272if (range.IsEmpty && TextPointerBase.IsAtPotentialParagraphPosition(range.Start)) 341ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 342ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 399ListItem firstListItem = TextPointerBase.GetImmediateListItem(range.Start); 400ListItem lastListItem = TextPointerBase.GetImmediateListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 453ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 454ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 588ListItem startListItem = TextPointerBase.GetListItem(range.Start); 592ListItem endListItem = TextPointerBase.GetListItem(end);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (8)
568Invariant.Assert(TextPointerBase.IsAtRowEnd(selection.MovingPosition)); 719if (!TextPointerBase.IsAtInsertionPosition(position)) 748if (TextPointerBase.IsInBlockUIContainer(position)) 762else if (TextPointerBase.IsBeforeFirstTable(position) || TextPointerBase.IsAtPotentialParagraphPosition(position)) 766else if (TextPointerBase.IsAtPotentialRunPosition(position)) 1966if (!TextPointerBase.IsAfterLastParagraph(endPosition)) 2055if (!TextPointerBase.IsAfterLastParagraph(movingPosition))
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (6)
83!TextPointerBase.IsAfterLastParagraph(range.End) && 318textLength = TextPointerBase.GetTextWithLimit(textReader, LogicalDirection.Forward, text, 0, textLength, rangeEnd); 455if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 474if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 1945if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End))
src\Framework\System\Windows\Documents\TextSchema.cs (1)
223TextPointerBase.IsInHyperlinkScope(position))
src\Framework\System\windows\Documents\TextSelection.cs (15)
476((TextPointerBase.IsAtLineWrappingPosition(caretPosition, this.TextView) && 477TextPointerBase.IsAtLineWrappingPosition(reversePosition, this.TextView)) || 478TextPointerBase.IsNextToPlainLineBreak(caretPosition, LogicalDirection.Backward) || 604else if (movingPosition is TextPointer && TextPointerBase.IsAtRowEnd(movingPosition)) 905anchorWordRange = TextPointerBase.GetWordRange(anchorPosition); 906cursorWordRange = TextPointerBase.GetWordRange(cursorPosition, cursorPosition.LogicalDirection); 930anchorWordRange = TextPointerBase.GetWordRange(anchorPosition); 956TextSegment lastReenteredWordRange = TextPointerBase.GetWordRange(_reenterPosition); 981TextPointerBase.IsAtWordBoundary(anchorPosition, /*insideWordDirection:*/LogicalDirection.Forward)) 994if (TextPointerBase.IsAfterLastParagraph(cursorPosition) || 995TextPointerBase.IsAtWordBoundary(cursorPosition, /*insideWordDirection:*/LogicalDirection.Forward)) 1004cursorWordRange = TextPointerBase.GetWordRange(cursorPosition, cursorPosition.LogicalDirection); 2191TextPointerBase.IsAfterLastParagraph(caretPosition)) 2209TextPointerBase.IsNextToAnyBreak(caretPosition, LogicalDirection.Backward))) 2694position = TextPointerBase.GetFollowingNonMergeableInlineContentStart(This.Start);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (4)
224invalidRangeLeftEnd = TextPointerBase.Min(newStart, _oldEnd); 229invalidRangeLeftEnd = TextPointerBase.Min(newEnd, _oldStart); 235invalidRangeRightStart = TextPointerBase.Max(newStart, _oldEnd); 240invalidRangeRightStart = TextPointerBase.Max(newEnd, _oldStart);
src\Framework\System\Windows\Documents\TextStore.cs (7)
379while (start != null && TextPointerBase.IsBeforeFirstTable(start)) 2325runCount = TextPointerBase.GetTextWithLimit(navigator, LogicalDirection.Forward, text, charsCopied, Math.Min(cchReq, text.Length - charsCopied), limit); 3320bool scopingBlockUIContainer = TextPointerBase.IsInBlockUIContainer(start) || TextPointerBase.IsInBlockUIContainer(end); 3351else if (TextPointerBase.IsInBlockUIContainer(start)) 3363while (start != null && TextPointerBase.IsBeforeFirstTable(start)) 3371if (start == null || start.IsAtRowEnd || TextPointerBase.IsInBlockUIContainer(start))