1 implementation of End
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
325ITextPointer ITextRange.End
123 references to End
PresentationFramework (123)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
363end = textRange.End;
MS\Internal\Documents\DocumentViewerHelper.cs (6)
188findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 195(findResult.End.CompareTo(textSelection.End) == 0)) 200contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 208contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 229textSelection.Select(findResult.Start, findResult.End);
MS\Internal\Documents\TextBoxView.cs (1)
1864GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
System\Windows\Annotations\AnnotationHelper.cs (8)
591TextSelectionHelper.GetPointerPage(selection.End, out selEndPage); 671ITextPointer end = selection.End.CreatePointer(); 831((selection.End.CompareTo(anchor.Start) > 0) && (selection.End.CompareTo(anchor.End) < 0)) || 832((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 856((anchor.End.CompareTo(selection.End) == 0) && 857(selection.End.LogicalDirection == LogicalDirection.Backward))) 943ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\TextAdaptor.cs (1)
492return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
System\Windows\Controls\TextRangeAdaptor.cs (6)
650if (_end.CompareTo(textRange.End) != 0) 652_end = textRange.End.CreatePointer(); 855ITextPointer nextParagraphStart = textRange.End; 884previousParagraphEnd = textRange.End; 1111position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1774range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
System\Windows\Documents\ImmComposition.cs (7)
619endNavigator = _editor.Selection.End.CreatePointer(); 628caretNavigator = _editor.Selection.End.CreatePointer(); 729if (!_editor.Selection.End.HasValidLayout) 753rectCaret = view.GetRectangleFromTextPosition(_editor.Selection.End.CreatePointer(LogicalDirection.Backward)); 967composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1125end = range.End; 1444navigator = range.End.CreatePointer();
System\windows\Documents\TextEditor.cs (2)
1155return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1165return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
System\windows\Documents\TextEditorCharacters.cs (1)
132TextPointer endResetFormatPosition = (TextPointer)This.Selection.End;
System\windows\Documents\TextEditorCopyPaste.cs (3)
397This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true); 883TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.End); 887TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.End);
System\windows\Documents\TextEditorDragDrop.cs (2)
165_dragSourceTextRange = new TextRange(selection.Start, selection.End); 467TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.End, LogicalDirection.Forward))
System\windows\Documents\TextEditorSelection.cs (13)
122return new TextSegment(textRange.Start, textRange.End); 252if (!This.Selection.End.ValidateLayout()) 462movingPointer.MoveToPosition(paragraphRange.End); 472This.Selection.SetCaretToPosition(paragraphRange.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 543if (!This.Selection.End.ValidateLayout()) 1319movingPointer.MoveToPosition(paragraphRange.End); 1329ExtendSelectionAndBringIntoView(paragraphRange.End, This); 1645if (lineRange.End.CompareTo(This.Selection.End) < 0) 2056ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2117if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2120textEditor.Selection.SetCaretToPosition(textEditor.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2126ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer(); 2344ITextPointer end = This.Selection.End;
System\windows\Documents\TextEditorSpelling.cs (4)
87position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 165caretPosition = This.Selection.End; 338isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 344isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
System\windows\Documents\TextEditorTyping.cs (11)
530ITextPointer position = This.Selection.End; 674This.Selection.Select(This.Selection.End, backspacePosition); 895ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 929This.Selection.Select(textRange.Start, textRange.End); 973ITextRange textRange = new TextRange(wordBoundary, This.Selection.End); 989This.Selection.Select(textRange.Start, textRange.End); 994This.Selection.Select(textRange.Start, textRange.End); 1071This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1399if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End)) 1403TableRow row = ((TextPointer)This.Selection.End).Parent as TableRow; 1543ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\TextRange.cs (2)
323/// <see cref="ITextRange.End"/> 1271return (TextPointer)((ITextRange)this).End;
System\Windows\Documents\TextRangeBase.cs (14)
75else if (textPointer.CompareTo(thisRange.End) > 0) 282!TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Forward)) 287ITextPointer nextPosition = thisRange.End.CreatePointer(); 301(TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Backward) || 302TextPointerBase.IsAfterLastParagraph(thisRange.End))) 304ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward); 511ITextPointer endNavigator = thisRange.End.CreatePointer(); 1212(thisRange.Start.CompareTo(thisRange.End) == 0), 1257return TextRangeBase.GetTextInternal(start, thisRange.End); 1295((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1311thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1324textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1328thisRange.Start.DeleteContentToPosition(thisRange.End); 1624ITextPointer end = range.End.CreatePointer();
System\Windows\Documents\TextRangeSerialization.cs (8)
74!TextPointerBase.IsAfterLastParagraph(range.End) && 75range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 96WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 447ignoreHyperlink = IsHyperlinkInvalid(position, range.End); 466isPartialNonTypographic = IsPartialNonTypographic(position, range.End); 1669ITextPointer runningEnd = range.End.CreatePointer(); 1675runningEnd.MoveToPosition(range.End); 1918if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End))
System\windows\Documents\TextSelection.cs (12)
49SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 109SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 129SetActivePositions(/*anchorPosition:*/position, thisSelection.End); 287((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 291SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 419movingPosition = thisSelection.End; 1741This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1743This.End.GetNextInsertionPosition(LogicalDirection.Forward) == null); 1860else if (_anchorPosition.CompareTo(thisSelection.End) > 0) 1862_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection); 1893else if (movingPosition.CompareTo(thisSelection.End) == 0) 2273nextCharacterPosition = focusedTextSelection.End.CreatePointer(LogicalDirection.Backward);
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
38_oldEnd = _selection.End; 195newStart = _selection.End; 198newEnd = _selection.End;
System\Windows\Documents\TextStore.cs (18)
331selection[0].end = this.TextSelection.End.CharOffset; 679GetAdjustedSelection(range.Start, range.End, out start, out end); 704string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 742end.CompareTo(this.TextSelection.End) != 0) 756_previousCompositionEndOffset = this.TextSelection.End.Offset; 1481navigator = TextSelection.End.CreatePointer(); 1505string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1512TextSelection.Select(TextSelection.End, TextSelection.End); 1761(compositionStart.CompareTo(TextSelection.End) <= 0) && 1763(compositionEnd.CompareTo(TextSelection.End) >= 0)) 1774fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1799fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1982CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 2000this.TextSelection.Select(range.Start, range.End); 2004this.TextSelection.SetCaretToPosition(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 2007compositionUndoUnit.RecordRedoSelectionState(range.End, range.End);