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