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