1 implementation of IsEmpty
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
339
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)
1863
if (!selection.
IsEmpty
)
System\Windows\Annotations\AnnotationHelper.cs (5)
366
if (!selection.
IsEmpty
)
495
if (selection.
IsEmpty
)
852
if (!selection.
IsEmpty
)
919
if (selection.
IsEmpty
)
1135
return !selection.
IsEmpty
;
System\Windows\Controls\DocumentViewer.cs (1)
2134
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\FlowDocumentReader.cs (1)
1561
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1520
if ((findResult == null) || findResult.
IsEmpty
)
System\Windows\Controls\SinglePageViewer.cs (1)
1170
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\TextRangeAdaptor.cs (1)
1773
if (findResult != null && !findResult.
IsEmpty
)
System\windows\Documents\CaretElement.cs (1)
456
if (!_textEditor.Selection.
IsEmpty
)
System\Windows\Documents\Speller.cs (1)
676
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
)
497
args.CanExecute = !This.Selection.
IsEmpty
;
542
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
)
686
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)
532
if (This.Selection.
IsEmpty
)
591
if (This.Selection.
IsEmpty
)
902
if (This.Selection.
IsEmpty
)
920
if (!textRange.
IsEmpty
)
961
if (This.Selection.
IsEmpty
)
982
if (!textRange.
IsEmpty
)
1088
if (!This.Selection.
IsEmpty
)
1165
else if (This.Selection.
IsEmpty
&&
1338
if (This.AcceptsRichContent && (!This.Selection.
IsEmpty
|| TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) &&
1370
if (This.AcceptsRichContent && (!This.Selection.
IsEmpty
|| TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) &&
1400
if (This.Selection.
IsEmpty
&& TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextRange.cs (2)
337
/// <see cref="ITextRange.
IsEmpty
"/>
1283
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)
653
if (thisSelection.
IsEmpty
)
1877
if (thisSelection.
IsEmpty
)
2157
if (!currentTextSelection.
IsEmpty
)
2212
if (currentTextSelection.
IsEmpty
)
2663
if (!This.
IsEmpty
)
System\Windows\Documents\TextStore.cs (1)
1477
if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.
IsEmpty
)