35 references to IsEmpty
PresentationFramework (35)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
204
if (!rtbRange.
IsEmpty
)
260
return textRange.
IsEmpty
;
System\windows\Documents\TextEditorLists.cs (2)
231
if (thisSelection.
IsEmpty
)
286
if (thisSelection.
IsEmpty
)
System\windows\Documents\TextEditorTyping.cs (1)
266
if (richTextBox.Selection.
IsEmpty
)
System\Windows\Documents\TextRange.cs (1)
1631
if (applyToParagraphs || this.
IsEmpty
|| TextRangeBase.IsParagraphBoundaryCrossed(this))
System\Windows\Documents\TextRangeEdit.cs (2)
282
if (TextSchema.IsFormattingType(firstInline.GetType()) && firstInline.TextRange.
IsEmpty
)
287
else if (TextSchema.IsFormattingType(secondInline.GetType()) && secondInline.TextRange.
IsEmpty
)
System\Windows\Documents\TextRangeEditLists.cs (4)
116
if (secondParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
120
else if (firstParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
257
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
267
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
System\Windows\Documents\TextRangeSerialization.cs (5)
152
if (!range.
IsEmpty
)
156
Invariant.Assert(range.
IsEmpty
, "range must be empty in the beginning of pasting");
1256
Invariant.Assert(range.
IsEmpty
, "range must be empty at this point - emptied by a caller");
1493
else if (mergingOnFragmentStart && firstParagraph.TextRange.
IsEmpty
)
1497
else if (!mergingOnFragmentStart && secondParagraph.TextRange.
IsEmpty
)
System\windows\Documents\TextSelection.cs (18)
148
if (!this.
IsEmpty
&& _textEditor.AcceptsRichContent)
169
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty))
284
if (this.
IsEmpty
)
334
else if (!this.
IsEmpty
&& (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty))
382
Invariant.Assert(this.
IsEmpty
|| _anchorPosition != null);
384
return this.
IsEmpty
? ((ITextSelection)this).Start : _anchorPosition;
398
if (this.
IsEmpty
)
525
Invariant.Assert(this.
IsEmpty
);
1021
Invariant.Assert(!this.
IsEmpty
);
1262
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty) &&
1295
if (this.
IsEmpty
)
1402
if (_springloadFormatting != null && this.
IsEmpty
)
1526
if (this.
IsEmpty
)
1539
while (!this.
IsEmpty
&& springloadFormattingValues.MoveNext())
1841
if (this.
IsEmpty
)
2080
if (!this.
IsEmpty
)
2109
bool caretVisible = this.
IsEmpty
&& (!_textEditor.IsReadOnly || _textEditor.IsReadOnlyCaretVisible);
2115
if (this.
IsEmpty
)