35 references to IsEmpty
PresentationFramework (35)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
205
if (!rtbRange.
IsEmpty
)
261
return textRange.
IsEmpty
;
System\windows\Documents\TextEditorLists.cs (2)
232
if (thisSelection.
IsEmpty
)
287
if (thisSelection.
IsEmpty
)
System\windows\Documents\TextEditorTyping.cs (1)
270
if (richTextBox.Selection.
IsEmpty
)
System\Windows\Documents\TextRange.cs (1)
1632
if (applyToParagraphs || this.
IsEmpty
|| TextRangeBase.IsParagraphBoundaryCrossed(this))
System\Windows\Documents\TextRangeEdit.cs (2)
283
if (TextSchema.IsFormattingType(firstInline.GetType()) && firstInline.TextRange.
IsEmpty
)
288
else if (TextSchema.IsFormattingType(secondInline.GetType()) && secondInline.TextRange.
IsEmpty
)
System\Windows\Documents\TextRangeEditLists.cs (4)
117
if (secondParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
121
else if (firstParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
258
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
268
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
System\Windows\Documents\TextRangeSerialization.cs (5)
153
if (!range.
IsEmpty
)
157
Invariant.Assert(range.
IsEmpty
, "range must be empty in the beginning of pasting");
1257
Invariant.Assert(range.
IsEmpty
, "range must be empty at this point - emptied by a caller");
1494
else if (mergingOnFragmentStart && firstParagraph.TextRange.
IsEmpty
)
1498
else if (!mergingOnFragmentStart && secondParagraph.TextRange.
IsEmpty
)
System\windows\Documents\TextSelection.cs (18)
149
if (!this.
IsEmpty
&& _textEditor.AcceptsRichContent)
170
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty))
297
if (this.
IsEmpty
)
347
else if (!this.
IsEmpty
&& (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty))
395
Invariant.Assert(this.
IsEmpty
|| _anchorPosition != null);
397
return this.
IsEmpty
? ((ITextSelection)this).Start : _anchorPosition;
411
if (this.
IsEmpty
)
538
Invariant.Assert(this.
IsEmpty
);
1037
Invariant.Assert(!this.
IsEmpty
);
1278
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty) &&
1311
if (this.
IsEmpty
)
1418
if (_springloadFormatting != null && this.
IsEmpty
)
1542
if (this.
IsEmpty
)
1555
while (!this.
IsEmpty
&& springloadFormattingValues.MoveNext())
1857
if (this.
IsEmpty
)
2096
if (!this.
IsEmpty
)
2125
bool caretVisible = this.
IsEmpty
&& (!_textEditor.IsReadOnly || _textEditor.IsReadOnlyCaretVisible);
2131
if (this.
IsEmpty
)