35 references to IsEmpty
PresentationFramework (35)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
216
if (!rtbRange.
IsEmpty
)
272
return textRange.
IsEmpty
;
src\Framework\System\windows\Documents\TextEditorLists.cs (2)
250
if (thisSelection.
IsEmpty
)
305
if (thisSelection.
IsEmpty
)
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
283
if (richTextBox.Selection.
IsEmpty
)
src\Framework\System\Windows\Documents\TextRange.cs (1)
1639
if (applyToParagraphs || this.
IsEmpty
|| TextRangeBase.IsParagraphBoundaryCrossed(this))
src\Framework\System\Windows\Documents\TextRangeEdit.cs (2)
287
if (TextSchema.IsFormattingType(firstInline.GetType()) && firstInline.TextRange.
IsEmpty
)
292
else if (TextSchema.IsFormattingType(secondInline.GetType()) && secondInline.TextRange.
IsEmpty
)
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (4)
121
if (secondParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
125
else if (firstParagraphOrBlockUIContainer.TextRange.
IsEmpty
)
262
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
272
if (range.
IsEmpty
&& TextPointerBase.IsAtPotentialParagraphPosition(range.Start))
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (5)
161
if (!range.
IsEmpty
)
165
Invariant.Assert(range.
IsEmpty
, "range must be empty in the beginning of pasting");
1287
Invariant.Assert(range.
IsEmpty
, "range must be empty at this point - emptied by a caller");
1524
else if (mergingOnFragmentStart && firstParagraph.TextRange.
IsEmpty
)
1528
else if (!mergingOnFragmentStart && secondParagraph.TextRange.
IsEmpty
)
src\Framework\System\windows\Documents\TextSelection.cs (18)
155
if (!this.
IsEmpty
&& _textEditor.AcceptsRichContent)
176
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty))
303
if (this.
IsEmpty
)
353
else if (!this.
IsEmpty
&& (bool)owner.GetValue(TextBoxBase.IsInactiveSelectionHighlightEnabledProperty))
401
Invariant.Assert(this.
IsEmpty
|| _anchorPosition != null);
403
return this.
IsEmpty
? ((ITextSelection)this).Start : _anchorPosition;
417
if (this.
IsEmpty
)
544
Invariant.Assert(this.
IsEmpty
);
1043
Invariant.Assert(!this.
IsEmpty
);
1284
if (this.
IsEmpty
&& TextSchema.IsCharacterProperty(formattingProperty) &&
1317
if (this.
IsEmpty
)
1424
if (_springloadFormatting != null && this.
IsEmpty
)
1548
if (this.
IsEmpty
)
1561
while (!this.
IsEmpty
&& springloadFormattingValues.MoveNext())
1868
if (this.
IsEmpty
)
2107
if (!this.
IsEmpty
)
2136
bool caretVisible = this.
IsEmpty
&& (!_textEditor.IsReadOnly || _textEditor.IsReadOnlyCaretVisible);
2142
if (this.
IsEmpty
)