1 implementation of IsEmpty
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
348bool ITextRange.IsEmpty
67 references to IsEmpty
PresentationFramework (67)
MS\Internal\Documents\DocumentViewerHelper.cs (3)
113if (textSelection.IsEmpty) 230if ((findResult != null) && (!findResult.IsEmpty)) 395if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxView.cs (1)
1905if (!selection.IsEmpty)
System\Windows\Annotations\AnnotationHelper.cs (5)
380if (!selection.IsEmpty) 509if (selection.IsEmpty) 866if (!selection.IsEmpty) 933if (selection.IsEmpty) 1149return !selection.IsEmpty;
System\Windows\Controls\DocumentViewer.cs (1)
2192if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentReader.cs (1)
1589if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1556if ((findResult == null) || findResult.IsEmpty)
System\Windows\Controls\SinglePageViewer.cs (1)
1171if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\TextRangeAdaptor.cs (1)
1775if (findResult != null && !findResult.IsEmpty)
System\windows\Documents\CaretElement.cs (1)
460if (!_textEditor.Selection.IsEmpty)
System\Windows\Documents\Speller.cs (1)
696if (!_textEditor.Selection.IsEmpty)
System\windows\Documents\TextEditorCharacters.cs (3)
151if (This.Selection.IsEmpty) 309if (This.Selection.IsEmpty) 351if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorContextMenu.cs (2)
68(e.CursorLeft == KeyboardInvokedSentinel && This.Selection.IsEmpty)) 73else if ((This.Selection.IsEmpty || e.TargetElement is TextElement) &&
System\windows\Documents\TextEditorCopyPaste.cs (4)
290if (This.Selection != null && !This.Selection.IsEmpty) 338if (This.Selection != null && !This.Selection.IsEmpty) 508args.CanExecute = !This.Selection.IsEmpty; 553args.CanExecute = !This.Selection.IsEmpty;
System\windows\Documents\TextEditorDragDrop.cs (2)
256!_dragSourceTextRange.IsEmpty) 557!selection.IsEmpty && IsSelectionContainsDropPosition(selection, dropPosition))
System\windows\Documents\TextEditorMouse.cs (2)
115else if (clickCount == 2 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0 && This.Selection.IsEmpty) 703if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorSelection.cs (13)
275if (!This.Selection.IsEmpty) 288Invariant.Assert(This.Selection.IsEmpty); 367if (!This.Selection.IsEmpty) 377Invariant.Assert(This.Selection.IsEmpty); 461if (!This.Selection.IsEmpty) 516if (!This.Selection.IsEmpty) 566if (!This.Selection.IsEmpty) 686if (!This.Selection.IsEmpty) 2074if (textEditor.Selection.IsEmpty) 2133if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2153if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2348return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2409if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start))
System\windows\Documents\TextEditorSpelling.cs (2)
60LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 81if (This.Selection.IsEmpty)
System\windows\Documents\TextEditorTyping.cs (11)
550if (This.Selection.IsEmpty) 609if (This.Selection.IsEmpty) 920if (This.Selection.IsEmpty) 938if (!textRange.IsEmpty) 979if (This.Selection.IsEmpty) 1000if (!textRange.IsEmpty) 1106if (!This.Selection.IsEmpty) 1183else if (This.Selection.IsEmpty && 1359if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1391if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1421if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextRange.cs (2)
346/// <see cref="ITextRange.IsEmpty"/> 1294return ((ITextRange)this).IsEmpty;
System\Windows\Documents\TextRangeBase.cs (4)
209if (thisRange.IsEmpty && // 285if (overType && thisRange.IsEmpty && 304if (!thisRange.IsEmpty && 1296if (!thisRange.IsEmpty)
System\windows\Documents\TextSelection.cs (5)
668if (thisSelection.IsEmpty) 1895if (thisSelection.IsEmpty) 2175if (!currentTextSelection.IsEmpty) 2230if (currentTextSelection.IsEmpty) 2679if (!This.IsEmpty)
System\Windows\Documents\TextStore.cs (1)
1491if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty)