1 implementation of IsEmpty
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
338bool ITextRange.IsEmpty
67 references to IsEmpty
PresentationFramework (67)
MS\Internal\Documents\DocumentViewerHelper.cs (3)
110if (textSelection.IsEmpty) 227if ((findResult != null) && (!findResult.IsEmpty)) 392if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxView.cs (1)
1862if (!selection.IsEmpty)
System\Windows\Annotations\AnnotationHelper.cs (5)
365if (!selection.IsEmpty) 494if (selection.IsEmpty) 851if (!selection.IsEmpty) 918if (selection.IsEmpty) 1134return !selection.IsEmpty;
System\Windows\Controls\DocumentViewer.cs (1)
2133if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentReader.cs (1)
1560if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1519if ((findResult == null) || findResult.IsEmpty)
System\Windows\Controls\SinglePageViewer.cs (1)
1169if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\TextRangeAdaptor.cs (1)
1772if (findResult != null && !findResult.IsEmpty)
System\windows\Documents\CaretElement.cs (1)
455if (!_textEditor.Selection.IsEmpty)
System\Windows\Documents\Speller.cs (1)
675if (!_textEditor.Selection.IsEmpty)
System\windows\Documents\TextEditorCharacters.cs (3)
134if (This.Selection.IsEmpty) 292if (This.Selection.IsEmpty) 334if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorContextMenu.cs (2)
65(e.CursorLeft == KeyboardInvokedSentinel && This.Selection.IsEmpty)) 70else if ((This.Selection.IsEmpty || e.TargetElement is TextElement) &&
System\windows\Documents\TextEditorCopyPaste.cs (4)
276if (This.Selection != null && !This.Selection.IsEmpty) 324if (This.Selection != null && !This.Selection.IsEmpty) 496args.CanExecute = !This.Selection.IsEmpty; 541args.CanExecute = !This.Selection.IsEmpty;
System\windows\Documents\TextEditorDragDrop.cs (2)
238!_dragSourceTextRange.IsEmpty) 539!selection.IsEmpty && IsSelectionContainsDropPosition(selection, dropPosition))
System\windows\Documents\TextEditorMouse.cs (2)
100else if (clickCount == 2 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0 && This.Selection.IsEmpty) 685if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorSelection.cs (13)
259if (!This.Selection.IsEmpty) 272Invariant.Assert(This.Selection.IsEmpty); 351if (!This.Selection.IsEmpty) 361Invariant.Assert(This.Selection.IsEmpty); 445if (!This.Selection.IsEmpty) 500if (!This.Selection.IsEmpty) 550if (!This.Selection.IsEmpty) 670if (!This.Selection.IsEmpty) 2058if (textEditor.Selection.IsEmpty) 2117if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2137if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2332return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2393if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start))
System\windows\Documents\TextEditorSpelling.cs (2)
58LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 79if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorTyping.cs (11)
531if (This.Selection.IsEmpty) 590if (This.Selection.IsEmpty) 901if (This.Selection.IsEmpty) 919if (!textRange.IsEmpty) 960if (This.Selection.IsEmpty) 981if (!textRange.IsEmpty) 1087if (!This.Selection.IsEmpty) 1164else if (This.Selection.IsEmpty && 1337if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1369if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1399if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextRange.cs (2)
336/// <see cref="ITextRange.IsEmpty"/> 1282return ((ITextRange)this).IsEmpty;
System\Windows\Documents\TextRangeBase.cs (4)
205if (thisRange.IsEmpty && // 281if (overType && thisRange.IsEmpty && 300if (!thisRange.IsEmpty && 1292if (!thisRange.IsEmpty)
System\windows\Documents\TextSelection.cs (5)
652if (thisSelection.IsEmpty) 1876if (thisSelection.IsEmpty) 2156if (!currentTextSelection.IsEmpty) 2211if (currentTextSelection.IsEmpty) 2662if (!This.IsEmpty)
System\Windows\Documents\TextStore.cs (1)
1476if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty)