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