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