2 implementations of IsValid
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1277bool ITextView.IsValid
MS\Internal\Documents\TextViewBase.cs (1)
651bool ITextView.IsValid
61 references to IsValid
PresentationFramework (61)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
314if (textView != null && textView.IsValid && TextDocumentView.Contains(pointer, textView.TextSegments))
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
147if (textView != null && textView.IsValid)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
951if (!view.IsValid || !parentView.IsValid)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
939if (textView == null || !textView.IsValid)
MS\Internal\Documents\ContentHostHelper.cs (1)
118if (textView != null && textView.IsValid)
MS\Internal\Documents\DocumentGrid.cs (1)
2680TextView.IsValid &&
MS\Internal\Documents\DocumentPageTextView.cs (2)
490/// <see cref="ITextView.IsValid"/> 504return (_pageTextView != null && _pageTextView.IsValid);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
115if (textView != null && !textView.IsValid) 136if (masterPageTextView != null && masterPageTextView.IsValid) 415if (contextMenuPosition != null && textView != null && textView.IsValid && textView.Contains(contextMenuPosition))
MS\Internal\Documents\MultiPageTextView.cs (1)
640/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextBoxView.cs (1)
1275/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextDocumentView.cs (1)
577/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextParagraphView.cs (1)
471/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextViewBase.cs (2)
300/// <see cref="ITextView.IsValid"/> 649/// <see cref="ITextView.IsValid"/>
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
226if (!textView.IsValid) 232if (textView != null && !textView.IsValid)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (3)
55if (textView == null || !textView.IsValid) 101if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 155if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd)))
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
848if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer) 909if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo)
System\Windows\Controls\PasswordTextNavigator.cs (1)
628return (_container.TextView != null && _container.TextView.IsValid && _container.TextView.Contains(this));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
788if (textView != null && textView.IsValid)
System\Windows\Controls\TextAdaptor.cs (2)
178if (!textView.IsValid) 184if (textView != null && !textView.IsValid)
System\Windows\Controls\TextRangeAdaptor.cs (6)
599if (textView != null && textView.IsValid) 668if (textView != null && textView.IsValid) 785if (textView != null && textView.IsValid && textView.Contains(position)) 908if (textView != null && textView.IsValid && textView.Contains(position)) 1087if (textView != null && textView.IsValid && textView.Contains(position)) 1131if (textView != null && textView.IsValid && textView.Contains(position))
System\windows\Documents\CaretElement.cs (1)
444if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.TextView != null && _textEditor.TextView.IsValid)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
353((ITextPointer)this).TextContainer.TextView.IsValid &&
System\Windows\Documents\DocumentSequenceTextView.cs (3)
471return ((ITextView)this).IsValid; 482return ((ITextView)this).IsValid; 533return ChildTextView.IsValid;
System\Windows\Documents\FixedTextPointer.cs (1)
560((ITextPointer)this).TextContainer.TextView.IsValid &&
System\windows\Documents\TextEditor.cs (1)
1477this.TextView != null && this.TextView.IsValid && TextEditorSelection.IsPaginated(this.TextView))
System\windows\Documents\TextEditorDragDrop.cs (3)
141if (this.TextView.IsValid) 420if (_textEditor.TextView.IsValid) 456Invariant.Assert(_textEditor.TextView.IsValid); // caller must guarantee this.
System\windows\Documents\TextEditorMouse.cs (6)
145interactiveArea = textEditor.TextView.IsValid; 223if (!This.TextView.IsValid) 229if (This.TextView == null || !This.TextView.IsValid) 298if (This.TextView == null || !This.TextView.IsValid) 340if (This.TextView == null || !This.TextView.IsValid) 687Invariant.Assert(This.TextView != null && This.TextView.IsValid);
System\windows\Documents\TextEditorSelection.cs (1)
2396textEditor.TextView != null && textEditor.TextView.IsValid && !textEditor.TextView.Contains(position) && IsPaginated(textEditor.TextView))
System\windows\Documents\TextEditorTyping.cs (1)
1895if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
System\Windows\Documents\TextPointer.cs (1)
1522return _tree.TextView == null ? false : _tree.TextView.IsValid && _tree.TextView.Contains(this);
System\windows\Documents\TextSelection.cs (6)
257if (this.TextView != null && this.TextView.IsValid && 673if (this.TextView == null || !this.TextView.IsValid) 1603if (_textEditor.TextView != null && _textEditor.TextView.IsValid) 1950Invariant.Assert(this.TextView.IsValid); // We just checked RenderScope. We'll use TextView below 2108if (_textEditor.TextView == null || !_textEditor.TextView.IsValid) 2161if (this.TextView.IsValid && !this.TextView.RendersOwnSelection)
System\Windows\Documents\TextStore.cs (1)
1064if (!this.TextView.IsValid)