35 references to IsEmpty
PresentationFramework (35)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
210
if (!rtbRange.
IsEmpty
)
266
return textRange.
IsEmpty
;
System\windows\Documents\TextEditorLists.cs (2)
248
if (thisSelection.
IsEmpty
)
303
if (thisSelection.
IsEmpty
)
System\windows\Documents\TextEditorTyping.cs (1)
279
if (richTextBox.Selection.
IsEmpty
)
System\Windows\Documents\TextRange.cs (1)
1642
if (applyToParagraphs || this.
IsEmpty
|| TextRangeBase.IsParagraphBoundaryCrossed(this))
System\Windows\Documents\TextRangeEdit.cs (2)
285
if (TextSchema.IsFormattingType(firstInline.GetType()) && firstInline.TextRange.
IsEmpty
)
290
else if (TextSchema.IsFormattingType(secondInline.GetType()) && secondInline.TextRange.
IsEmpty
)
System\Windows\Documents\TextRangeEditLists.cs (4)
119
if (secondParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
123
else if (firstParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
260
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
270
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
System\Windows\Documents\TextRangeSerialization.cs (5)
159
if (!range.
IsEmpty
)
163
Invariant.Assert(range.
IsEmpty
, "range must be empty in the beginning of pasting");
1263
Invariant.Assert(range.
IsEmpty
, "range must be empty at this point - emptied by a caller");
1500
else if (mergingOnFragmentStart && firstParagraph.TextRange.
IsEmpty
)
1504
else if (!mergingOnFragmentStart && secondParagraph.TextRange.
IsEmpty
)
System\windows\Documents\TextSelection.cs (18)
152
if (!this.
IsEmpty
&& _textEditor.AcceptsRichContent)
173
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty))
300
if (this.
IsEmpty
)
350
else if (!this.
IsEmpty
&& (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty))
398
Invariant.Assert(this.
IsEmpty
|| _anchorPosition != null);
400
return this.
IsEmpty
? ((ITextSelection)this).Start : _anchorPosition;
414
if (this.
IsEmpty
)
541
Invariant.Assert(this.
IsEmpty
);
1040
Invariant.Assert(!this.
IsEmpty
);
1281
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty) &&
1314
if (this.
IsEmpty
)
1421
if (_springloadFormatting != null && this.
IsEmpty
)
1545
if (this.
IsEmpty
)
1558
while (!this.
IsEmpty
&& springloadFormattingValues.MoveNext())
1860
if (this.
IsEmpty
)
2099
if (!this.
IsEmpty
)
2128
bool caretVisible = this.
IsEmpty
&& (!_textEditor.IsReadOnly || _textEditor.IsReadOnlyCaretVisible);
2134
if (this.
IsEmpty
)