2 implementations of IsValid
PresentationFramework (2)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1279bool ITextView.IsValid
src\Framework\MS\Internal\Documents\TextViewBase.cs (1)
653bool ITextView.IsValid
61 references to IsValid
PresentationFramework (61)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
324if (textView != null && textView.IsValid && TextDocumentView.Contains(pointer, textView.TextSegments))
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
150if (textView != null && textView.IsValid)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
968if (!view.IsValid || !parentView.IsValid)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
961if (textView == null || !textView.IsValid)
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
120if (textView != null && textView.IsValid)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
2723TextView.IsValid &&
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (2)
492/// <see cref="ITextView.IsValid"/> 506return (_pageTextView != null && _pageTextView.IsValid);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (3)
130if (textView != null && !textView.IsValid) 151if (masterPageTextView != null && masterPageTextView.IsValid) 435if (contextMenuPosition != null && textView != null && textView.IsValid && textView.Contains(contextMenuPosition))
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
645/// <see cref="ITextView.IsValid"/>
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1277/// <see cref="ITextView.IsValid"/>
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
584/// <see cref="ITextView.IsValid"/>
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
496/// <see cref="ITextView.IsValid"/>
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
302/// <see cref="ITextView.IsValid"/> 651/// <see cref="ITextView.IsValid"/>
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
240if (!textView.IsValid) 246if (textView != null && !textView.IsValid)
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (3)
63if (textView == null || !textView.IsValid) 115if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 169if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd)))
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
854if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer) 915if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
630return (_container.TextView != null && _container.TextView.IsValid && _container.TextView.Contains(this));
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
800if (textView != null && textView.IsValid)
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
186if (!textView.IsValid) 192if (textView != null && !textView.IsValid)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (6)
607if (textView != null && textView.IsValid) 676if (textView != null && textView.IsValid) 793if (textView != null && textView.IsValid && textView.Contains(position)) 916if (textView != null && textView.IsValid && textView.Contains(position)) 1096if (textView != null && textView.IsValid && textView.Contains(position)) 1140if (textView != null && textView.IsValid && textView.Contains(position))
src\Framework\System\windows\Documents\CaretElement.cs (1)
448if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.TextView != null && _textEditor.TextView.IsValid)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
357((ITextPointer)this).TextContainer.TextView.IsValid &&
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (3)
486return ((ITextView)this).IsValid; 497return ((ITextView)this).IsValid; 548return ChildTextView.IsValid;
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
578((ITextPointer)this).TextContainer.TextView.IsValid &&
src\Framework\System\windows\Documents\TextEditor.cs (1)
1505this.TextView != null && this.TextView.IsValid && TextEditorSelection.IsPaginated(this.TextView))
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (3)
144if (this.TextView.IsValid) 432if (_textEditor.TextView.IsValid) 468Invariant.Assert(_textEditor.TextView.IsValid); // caller must guarantee this.
src\Framework\System\windows\Documents\TextEditorMouse.cs (6)
147interactiveArea = textEditor.TextView.IsValid; 225if (!This.TextView.IsValid) 231if (This.TextView == null || !This.TextView.IsValid) 300if (This.TextView == null || !This.TextView.IsValid) 342if (This.TextView == null || !This.TextView.IsValid) 688Invariant.Assert(This.TextView != null && This.TextView.IsValid);
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
2405textEditor.TextView != null && textEditor.TextView.IsValid && !textEditor.TextView.Contains(position) && IsPaginated(textEditor.TextView))
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1925if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.IsValid)
src\Framework\System\Windows\Documents\TextPointer.cs (1)
1536return _tree.TextView == null ? false : _tree.TextView.IsValid && _tree.TextView.Contains(this);
src\Framework\System\windows\Documents\TextSelection.cs (6)
260if (this.TextView != null && this.TextView.IsValid && 676if (this.TextView == null || !this.TextView.IsValid) 1606if (_textEditor.TextView != null && _textEditor.TextView.IsValid) 1958Invariant.Assert(this.TextView.IsValid); // We just checked RenderScope. We'll use TextView below 2116if (_textEditor.TextView == null || !_textEditor.TextView.IsValid) 2169if (this.TextView.IsValid && !this.TextView.RendersOwnSelection)
src\Framework\System\Windows\Documents\TextStore.cs (1)
924if (!this.TextView.IsValid)