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