1 implementation of End
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
335ITextPointer ITextRange.End
123 references to End
PresentationFramework (123)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
373end = textRange.End;
MS\Internal\Documents\DocumentViewerHelper.cs (6)
191findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 198(findResult.End.CompareTo(textSelection.End) == 0)) 203contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 211contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 232textSelection.Select(findResult.Start, findResult.End);
MS\Internal\Documents\TextBoxView.cs (1)
1907GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
System\Windows\Annotations\AnnotationHelper.cs (8)
606TextSelectionHelper.GetPointerPage(selection.End, out selEndPage); 686ITextPointer end = selection.End.CreatePointer(); 846((selection.End.CompareTo(anchor.Start) > 0) && (selection.End.CompareTo(anchor.End) < 0)) || 847((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 871((anchor.End.CompareTo(selection.End) == 0) && 872(selection.End.LogicalDirection == LogicalDirection.Backward))) 958ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\TextAdaptor.cs (1)
502return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
System\Windows\Controls\TextRangeAdaptor.cs (6)
653if (_end.CompareTo(textRange.End) != 0) 655_end = textRange.End.CreatePointer(); 858ITextPointer nextParagraphStart = textRange.End; 887previousParagraphEnd = textRange.End; 1114position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1777range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
System\Windows\Documents\ImmComposition.cs (7)
643endNavigator = _editor.Selection.End.CreatePointer(); 652caretNavigator = _editor.Selection.End.CreatePointer(); 753if (!_editor.Selection.End.HasValidLayout) 777rectCaret = view.GetRectangleFromTextPosition(_editor.Selection.End.CreatePointer(LogicalDirection.Backward)); 989composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1147end = range.End; 1466navigator = range.End.CreatePointer();
System\windows\Documents\TextEditor.cs (2)
1168return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1178return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
System\windows\Documents\TextEditorCharacters.cs (1)
149TextPointer endResetFormatPosition = (TextPointer)This.Selection.End;
System\windows\Documents\TextEditorCopyPaste.cs (3)
411This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true); 895TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.End); 899TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.End);
System\windows\Documents\TextEditorDragDrop.cs (2)
183_dragSourceTextRange = new TextRange(selection.Start, selection.End); 485TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.End, LogicalDirection.Forward))
System\windows\Documents\TextEditorSelection.cs (13)
138return new TextSegment(textRange.Start, textRange.End); 268if (!This.Selection.End.ValidateLayout()) 478movingPointer.MoveToPosition(paragraphRange.End); 488This.Selection.SetCaretToPosition(paragraphRange.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 559if (!This.Selection.End.ValidateLayout()) 1335movingPointer.MoveToPosition(paragraphRange.End); 1345ExtendSelectionAndBringIntoView(paragraphRange.End, This); 1661if (lineRange.End.CompareTo(This.Selection.End) < 0) 2072ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2133if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2136textEditor.Selection.SetCaretToPosition(textEditor.Selection.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2142ITextPointer wordBoundary = textEditor.Selection.End.CreatePointer(); 2360ITextPointer end = This.Selection.End;
System\windows\Documents\TextEditorSpelling.cs (4)
89position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 167caretPosition = This.Selection.End; 340isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 346isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
System\windows\Documents\TextEditorTyping.cs (11)
549ITextPointer position = This.Selection.End; 693This.Selection.Select(This.Selection.End, backspacePosition); 914ITextPointer wordBoundary = This.Selection.End.CreatePointer(); 948This.Selection.Select(textRange.Start, textRange.End); 992ITextRange textRange = new TextRange(wordBoundary, This.Selection.End); 1008This.Selection.Select(textRange.Start, textRange.End); 1013This.Selection.Select(textRange.Start, textRange.End); 1090This.Selection.SetCaretToPosition(This.Selection.End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1421if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End)) 1425TableRow row = ((TextPointer)This.Selection.End).Parent as TableRow; 1565ITextPointer caretPosition = This.Selection.End.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\TextRange.cs (2)
333/// <see cref="ITextRange.End"/> 1283return (TextPointer)((ITextRange)this).End;
System\Windows\Documents\TextRangeBase.cs (14)
79else if (textPointer.CompareTo(thisRange.End) > 0) 286!TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Forward)) 291ITextPointer nextPosition = thisRange.End.CreatePointer(); 305(TextPointerBase.IsNextToAnyBreak(thisRange.End, LogicalDirection.Backward) || 306TextPointerBase.IsAfterLastParagraph(thisRange.End))) 308ITextPointer newEnd = thisRange.End.GetNextInsertionPosition(LogicalDirection.Backward); 515ITextPointer endNavigator = thisRange.End.CreatePointer(); 1216(thisRange.Start.CompareTo(thisRange.End) == 0), 1261return TextRangeBase.GetTextInternal(start, thisRange.End); 1299((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1315thisRange.End.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text) 1328textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1332thisRange.Start.DeleteContentToPosition(thisRange.End); 1628ITextPointer end = range.End.CreatePointer();
System\Windows\Documents\TextRangeSerialization.cs (8)
81!TextPointerBase.IsAfterLastParagraph(range.End) && 82range.End.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.ElementStart; 103WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 454ignoreHyperlink = IsHyperlinkInvalid(position, range.End); 473isPartialNonTypographic = IsPartialNonTypographic(position, range.End); 1676ITextPointer runningEnd = range.End.CreatePointer(); 1682runningEnd.MoveToPosition(range.End); 1925if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End))
System\windows\Documents\TextSelection.cs (12)
53SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 113SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 133SetActivePositions(/*anchorPosition:*/position, thisSelection.End); 303((ITextSelection)this).SetCaretToPosition(((ITextRange)this).End, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 307SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 435movingPosition = thisSelection.End; 1760This.End.GetPointerContext(LogicalDirection.Forward) != TextPointerContext.Text && 1762This.End.GetNextInsertionPosition(LogicalDirection.Forward) == null); 1879else if (_anchorPosition.CompareTo(thisSelection.End) > 0) 1881_anchorPosition = thisSelection.End.GetFrozenPointer(_anchorPosition.LogicalDirection); 1912else if (movingPosition.CompareTo(thisSelection.End) == 0) 2292nextCharacterPosition = focusedTextSelection.End.CreatePointer(LogicalDirection.Backward);
System\windows\Documents\TextSelectionHighlightLayer.cs (3)
41_oldEnd = _selection.End; 198newStart = _selection.End; 201newEnd = _selection.End;
System\Windows\Documents\TextStore.cs (18)
343selection[0].end = this.TextSelection.End.CharOffset; 691GetAdjustedSelection(range.Start, range.End, out start, out end); 716string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 754end.CompareTo(this.TextSelection.End) != 0) 768_previousCompositionEndOffset = this.TextSelection.End.Offset; 1496navigator = TextSelection.End.CreatePointer(); 1520string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1527TextSelection.Select(TextSelection.End, TextSelection.End); 1779(compositionStart.CompareTo(TextSelection.End) <= 0) && 1781(compositionEnd.CompareTo(TextSelection.End) >= 0)) 1792fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1817fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 2000CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 2018this.TextSelection.Select(range.Start, range.End); 2022this.TextSelection.SetCaretToPosition(range.End, LogicalDirection.Backward, /*allowStopAtLineEnd:*/true, /*allowStopNearSpace:*/true); 2025compositionUndoUnit.RecordRedoSelectionState(range.End, range.End);