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