201 references to TextPointerBase
PresentationFramework (201)
MS\Internal\Annotations\TextAnchor.cs (3)
660if (!TextPointerBase.IsAtInsertionPosition(start, start.LogicalDirection)) 668if (!TextPointerBase.IsAtInsertionPosition(start, start.LogicalDirection)) 672if (!TextPointerBase.IsAtInsertionPosition(end, start.LogicalDirection))
MS\Internal\Documents\TextBoxView.cs (5)
746if (TextPointerBase.IsNextToPlainLineBreak(endOfLinePosition, LogicalDirection.Backward)) 2060if (TextPointerBase.IsNextToPlainLineBreak(position, LogicalDirection.Backward)) 2106if (TextPointerBase.IsNextToPlainLineBreak(endOfLinePosition, LogicalDirection.Backward)) 2156if (TextPointerBase.IsNextToPlainLineBreak(position, LogicalDirection.Backward)) 2185if (TextPointerBase.IsNextToPlainLineBreak(endOfLinePosition, LogicalDirection.Backward))
MS\Internal\PtsHost\TextParaClient.cs (1)
2042return (TextPointerBase.IsNextToAnyBreak(position, LogicalDirection.Backward));
System\Windows\Controls\PasswordTextNavigator.cs (10)
189return TextPointerBase.GetTextInRun(this, direction); 370return TextPointerBase.GetFrozenPointer(this, logicalDirection); 519return TextPointerBase.MoveToLineBoundary(this, _container.TextView, count); 525return TextPointerBase.GetCharacterRect(this, direction); 530return TextPointerBase.MoveToInsertionPosition(this, direction); 535return TextPointerBase.MoveToNextInsertionPosition(this, direction); 584TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 592return TextPointerBase.ValidateLayout(this, _container.TextView); 663get { return TextPointerBase.IsAtInsertionPosition(this); } 680return TextPointerBase.GetOffset(this);
System\Windows\Controls\TextBlock.cs (1)
2349&& TextPointerBase.IsNextToAnyBreak(endOfLineTextPointer, LogicalDirection.Backward))
System\Windows\Controls\TextBox.cs (2)
1419rect = TextPointerBase.GetCharacterRect(position, position.LogicalDirection, relativeToTextBox); 1482if (TextPointerBase.IsNextToPlainLineBreak(textPointer, LogicalDirection.Forward))
System\Windows\Controls\TextRangeAdaptor.cs (12)
485(!TextPointerBase.IsAtNonMergeableInlineStart(position) && !TextPointerBase.IsAtNonMergeableInlineEnd(position))) 528if (expandStart && !TextPointerBase.IsAtInsertionPosition(_start)) 530TextPointerBase.MoveToNextInsertionPosition(_start, LogicalDirection.Backward); 532if (expandEnd && !TextPointerBase.IsAtInsertionPosition(_end)) 534TextPointerBase.MoveToNextInsertionPosition(_end, LogicalDirection.Forward); 734if (!TextPointerBase.IsAtInsertionPosition(position)) 736if (TextPointerBase.MoveToNextInsertionPosition(position, direction)) 1005if (!TextPointerBase.MoveToNextInsertionPosition(position, direction)) 1092if (TextPointerBase.IsAtRowEnd(position)) 1443if (!TextPointerBase.IsAtInsertionPosition(position)) 1448return TextPointerBase.IsAtWordBoundary(position, LogicalDirection.Forward);
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
705TextPointerBase.GetTextWithLimit(highlightRangeStart.CreateDynamicTextPointer(LogicalDirection.Forward), LogicalDirection.Forward, sb, 0, 256, highlightTransitionPosition.CreateDynamicTextPointer(LogicalDirection.Forward));
System\Windows\Documents\DocumentSequenceTextPointer.cs (10)
105return TextPointerBase.GetTextInRun(this, direction); 224return TextPointerBase.GetFrozenPointer(this, logicalDirection); 280TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 303return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 395get { return TextPointerBase.IsAtInsertionPosition(this); } 412return TextPointerBase.GetOffset(this); 510return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 516return TextPointerBase.GetCharacterRect(this, direction); 521return TextPointerBase.MoveToInsertionPosition(this, direction); 526return TextPointerBase.MoveToNextInsertionPosition(this, direction);
System\Windows\Documents\FixedTextPointer.cs (10)
123return TextPointerBase.GetTextInRun(this, direction); 302return TextPointerBase.GetFrozenPointer(this, logicalDirection); 344TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 464return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).TextContainer.TextView, count, true); 472return TextPointerBase.GetCharacterRect(this, direction); 480return TextPointerBase.MoveToInsertionPosition(this, direction); 488return TextPointerBase.MoveToNextInsertionPosition(this, direction); 519return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).TextContainer.TextView); 607get { return TextPointerBase.IsAtInsertionPosition(this); } 628return TextPointerBase.GetOffset(this);
System\Windows\Documents\NullTextNavigator.cs (6)
95return TextPointerBase.GetTextInRun(this, direction); 214return TextPointerBase.GetFrozenPointer(this, logicalDirection); 300return TextPointerBase.MoveToInsertionPosition(this, direction); 308return TextPointerBase.MoveToNextInsertionPosition(this, direction); 366TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 467get { return TextPointerBase.IsAtInsertionPosition(this); }
System\Windows\Documents\SpellerStatusTable.cs (1)
101start = TextPointerBase.Max(searchStart, run.Position);
System\windows\Documents\TextEditor.cs (1)
1249endOfFirstLine = textData.AsSpan().IndexOfAny(TextPointerBase.NextLineCharacters);
System\windows\Documents\TextEditorDragDrop.cs (4)
481!TextPointerBase.IsAtWordBoundary(dropPosition, /*insideWordDirection:*/LogicalDirection.Forward) && 484TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.Start, LogicalDirection.Forward) && // 485TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.End, LogicalDirection.Forward)) 488TextSegment wordSegment = TextPointerBase.GetWordRange(dropPosition);
System\windows\Documents\TextEditorLists.cs (5)
58ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 59ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 142ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 143ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 350if (TextPointerBase.IsAtPotentialParagraphPosition(position))
System\windows\Documents\TextEditorSelection.cs (20)
318if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 408if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 867LogicalDirection orientation = TextPointerBase.IsNextToPlainLineBreak(lineRange.End, LogicalDirection.Backward) ? LogicalDirection.Forward : LogicalDirection.Backward; 1075if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 1137if (TextPointerBase.IsNextToAnyBreak(newMovingPosition, LogicalDirection.Forward) || 1265if (TextPointerBase.IsInAnchoredBlock(originalMovingPosition)) 1670if (TextPointerBase.IsNextToPlainLineBreak(destination, LogicalDirection.Forward) || 1671TextPointerBase.IsNextToRichLineBreak(destination, LogicalDirection.Forward)) 1684else if (TextPointerBase.IsNextToParagraphBreak(destination, LogicalDirection.Forward) && 1685TextPointerBase.IsNextToParagraphBreak(This.Selection.AnchorPosition, LogicalDirection.Backward)) 2133if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2143TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward); 2153if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2163TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Backward); 2207TextPointerBase.MoveToNextWordBoundary(wordBoundary, direction); 2323TextPointerBase.IsNextToAnyBreak(movingPosition, LogicalDirection.Backward)) 2329if (TextPointerBase.IsNextToPlainLineBreak(movingPosition, LogicalDirection.Backward)) 2334else if (TextPointerBase.IsAfterLastParagraph(movingPosition)) 2409if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start)) 2425if (TextPointerBase.IsAtRowEnd(position))
System\windows\Documents\TextEditorSpelling.cs (3)
206if (TextPointerBase.IsAtNonMergeableInlineStart(textStart) || 207TextPointerBase.IsAtNonMergeableInlineEnd(textEnd)) 356isSelectionIgnoringErrors = TextPointerBase.IsCharUnicodeNewLine(text[i]);
System\windows\Documents\TextEditorTyping.cs (15)
560if (TextPointerBase.IsAtRowEnd(deletePosition)) 638if (TextPointerBase.IsAtRowEnd(deletePosition)) 743!TextPointerBase.IsAtRowEnd(position)) 795if ((position is TextPointer) && TextPointerBase.IsAtParagraphOrBlockUIContainerStart(position)) 922TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward); 981TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Backward); 1123if (newEnd.HasNonMergeableInlineAncestor && !TextPointerBase.IsPositionAtNonMergeableInlineBoundary(newEnd)) 1177if (TextPointerBase.IsAtRowEnd(position)) 1184(TextPointerBase.IsInEmptyListItem(position) || IsAtListItemChildStart(position, true /* emptyChildOnly */)) && 1190else if (TextPointerBase.IsBeforeFirstTable(position) || 1191TextPointerBase.IsAtBlockUIContainerStart(position)) 1198else if (TextPointerBase.IsAtBlockUIContainerEnd(position)) 1359if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1391if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1421if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextEffectResolver.cs (1)
73continuousTextEnd = (TextPointer)TextPointerBase.Min(continuousTextEnd, endPosition);
System\Windows\Documents\TextPointer.cs (12)
741return TextPointerBase.GetTextInRun(this, direction); 1262return TextPointerBase.GetCharacterRect(this, direction); 1574return TextPointerBase.IsAtInsertionPosition(this); 2040return TextPointerBase.MoveToInsertionPosition(this, direction); 2083return TextPointerBase.MoveToNextInsertionPosition(this, direction); 2125return TextPointerBase.MoveToLineBoundary(this, _tree.TextView, count); 2345return (TextPointer)TextPointerBase.GetFrozenPointer(this, logicalDirection); 2401return TextPointerBase.GetTextInRun(this, direction); 2480TextPointerBase.MoveToFormatNormalizedPosition(pointer, direction); 2810return TextPointerBase.ValidateLayout(this, _tree.TextView); 3810return TextPointerBase.IsAtRowEnd(this); 3841return TextPointerBase.IsAtNonMergeableInlineStart(this);
System\Windows\Documents\TextRangeBase.cs (15)
197TextSegment wordRange = TextPointerBase.GetWordRange(normalizedPosition); 210!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Forward) && // 211!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Backward)) 215autoWordRange = TextPointerBase.GetWordRange(thisRange.Start); 286!TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Forward)) 305(TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Backward) || 306TextPointerBase.IsAfterLastParagraph(thisRange.End))) 517if (TextPointerBase.IsAfterLastParagraph(endNavigator)) 753runLength = TextPointerBase.GetTextWithLimit(navigator, LogicalDirection.Forward, charArray, 0, runLength, endPosition); 1719if (!TextPointerBase.IsAfterLastParagraph(end)) 1793isAtNormalizedPosition = TextPointerBase.IsAtFormatNormalizedPosition(position, direction); 1797isAtNormalizedPosition = TextPointerBase.IsAtInsertionPosition(position, direction); 1943if (!TextPointerBase.IsAtInsertionPosition(start, start.LogicalDirection)) 1961!TextPointerBase.IsAtInsertionPosition(start, LogicalDirection.Forward) || 1962!TextPointerBase.IsAtInsertionPosition(end, LogicalDirection.Backward))
System\Windows\Documents\TextRangeEdit.cs (12)
596bool structuralBoundaryCrossed = TextPointerBase.IsAtRowEnd(position) || 597TextPointerBase.IsBeforeFirstTable(position) || 598TextPointerBase.IsInBlockUIContainer(position); 609Invariant.Assert(TextPointerBase.IsPositionAtNonMergeableInlineBoundary(position), "Position must be at hyperlink boundary!"); 644bool needToSplitListItem = TextPointerBase.GetImmediateListItem(paragraph.ContentStart) != null; 1042if (TextPointerBase.IsAtPotentialParagraphPosition(pointer)) 1258else if (TextPointerBase.IsAfterLastParagraph(rangeEnd)) 1434if (TextPointerBase.IsAfterLastParagraph(endPosition)) 1464if (firstParagraphOrBlockUIContainer == null && TextPointerBase.IsInEmptyListItem(startPosition)) 1470if (secondParagraphOrBlockUIContainer == null && TextPointerBase.IsInEmptyListItem(endPosition)) 1897if (TextPointerBase.IsAtPotentialRunPosition(run)) 2091if (TextPointerBase.IsAtPotentialRunPosition(pointer))
System\Windows\Documents\TextRangeEditLists.cs (10)
260if (range.IsEmpty && TextPointerBase.IsAtPotentialParagraphPosition(range.Start)) 270if (range.IsEmpty && TextPointerBase.IsAtPotentialParagraphPosition(range.Start)) 339ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 340ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 397ListItem firstListItem = TextPointerBase.GetImmediateListItem(range.Start); 398ListItem lastListItem = TextPointerBase.GetImmediateListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 451ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 452ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 586ListItem startListItem = TextPointerBase.GetListItem(range.Start); 590ListItem endListItem = TextPointerBase.GetListItem(end);
System\Windows\Documents\TextRangeEditTables.cs (8)
565Invariant.Assert(TextPointerBase.IsAtRowEnd(selection.MovingPosition)); 716if (!TextPointerBase.IsAtInsertionPosition(position)) 745if (TextPointerBase.IsInBlockUIContainer(position)) 759else if (TextPointerBase.IsBeforeFirstTable(position) || TextPointerBase.IsAtPotentialParagraphPosition(position)) 763else if (TextPointerBase.IsAtPotentialRunPosition(position)) 1963if (!TextPointerBase.IsAfterLastParagraph(endPosition)) 2052if (!TextPointerBase.IsAfterLastParagraph(movingPosition))
System\Windows\Documents\TextRangeSerialization.cs (6)
81!TextPointerBase.IsAfterLastParagraph(range.End) && 312textLength = TextPointerBase.GetTextWithLimit(textReader, LogicalDirection.Forward, text, 0, textLength, rangeEnd); 449if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 468if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 1925if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End))
System\Windows\Documents\TextSchema.cs (1)
221TextPointerBase.IsInHyperlinkScope(position))
System\windows\Documents\TextSelection.cs (15)
473((TextPointerBase.IsAtLineWrappingPosition(caretPosition, this.TextView) && 474TextPointerBase.IsAtLineWrappingPosition(reversePosition, this.TextView)) || 475TextPointerBase.IsNextToPlainLineBreak(caretPosition, LogicalDirection.Backward) || 601else if (movingPosition is TextPointer && TextPointerBase.IsAtRowEnd(movingPosition)) 902anchorWordRange = TextPointerBase.GetWordRange(anchorPosition); 903cursorWordRange = TextPointerBase.GetWordRange(cursorPosition, cursorPosition.LogicalDirection); 927anchorWordRange = TextPointerBase.GetWordRange(anchorPosition); 953TextSegment lastReenteredWordRange = TextPointerBase.GetWordRange(_reenterPosition); 978TextPointerBase.IsAtWordBoundary(anchorPosition, /*insideWordDirection:*/LogicalDirection.Forward)) 991if (TextPointerBase.IsAfterLastParagraph(cursorPosition) || 992TextPointerBase.IsAtWordBoundary(cursorPosition, /*insideWordDirection:*/LogicalDirection.Forward)) 1001cursorWordRange = TextPointerBase.GetWordRange(cursorPosition, cursorPosition.LogicalDirection); 2183TextPointerBase.IsAfterLastParagraph(caretPosition)) 2201TextPointerBase.IsNextToAnyBreak(caretPosition, LogicalDirection.Backward))) 2681position = TextPointerBase.GetFollowingNonMergeableInlineContentStart(This.Start);
System\windows\Documents\TextSelectionHighlightLayer.cs (4)
218invalidRangeLeftEnd = TextPointerBase.Min(newStart, _oldEnd); 223invalidRangeLeftEnd = TextPointerBase.Min(newEnd, _oldStart); 229invalidRangeRightStart = TextPointerBase.Max(newStart, _oldEnd); 234invalidRangeRightStart = TextPointerBase.Max(newEnd, _oldStart);
System\Windows\Documents\TextStore.cs (7)
500while (start != null && TextPointerBase.IsBeforeFirstTable(start)) 2470runCount = TextPointerBase.GetTextWithLimit(navigator, LogicalDirection.Forward, text, charsCopied, Math.Min(cchReq, text.Length - charsCopied), limit); 3398bool scopingBlockUIContainer = TextPointerBase.IsInBlockUIContainer(start) || TextPointerBase.IsInBlockUIContainer(end); 3429else if (TextPointerBase.IsInBlockUIContainer(start)) 3441while (start != null && TextPointerBase.IsBeforeFirstTable(start)) 3449if (start == null || start.IsAtRowEnd || TextPointerBase.IsInBlockUIContainer(start))