2 implementations of IsValid
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1277bool ITextView.IsValid
MS\Internal\Documents\TextViewBase.cs (1)
649bool ITextView.IsValid
61 references to IsValid
PresentationFramework (61)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
305if (textView != null && textView.IsValid && TextDocumentView.Contains(pointer, textView.TextSegments))
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
135if (textView != null && textView.IsValid)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
944if (!view.IsValid || !parentView.IsValid)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
939if (textView == null || !textView.IsValid)
MS\Internal\Documents\ContentHostHelper.cs (1)
115if (textView != null && textView.IsValid)
MS\Internal\Documents\DocumentGrid.cs (1)
2678TextView.IsValid &&
MS\Internal\Documents\DocumentPageTextView.cs (2)
488/// <see cref="ITextView.IsValid"/> 502return (_pageTextView != null && _pageTextView.IsValid);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
113if (textView != null && !textView.IsValid) 134if (masterPageTextView != null && masterPageTextView.IsValid) 413if (contextMenuPosition != null && textView != null && textView.IsValid && textView.Contains(contextMenuPosition))
MS\Internal\Documents\MultiPageTextView.cs (1)
638/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextBoxView.cs (1)
1275/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextDocumentView.cs (1)
574/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextParagraphView.cs (1)
465/// <see cref="ITextView.IsValid"/>
MS\Internal\Documents\TextViewBase.cs (2)
298/// <see cref="ITextView.IsValid"/> 647/// <see cref="ITextView.IsValid"/>
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
224if (!textView.IsValid) 230if (textView != null && !textView.IsValid)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (3)
51if (textView == null || !textView.IsValid) 97if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 151if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd)))
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
847if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer) 908if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo)
System\Windows\Controls\PasswordTextNavigator.cs (1)
624return (_container.TextView != null && _container.TextView.IsValid && _container.TextView.Contains(this));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
772if (textView != null && textView.IsValid)
System\Windows\Controls\TextAdaptor.cs (2)
175if (!textView.IsValid) 181if (textView != null && !textView.IsValid)
System\Windows\Controls\TextRangeAdaptor.cs (6)
597if (textView != null && textView.IsValid) 666if (textView != null && textView.IsValid) 783if (textView != null && textView.IsValid && textView.Contains(position)) 906if (textView != null && textView.IsValid && textView.Contains(position)) 1085if (textView != null && textView.IsValid && textView.Contains(position)) 1129if (textView != null && textView.IsValid && textView.Contains(position))
System\windows\Documents\CaretElement.cs (1)
440if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.TextView != null && _textEditor.TextView.IsValid)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
345((ITextPointer)this).TextContainer.TextView.IsValid &&
System\Windows\Documents\DocumentSequenceTextView.cs (3)
463return ((ITextView)this).IsValid; 474return ((ITextView)this).IsValid; 525return ChildTextView.IsValid;
System\Windows\Documents\FixedTextPointer.cs (1)
553((ITextPointer)this).TextContainer.TextView.IsValid &&
System\windows\Documents\TextEditor.cs (1)
1468this.TextView != null && this.TextView.IsValid && TextEditorSelection.IsPaginated(this.TextView))
System\windows\Documents\TextEditorDragDrop.cs (3)
124if (this.TextView.IsValid) 403if (_textEditor.TextView.IsValid) 439Invariant.Assert(_textEditor.TextView.IsValid); // caller must guarantee this.
System\windows\Documents\TextEditorMouse.cs (6)
131interactiveArea = textEditor.TextView.IsValid; 209if (!This.TextView.IsValid) 215if (This.TextView == null || !This.TextView.IsValid) 284if (This.TextView == null || !This.TextView.IsValid) 326if (This.TextView == null || !This.TextView.IsValid) 673Invariant.Assert(This.TextView != null && This.TextView.IsValid);
System\windows\Documents\TextEditorSelection.cs (1)
2381textEditor.TextView != null && textEditor.TextView.IsValid && !textEditor.TextView.Contains(position) && IsPaginated(textEditor.TextView))
System\windows\Documents\TextEditorTyping.cs (1)
1886if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
System\Windows\Documents\TextPointer.cs (1)
1517return _tree.TextView == null ? false : _tree.TextView.IsValid && _tree.TextView.Contains(this);
System\windows\Documents\TextSelection.cs (6)
254if (this.TextView != null && this.TextView.IsValid && 670if (this.TextView == null || !this.TextView.IsValid) 1600if (_textEditor.TextView != null && _textEditor.TextView.IsValid) 1947Invariant.Assert(this.TextView.IsValid); // We just checked RenderScope. We'll use TextView below 2105if (_textEditor.TextView == null || !_textEditor.TextView.IsValid) 2158if (this.TextView.IsValid && !this.TextView.RendersOwnSelection)
System\Windows\Documents\TextStore.cs (1)
1053if (!this.TextView.IsValid)