1 implementation of IsEmpty
PresentationFramework (1)
src\Framework\System\Windows\Documents\TextRange.cs (1)
338bool ITextRange.IsEmpty
67 references to IsEmpty
PresentationFramework (67)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (3)
128if (textSelection.IsEmpty) 245if ((findResult != null) && (!findResult.IsEmpty)) 415if ((textContainer.TextSelection.IsEmpty || !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1903if (!selection.IsEmpty)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (5)
386if (!selection.IsEmpty) 516if (selection.IsEmpty) 873if (!selection.IsEmpty) 941if (selection.IsEmpty) 1160return !selection.IsEmpty;
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2247if ((findResult != null) && (!findResult.IsEmpty))
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
1595if ((findResult != null) && (!findResult.IsEmpty))
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1564if ((findResult == null) || findResult.IsEmpty)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
1178if ((findResult != null) && (!findResult.IsEmpty))
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1796if (findResult != null && !findResult.IsEmpty)
src\Framework\System\windows\Documents\CaretElement.cs (1)
464if (!_textEditor.Selection.IsEmpty)
src\Framework\System\Windows\Documents\Speller.cs (1)
750if (!_textEditor.Selection.IsEmpty)
src\Framework\System\windows\Documents\TextEditorCharacters.cs (3)
153if (This.Selection.IsEmpty) 311if (This.Selection.IsEmpty) 353if (This.Selection.IsEmpty)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
77(e.CursorLeft == KeyboardInvokedSentinel && This.Selection.IsEmpty)) 82else if ((This.Selection.IsEmpty || e.TargetElement is TextElement) &&
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (4)
372if (This.Selection != null && !This.Selection.IsEmpty) 443if (This.Selection != null && !This.Selection.IsEmpty) 623args.CanExecute = !This.Selection.IsEmpty; 675args.CanExecute = !This.Selection.IsEmpty;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
268!_dragSourceTextRange.IsEmpty) 569!selection.IsEmpty && IsSelectionContainsDropPosition(selection, dropPosition))
src\Framework\System\windows\Documents\TextEditorMouse.cs (2)
117else if (clickCount == 2 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0 && This.Selection.IsEmpty) 704if (This.Selection.IsEmpty)
src\Framework\System\windows\Documents\TextEditorSelection.cs (13)
283if (!This.Selection.IsEmpty) 296Invariant.Assert(This.Selection.IsEmpty); 375if (!This.Selection.IsEmpty) 385Invariant.Assert(This.Selection.IsEmpty); 469if (!This.Selection.IsEmpty) 524if (!This.Selection.IsEmpty) 574if (!This.Selection.IsEmpty) 695if (!This.Selection.IsEmpty) 2083if (textEditor.Selection.IsEmpty) 2142if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward)) 2162if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2357return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2418if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start))
src\Framework\System\windows\Documents\TextEditorSpelling.cs (2)
62LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 83if (This.Selection.IsEmpty)
src\Framework\System\windows\Documents\TextEditorTyping.cs (11)
566if (This.Selection.IsEmpty) 625if (This.Selection.IsEmpty) 937if (This.Selection.IsEmpty) 955if (!textRange.IsEmpty) 996if (This.Selection.IsEmpty) 1017if (!textRange.IsEmpty) 1123if (!This.Selection.IsEmpty) 1200else if (This.Selection.IsEmpty && 1376if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1408if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1438if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.End))
src\Framework\System\Windows\Documents\TextRange.cs (2)
336/// <see cref="ITextRange.IsEmpty"/> 1291return ((ITextRange)this).IsEmpty;
src\Framework\System\Windows\Documents\TextRangeBase.cs (4)
217if (thisRange.IsEmpty && // 296if (overType && thisRange.IsEmpty && 315if (!thisRange.IsEmpty && 1310if (!thisRange.IsEmpty)
src\Framework\System\windows\Documents\TextSelection.cs (5)
671if (thisSelection.IsEmpty) 1903if (thisSelection.IsEmpty) 2183if (!currentTextSelection.IsEmpty) 2238if (currentTextSelection.IsEmpty) 2692if (!This.IsEmpty)
src\Framework\System\Windows\Documents\TextStore.cs (1)
1356if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.IsEmpty)