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