1 implementation of End
PresentationFramework (1)
src\Framework\System\Windows\Documents\TextRange.cs (1)
325ITextPointer ITextRange.End
123 references to End
PresentationFramework (123)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
383end = textRange.End;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (6)
206findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 213(findResult.End.CompareTo(textSelection.End) == 0)) 218contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 226contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 247textSelection.Select(findResult.Start, findResult.End);
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1905GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (8)
613TextSelectionHelper.GetPointerPage(selection.End, out selEndPage); 693ITextPointer end = selection.End.CreatePointer(); 853((selection.End.CompareTo(anchor.Start) > 0) && (selection.End.CompareTo(anchor.End) < 0)) || 854((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 878((anchor.End.CompareTo(selection.End) == 0) && 879(selection.End.LogicalDirection == LogicalDirection.Backward))) 966ITextRange anchor = new TextRange(selection.Start, selection.End);
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
483return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (6)
661if (_end.CompareTo(textRange.End) != 0) 663_end = textRange.End.CreatePointer(); 866ITextPointer nextParagraphStart = textRange.End; 895previousParagraphEnd = textRange.End; 1123position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1798range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
src\Framework\System\Windows\Documents\ImmComposition.cs (7)
739endNavigator = _editor.Selection.End.CreatePointer(); 748caretNavigator = _editor.Selection.End.CreatePointer(); 865if (!_editor.Selection.End.HasValidLayout) 889rectCaret = view.GetRectangleFromTextPosition(_editor.Selection.End.CreatePointer(LogicalDirection.Backward)); 1111composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1279end = range.End; 1613navigator = range.End.CreatePointer();
src\Framework\System\windows\Documents\TextEditor.cs (2)
1195return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1205return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
src\Framework\System\windows\Documents\TextEditorCharacters.cs (1)
151TextPointer endResetFormatPosition = (TextPointer)This.Selection.End;
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (3)
526This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true); 1071TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.End); 1075TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.End);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
194_dragSourceTextRange = new TextRange(selection.Start, selection.End); 497TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.End, LogicalDirection.Forward))
src\Framework\System\windows\Documents\TextEditorSelection.cs (13)
146return new TextSegment(textRange.Start, textRange.End); 276if (!This.Selection.End.ValidateLayout()) 486movingPointer.MoveToPosition(paragraphRange.End); 496This.Selection.SetCaretToPosition(paragraphRange.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 567if (!This.Selection.End.ValidateLayout()) 1344movingPointer.MoveToPosition(paragraphRange.End); 1354ExtendSelectionAndBringIntoView(paragraphRange.End, This); 1670if (lineRange.End.CompareTo(This.Selection.End) < 0) 2081ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2142if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2145textEditor.Selection.SetCaretToPosition(textEditor.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2151ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer(); 2369ITextPointer end = This.Selection.End;
src\Framework\System\windows\Documents\TextEditorSpelling.cs (4)
91position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 169caretPosition = This.Selection.End; 342isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 348isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
src\Framework\System\windows\Documents\TextEditorTyping.cs (11)
565ITextPointer position = This.Selection.End; 709This.Selection.Select(This.Selection.End, backspacePosition); 931ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 965This.Selection.Select(textRange.Start, textRange.End); 1009ITextRange textRange = new TextRange(wordBoundary, This.Selection.End); 1025This.Selection.Select(textRange.Start, textRange.End); 1030This.Selection.Select(textRange.Start, textRange.End); 1107This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1438if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End)) 1442TableRow row = ((TextPointer)This.Selection.End).Parent as TableRow; 1582ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
src\Framework\System\Windows\Documents\TextRange.cs (2)
323/// <see cref="ITextRange.End"/> 1280return (TextPointer)((ITextRange)this).End;
src\Framework\System\Windows\Documents\TextRangeBase.cs (14)
84else if (textPointer.CompareTo(thisRange.End) > 0) 297!TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Forward)) 302ITextPointer nextPosition = thisRange.End.CreatePointer(); 316(TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Backward) || 317TextPointerBase.IsAfterLastParagraph(thisRange.End))) 319ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward); 526ITextPointer endNavigator = thisRange.End.CreatePointer(); 1227(thisRange.Start.CompareTo(thisRange.End) == 0), 1272return TextRangeBase.GetTextInternal(start, thisRange.End); 1313((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1329thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1342textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1346thisRange.Start.DeleteContentToPosition(thisRange.End); 1656ITextPointer end = range.End.CreatePointer();
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (8)
83!TextPointerBase.IsAfterLastParagraph(range.End) && 84range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 105WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 460ignoreHyperlink = IsHyperlinkInvalid(position, range.End); 479isPartialNonTypographic = IsPartialNonTypographic(position, range.End); 1696ITextPointer runningEnd = range.End.CreatePointer(); 1702runningEnd.MoveToPosition(range.End); 1945if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End))
src\Framework\System\windows\Documents\TextSelection.cs (12)
56SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 116SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 136SetActivePositions(/*anchorPosition:*/position, thisSelection.End); 306((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 310SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 438movingPosition = thisSelection.End; 1768This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1770This.End.GetNextInsertionPosition(LogicalDirection.Forward) == null); 1887else if (_anchorPosition.CompareTo(thisSelection.End) > 0) 1889_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection); 1920else if (movingPosition.CompareTo(thisSelection.End) == 0) 2300nextCharacterPosition = focusedTextSelection.End.CreatePointer(LogicalDirection.Backward);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (3)
46_oldEnd = _selection.End; 204newStart = _selection.End; 207newEnd = _selection.End;
src\Framework\System\Windows\Documents\TextStore.cs (18)
250selection[0].end = this.TextSelection.End.CharOffset; 559GetAdjustedSelection(range.Start, range.End, out start, out end); 584string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 622end.CompareTo(this.TextSelection.End) != 0) 636_previousCompositionEndOffset = this.TextSelection.End.Offset; 1361navigator = TextSelection.End.CreatePointer(); 1385string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1392TextSelection.Select(TextSelection.End, TextSelection.End); 1650(compositionStart.CompareTo(TextSelection.End) <= 0) && 1652(compositionEnd.CompareTo(TextSelection.End) >= 0)) 1663fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1692fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1878CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 1896this.TextSelection.Select(range.Start, range.End); 1900this.TextSelection.SetCaretToPosition(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 1903compositionUndoUnit.RecordRedoSelectionState(range.End, range.End);