1 implementation of End
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
332ITextPointer ITextRange.End
123 references to End
PresentationFramework (123)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
364end = textRange.End;
MS\Internal\Documents\DocumentViewerHelper.cs (6)
189findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 196(findResult.End.CompareTo(textSelection.End) == 0)) 201contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 209contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 230textSelection.Select(findResult.Start, findResult.End);
MS\Internal\Documents\TextBoxView.cs (1)
1905GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
System\Windows\Annotations\AnnotationHelper.cs (8)
594TextSelectionHelper.GetPointerPage(selection.End, out selEndPage); 674ITextPointer end = selection.End.CreatePointer(); 834((selection.End.CompareTo(anchor.Start) > 0) && (selection.End.CompareTo(anchor.End) < 0)) || 835((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 859((anchor.End.CompareTo(selection.End) == 0) && 860(selection.End.LogicalDirection == LogicalDirection.Backward))) 946ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\TextAdaptor.cs (1)
499return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
System\Windows\Controls\TextRangeAdaptor.cs (6)
651if (_end.CompareTo(textRange.End) != 0) 653_end = textRange.End.CreatePointer(); 856ITextPointer nextParagraphStart = textRange.End; 885previousParagraphEnd = textRange.End; 1112position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1775range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
System\Windows\Documents\ImmComposition.cs (7)
635endNavigator = _editor.Selection.End.CreatePointer(); 644caretNavigator = _editor.Selection.End.CreatePointer(); 745if (!_editor.Selection.End.HasValidLayout) 769rectCaret = view.GetRectangleFromTextPosition(_editor.Selection.End.CreatePointer(LogicalDirection.Backward)); 981composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1139end = range.End; 1458navigator = range.End.CreatePointer();
System\windows\Documents\TextEditor.cs (2)
1162return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1172return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
System\windows\Documents\TextEditorCharacters.cs (1)
133TextPointer endResetFormatPosition = (TextPointer)This.Selection.End;
System\windows\Documents\TextEditorCopyPaste.cs (3)
398This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true); 882TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.End); 886TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.End);
System\windows\Documents\TextEditorDragDrop.cs (2)
166_dragSourceTextRange = new TextRange(selection.Start, selection.End); 468TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.End, LogicalDirection.Forward))
System\windows\Documents\TextEditorSelection.cs (13)
123return new TextSegment(textRange.Start, textRange.End); 253if (!This.Selection.End.ValidateLayout()) 463movingPointer.MoveToPosition(paragraphRange.End); 473This.Selection.SetCaretToPosition(paragraphRange.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 544if (!This.Selection.End.ValidateLayout()) 1320movingPointer.MoveToPosition(paragraphRange.End); 1330ExtendSelectionAndBringIntoView(paragraphRange.End, This); 1646if (lineRange.End.CompareTo(This.Selection.End) < 0) 2057ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2118if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2121textEditor.Selection.SetCaretToPosition(textEditor.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2127ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer(); 2345ITextPointer end = This.Selection.End;
System\windows\Documents\TextEditorSpelling.cs (4)
88position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 166caretPosition = This.Selection.End; 339isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 345isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
System\windows\Documents\TextEditorTyping.cs (11)
540ITextPointer position = This.Selection.End; 684This.Selection.Select(This.Selection.End, backspacePosition); 905ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 939This.Selection.Select(textRange.Start, textRange.End); 983ITextRange textRange = new TextRange(wordBoundary, This.Selection.End); 999This.Selection.Select(textRange.Start, textRange.End); 1004This.Selection.Select(textRange.Start, textRange.End); 1081This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1412if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End)) 1416TableRow row = ((TextPointer)This.Selection.End).Parent as TableRow; 1556ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\TextRange.cs (2)
330/// <see cref="ITextRange.End"/> 1280return (TextPointer)((ITextRange)this).End;
System\Windows\Documents\TextRangeBase.cs (14)
76else if (textPointer.CompareTo(thisRange.End) > 0) 283!TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Forward)) 288ITextPointer nextPosition = thisRange.End.CreatePointer(); 302(TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Backward) || 303TextPointerBase.IsAfterLastParagraph(thisRange.End))) 305ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward); 512ITextPointer endNavigator = thisRange.End.CreatePointer(); 1213(thisRange.Start.CompareTo(thisRange.End) == 0), 1258return TextRangeBase.GetTextInternal(start, thisRange.End); 1296((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1312thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1325textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1329thisRange.Start.DeleteContentToPosition(thisRange.End); 1625ITextPointer end = range.End.CreatePointer();
System\Windows\Documents\TextRangeSerialization.cs (8)
75!TextPointerBase.IsAfterLastParagraph(range.End) && 76range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 97WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 448ignoreHyperlink = IsHyperlinkInvalid(position, range.End); 467isPartialNonTypographic = IsPartialNonTypographic(position, range.End); 1670ITextPointer runningEnd = range.End.CreatePointer(); 1676runningEnd.MoveToPosition(range.End); 1919if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End))
System\windows\Documents\TextSelection.cs (12)
50SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 110SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 130SetActivePositions(/*anchorPosition:*/position, thisSelection.End); 300((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 304SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 432movingPosition = thisSelection.End; 1757This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1759This.End.GetNextInsertionPosition(LogicalDirection.Forward) == null); 1876else if (_anchorPosition.CompareTo(thisSelection.End) > 0) 1878_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection); 1909else if (movingPosition.CompareTo(thisSelection.End) == 0) 2289nextCharacterPosition = focusedTextSelection.End.CreatePointer(LogicalDirection.Backward);
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
39_oldEnd = _selection.End; 196newStart = _selection.End; 199newEnd = _selection.End;
System\Windows\Documents\TextStore.cs (18)
332selection[0].end = this.TextSelection.End.CharOffset; 680GetAdjustedSelection(range.Start, range.End, out start, out end); 705string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 743end.CompareTo(this.TextSelection.End) != 0) 757_previousCompositionEndOffset = this.TextSelection.End.Offset; 1485navigator = TextSelection.End.CreatePointer(); 1509string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1516TextSelection.Select(TextSelection.End, TextSelection.End); 1768(compositionStart.CompareTo(TextSelection.End) <= 0) && 1770(compositionEnd.CompareTo(TextSelection.End) >= 0)) 1781fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1806fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1989CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 2007this.TextSelection.Select(range.Start, range.End); 2011this.TextSelection.SetCaretToPosition(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 2014compositionUndoUnit.RecordRedoSelectionState(range.End, range.End);