1 implementation of IsEmpty
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
348
bool ITextRange.
IsEmpty
67 references to IsEmpty
PresentationFramework (67)
MS\Internal\Documents\DocumentViewerHelper.cs (3)
113
if (textSelection.
IsEmpty
)
230
if ((findResult != null) && (!findResult.
IsEmpty
))
395
if ((textContainer.TextSelection.
IsEmpty
|| !textContainer.TextSelection.TextEditor.UiScope.IsFocused) &&
MS\Internal\Documents\TextBoxView.cs (1)
1905
if (!selection.
IsEmpty
)
System\Windows\Annotations\AnnotationHelper.cs (5)
380
if (!selection.
IsEmpty
)
509
if (selection.
IsEmpty
)
866
if (!selection.
IsEmpty
)
933
if (selection.
IsEmpty
)
1149
return !selection.
IsEmpty
;
System\Windows\Controls\DocumentViewer.cs (1)
2192
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\FlowDocumentReader.cs (1)
1589
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1556
if ((findResult == null) || findResult.
IsEmpty
)
System\Windows\Controls\SinglePageViewer.cs (1)
1171
if ((findResult != null) && (!findResult.
IsEmpty
))
System\Windows\Controls\TextRangeAdaptor.cs (1)
1775
if (findResult != null && !findResult.
IsEmpty
)
System\windows\Documents\CaretElement.cs (1)
460
if (!_textEditor.Selection.
IsEmpty
)
System\Windows\Documents\Speller.cs (1)
696
if (!_textEditor.Selection.
IsEmpty
)
System\windows\Documents\TextEditorCharacters.cs (3)
151
if (This.Selection.
IsEmpty
)
309
if (This.Selection.
IsEmpty
)
351
if (This.Selection.
IsEmpty
)
System\windows\Documents\TextEditorContextMenu.cs (2)
68
(e.CursorLeft == KeyboardInvokedSentinel && This.Selection.
IsEmpty
))
73
else if ((This.Selection.
IsEmpty
|| e.TargetElement is TextElement) &&
System\windows\Documents\TextEditorCopyPaste.cs (4)
290
if (This.Selection != null && !This.Selection.
IsEmpty
)
338
if (This.Selection != null && !This.Selection.
IsEmpty
)
508
args.CanExecute = !This.Selection.
IsEmpty
;
553
args.CanExecute = !This.Selection.
IsEmpty
;
System\windows\Documents\TextEditorDragDrop.cs (2)
256
!_dragSourceTextRange.
IsEmpty
)
557
!selection.
IsEmpty
&& IsSelectionContainsDropPosition(selection, dropPosition))
System\windows\Documents\TextEditorMouse.cs (2)
115
else if (clickCount == 2 && (Keyboard.Modifiers & ModifierKeys.Shift) == 0 && This.Selection.
IsEmpty
)
703
if (This.Selection.
IsEmpty
)
System\windows\Documents\TextEditorSelection.cs (13)
275
if (!This.Selection.
IsEmpty
)
288
Invariant.Assert(This.Selection.
IsEmpty
);
367
if (!This.Selection.
IsEmpty
)
377
Invariant.Assert(This.Selection.
IsEmpty
);
461
if (!This.Selection.
IsEmpty
)
516
if (!This.Selection.
IsEmpty
)
566
if (!This.Selection.
IsEmpty
)
686
if (!This.Selection.
IsEmpty
)
2074
if (textEditor.Selection.
IsEmpty
)
2133
if (!textEditor.Selection.
IsEmpty
&& TextPointerBase.IsAtWordBoundary(textEditor.Selection.End, LogicalDirection.Forward))
2153
if (!textEditor.Selection.
IsEmpty
&& TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward))
2348
return This.Selection.
IsEmpty
? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward);
2409
if (This.Selection.
IsEmpty
&& TextPointerBase.IsAtRowEnd(This.Selection.Start))
System\windows\Documents\TextEditorSpelling.cs (2)
60
LogicalDirection direction = This.Selection.
IsEmpty
? This.Selection.Start.LogicalDirection : LogicalDirection.Forward;
81
if (This.Selection.
IsEmpty
)
System\windows\Documents\TextEditorTyping.cs (11)
550
if (This.Selection.
IsEmpty
)
609
if (This.Selection.
IsEmpty
)
920
if (This.Selection.
IsEmpty
)
938
if (!textRange.
IsEmpty
)
979
if (This.Selection.
IsEmpty
)
1000
if (!textRange.
IsEmpty
)
1106
if (!This.Selection.
IsEmpty
)
1183
else if (This.Selection.
IsEmpty
&&
1359
if (This.AcceptsRichContent && (!This.Selection.
IsEmpty
|| TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) &&
1391
if (This.AcceptsRichContent && (!This.Selection.
IsEmpty
|| TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) &&
1421
if (This.Selection.
IsEmpty
&& TextPointerBase.IsAtRowEnd(This.Selection.End))
System\Windows\Documents\TextRange.cs (2)
346
/// <see cref="ITextRange.
IsEmpty
"/>
1294
return ((ITextRange)this).
IsEmpty
;
System\Windows\Documents\TextRangeBase.cs (4)
209
if (thisRange.
IsEmpty
&& //
285
if (overType && thisRange.
IsEmpty
&&
304
if (!thisRange.
IsEmpty
&&
1296
if (!thisRange.
IsEmpty
)
System\windows\Documents\TextSelection.cs (5)
668
if (thisSelection.
IsEmpty
)
1895
if (thisSelection.
IsEmpty
)
2175
if (!currentTextSelection.
IsEmpty
)
2230
if (currentTextSelection.
IsEmpty
)
2679
if (!This.
IsEmpty
)
System\Windows\Documents\TextStore.cs (1)
1491
if (TextEditor.AllowOvertype && TextEditor._OvertypeMode && TextSelection.
IsEmpty
)