1 implementation of IsEmpty
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
345bool 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)
1903if (!selection.IsEmpty)
System\Windows\Annotations\AnnotationHelper.cs (5)
368if (!selection.IsEmpty) 497if (selection.IsEmpty) 854if (!selection.IsEmpty) 921if (selection.IsEmpty) 1137return !selection.IsEmpty;
System\Windows\Controls\DocumentViewer.cs (1)
2180if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentReader.cs (1)
1584if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1553if ((findResult == null) || findResult.IsEmpty)
System\Windows\Controls\SinglePageViewer.cs (1)
1168if ((findResult != null) && (!findResult.IsEmpty))
System\Windows\Controls\TextRangeAdaptor.cs (1)
1773if (findResult != null && !findResult.IsEmpty)
System\windows\Documents\CaretElement.cs (1)
457if (!_textEditor.Selection.IsEmpty)
System\Windows\Documents\Speller.cs (1)
679if (!_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) 495args.CanExecute = !This.Selection.IsEmpty; 540args.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) 689if (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)
541if (This.Selection.IsEmpty) 600if (This.Selection.IsEmpty) 911if (This.Selection.IsEmpty) 929if (!textRange.IsEmpty) 970if (This.Selection.IsEmpty) 991if (!textRange.IsEmpty) 1097if (!This.Selection.IsEmpty) 1174else if (This.Selection.IsEmpty && 1350if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1382if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1412if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextRange.cs (2)
343/// <see cref="ITextRange.IsEmpty"/> 1291return ((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)
665if (thisSelection.IsEmpty) 1892if (thisSelection.IsEmpty) 2172if (!currentTextSelection.IsEmpty) 2227if (currentTextSelection.IsEmpty) 2676if (!This.IsEmpty)
System\Windows\Documents\TextStore.cs (1)
1480if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty)