1 implementation of IsEmpty
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
345
bool ITextRange.
IsEmpty
67 references to IsEmpty
PresentationFramework (67)
MS\Internal\Documents\DocumentViewerHelper.cs (3)
111
if (textSelection.
IsEmpty
)
228
if ((findResult != null) && (!findResult.
IsEmpty
))
393
if ((textContainer.TextSelection.
IsEmpty
|| !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxView.cs (1)
1903
if (!selection.
IsEmpty
)
System\Windows\Annotations\AnnotationHelper.cs (5)
368
if (!selection.
IsEmpty
)
497
if (selection.
IsEmpty
)
854
if (!selection.
IsEmpty
)
921
if (selection.
IsEmpty
)
1137
return !selection.
IsEmpty
;
System\Windows\Controls\DocumentViewer.cs (1)
2180
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\FlowDocumentReader.cs (1)
1584
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1553
if ((findResult == null) || findResult.
IsEmpty
)
System\Windows\Controls\SinglePageViewer.cs (1)
1168
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\TextRangeAdaptor.cs (1)
1773
if (findResult != null && !findResult.
IsEmpty
)
System\windows\Documents\CaretElement.cs (1)
457
if (!_textEditor.Selection.
IsEmpty
)
System\Windows\Documents\Speller.cs (1)
679
if (!_textEditor.Selection.
IsEmpty
)
System\windows\Documents\TextEditorCharacters.cs (3)
135
if (This.Selection.
IsEmpty
)
293
if (This.Selection.
IsEmpty
)
335
if (This.Selection.
IsEmpty
)
System\windows\Documents\TextEditorContextMenu.cs (2)
66
(e.CursorLeft == KeyboardInvokedSentinel && This.Selection.
IsEmpty
))
71
else if ((This.Selection.
IsEmpty
|| e.TargetElement is TextElement) &&
System\windows\Documents\TextEditorCopyPaste.cs (4)
277
if (This.Selection != null && !This.Selection.
IsEmpty
)
325
if (This.Selection != null && !This.Selection.
IsEmpty
)
495
args.CanExecute = !This.Selection.
IsEmpty
;
540
args.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)
101
else if (clickCount == 2 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0 && This.Selection.
IsEmpty
)
689
if (This.Selection.
IsEmpty
)
System\windows\Documents\TextEditorSelection.cs (13)
260
if (!This.Selection.
IsEmpty
)
273
Invariant.Assert(This.Selection.
IsEmpty
);
352
if (!This.Selection.
IsEmpty
)
362
Invariant.Assert(This.Selection.
IsEmpty
);
446
if (!This.Selection.
IsEmpty
)
501
if (!This.Selection.
IsEmpty
)
551
if (!This.Selection.
IsEmpty
)
671
if (!This.Selection.
IsEmpty
)
2059
if (textEditor.Selection.
IsEmpty
)
2118
if (!textEditor.Selection.
IsEmpty
&& TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward))
2138
if (!textEditor.Selection.
IsEmpty
&& TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward))
2333
return This.Selection.
IsEmpty
? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward);
2394
if (This.Selection.
IsEmpty
&& TextPointerBase.IsAtRowEnd(This.Selection.Start))
System\windows\Documents\TextEditorSpelling.cs (2)
59
LogicalDirection direction = This.Selection.
IsEmpty
? This.Selection.Start.LogicalDirection : LogicalDirection.Forward;
80
if (This.Selection.
IsEmpty
)
System\windows\Documents\TextEditorTyping.cs (11)
541
if (This.Selection.
IsEmpty
)
600
if (This.Selection.
IsEmpty
)
911
if (This.Selection.
IsEmpty
)
929
if (!textRange.
IsEmpty
)
970
if (This.Selection.
IsEmpty
)
991
if (!textRange.
IsEmpty
)
1097
if (!This.Selection.
IsEmpty
)
1174
else if (This.Selection.
IsEmpty
&&
1350
if (This.AcceptsRichContent && (!This.Selection.
IsEmpty
|| TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) &&
1382
if (This.AcceptsRichContent && (!This.Selection.
IsEmpty
|| TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) &&
1412
if (This.Selection.
IsEmpty
&& TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextRange.cs (2)
343
/// <see cref="ITextRange.
IsEmpty
"/>
1291
return ((ITextRange)this).
IsEmpty
;
System\Windows\Documents\TextRangeBase.cs (4)
206
if (thisRange.
IsEmpty
&& //
282
if (overType && thisRange.
IsEmpty
&&
301
if (!thisRange.
IsEmpty
&&
1293
if (!thisRange.
IsEmpty
)
System\windows\Documents\TextSelection.cs (5)
665
if (thisSelection.
IsEmpty
)
1892
if (thisSelection.
IsEmpty
)
2172
if (!currentTextSelection.
IsEmpty
)
2227
if (currentTextSelection.
IsEmpty
)
2676
if (!This.
IsEmpty
)
System\Windows\Documents\TextStore.cs (1)
1480
if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.
IsEmpty
)