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