1 implementation of IsEmpty
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
339bool ITextRange.IsEmpty
67 references to IsEmpty
PresentationFramework (67)
MS\Internal\Documents\DocumentViewerHelper.cs (3)
111if (textSelection.IsEmpty) 228if ((findResult != null) && (!findResult.IsEmpty)) 393if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxView.cs (1)
1863if (!selection.IsEmpty)
System\Windows\Annotations\AnnotationHelper.cs (5)
366if (!selection.IsEmpty) 495if (selection.IsEmpty) 852if (!selection.IsEmpty) 919if (selection.IsEmpty) 1135return !selection.IsEmpty;
System\Windows\Controls\DocumentViewer.cs (1)
2134if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentReader.cs (1)
1561if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1520if ((findResult == null) || findResult.IsEmpty)
System\Windows\Controls\SinglePageViewer.cs (1)
1170if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\TextRangeAdaptor.cs (1)
1773if (findResult != null && !findResult.IsEmpty)
System\windows\Documents\CaretElement.cs (1)
456if (!_textEditor.Selection.IsEmpty)
System\Windows\Documents\Speller.cs (1)
676if (!_textEditor.Selection.IsEmpty)
System\windows\Documents\TextEditorCharacters.cs (3)
135if (This.Selection.IsEmpty) 293if (This.Selection.IsEmpty) 335if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorContextMenu.cs (2)
66(e.CursorLeft == KeyboardInvokedSentinel && This.Selection.IsEmpty)) 71else if ((This.Selection.IsEmpty || e.TargetElement is TextElement) &&
System\windows\Documents\TextEditorCopyPaste.cs (4)
277if (This.Selection != null && !This.Selection.IsEmpty) 325if (This.Selection != null && !This.Selection.IsEmpty) 497args.CanExecute = !This.Selection.IsEmpty; 542args.CanExecute = !This.Selection.IsEmpty;
System\windows\Documents\TextEditorDragDrop.cs (2)
239!_dragSourceTextRange.IsEmpty) 540!selection.IsEmpty && IsSelectionContainsDropPosition(selection, dropPosition))
System\windows\Documents\TextEditorMouse.cs (2)
101else if (clickCount == 2 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0 && This.Selection.IsEmpty) 686if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorSelection.cs (13)
260if (!This.Selection.IsEmpty) 273Invariant.Assert(This.Selection.IsEmpty); 352if (!This.Selection.IsEmpty) 362Invariant.Assert(This.Selection.IsEmpty); 446if (!This.Selection.IsEmpty) 501if (!This.Selection.IsEmpty) 551if (!This.Selection.IsEmpty) 671if (!This.Selection.IsEmpty) 2059if (textEditor.Selection.IsEmpty) 2118if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2138if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2333return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2394if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start))
System\windows\Documents\TextEditorSpelling.cs (2)
59LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 80if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorTyping.cs (11)
532if (This.Selection.IsEmpty) 591if (This.Selection.IsEmpty) 902if (This.Selection.IsEmpty) 920if (!textRange.IsEmpty) 961if (This.Selection.IsEmpty) 982if (!textRange.IsEmpty) 1088if (!This.Selection.IsEmpty) 1165else if (This.Selection.IsEmpty && 1338if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1370if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1400if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextRange.cs (2)
337/// <see cref="ITextRange.IsEmpty"/> 1283return ((ITextRange)this).IsEmpty;
System\Windows\Documents\TextRangeBase.cs (4)
206if (thisRange.IsEmpty && // 282if (overType && thisRange.IsEmpty && 301if (!thisRange.IsEmpty && 1293if (!thisRange.IsEmpty)
System\windows\Documents\TextSelection.cs (5)
653if (thisSelection.IsEmpty) 1877if (thisSelection.IsEmpty) 2157if (!currentTextSelection.IsEmpty) 2212if (currentTextSelection.IsEmpty) 2663if (!This.IsEmpty)
System\Windows\Documents\TextStore.cs (1)
1477if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty)