2 implementations of IsValid
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1234
bool ITextView.
IsValid
MS\Internal\Documents\TextViewBase.cs (1)
648
bool ITextView.
IsValid
61 references to IsValid
PresentationFramework (61)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
304
if (textView != null && textView.
IsValid
&& TextDocumentView.Contains(pointer, textView.TextSegments))
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
134
if (textView != null && textView.
IsValid
)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
940
if (!view.
IsValid
|| !parentView.
IsValid
)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
936
if (textView == null || !textView.
IsValid
)
MS\Internal\Documents\ContentHostHelper.cs (1)
114
if (textView != null && textView.
IsValid
)
MS\Internal\Documents\DocumentGrid.cs (1)
2665
TextView.
IsValid
&&
MS\Internal\Documents\DocumentPageTextView.cs (2)
487
/// <see cref="ITextView.
IsValid
"/>
501
return (_pageTextView != null && _pageTextView.
IsValid
);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
112
if (textView != null && !textView.
IsValid
)
133
if (masterPageTextView != null && masterPageTextView.
IsValid
)
412
if (contextMenuPosition != null && textView != null && textView.
IsValid
&& textView.Contains(contextMenuPosition))
MS\Internal\Documents\MultiPageTextView.cs (1)
637
/// <see cref="ITextView.
IsValid
"/>
MS\Internal\Documents\TextBoxView.cs (1)
1232
/// <see cref="ITextView.
IsValid
"/>
MS\Internal\Documents\TextDocumentView.cs (1)
573
/// <see cref="ITextView.
IsValid
"/>
MS\Internal\Documents\TextParagraphView.cs (1)
464
/// <see cref="ITextView.
IsValid
"/>
MS\Internal\Documents\TextViewBase.cs (2)
297
/// <see cref="ITextView.
IsValid
"/>
646
/// <see cref="ITextView.
IsValid
"/>
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
223
if (!textView.
IsValid
)
229
if (textView != null && !textView.
IsValid
)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (3)
50
if (textView == null || !textView.
IsValid
)
96
if (textView == null || !textView.
IsValid
|| (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd)))
150
if (textView == null || !textView.
IsValid
|| (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd)))
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
840
if (textView != null && textView.
IsValid
&& textView.RenderScope is IScrollInfo && contentPosition.TextContainer == textView.TextContainer)
901
if (textView != null && textView.
IsValid
&& textView.RenderScope is IScrollInfo)
System\Windows\Controls\PasswordTextNavigator.cs (1)
623
return (_container.TextView != null && _container.TextView.
IsValid
&& _container.TextView.Contains(this));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
768
if (textView != null && textView.
IsValid
)
System\Windows\Controls\TextAdaptor.cs (2)
177
if (!textView.
IsValid
)
183
if (textView != null && !textView.
IsValid
)
System\Windows\Controls\TextRangeAdaptor.cs (6)
596
if (textView != null && textView.
IsValid
)
665
if (textView != null && textView.
IsValid
)
782
if (textView != null && textView.
IsValid
&& textView.Contains(position))
905
if (textView != null && textView.
IsValid
&& textView.Contains(position))
1084
if (textView != null && textView.
IsValid
&& textView.Contains(position))
1128
if (textView != null && textView.
IsValid
&& textView.Contains(position))
System\windows\Documents\CaretElement.cs (1)
439
if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.TextView != null && _textEditor.TextView.
IsValid
)
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
344
((ITextPointer)this).TextContainer.TextView.
IsValid
&&
System\Windows\Documents\DocumentSequenceTextView.cs (3)
459
return ((ITextView)this).
IsValid
;
467
return ((ITextView)this).
IsValid
;
518
return ChildTextView.
IsValid
;
System\Windows\Documents\FixedTextPointer.cs (1)
552
((ITextPointer)this).TextContainer.TextView.
IsValid
&&
System\windows\Documents\TextEditor.cs (1)
1458
this.TextView != null && this.TextView.
IsValid
&& TextEditorSelection.IsPaginated(this.TextView))
System\windows\Documents\TextEditorDragDrop.cs (3)
123
if (this.TextView.
IsValid
)
402
if (_textEditor.TextView.
IsValid
)
438
Invariant.Assert(_textEditor.TextView.
IsValid
); // caller must guarantee this.
System\windows\Documents\TextEditorMouse.cs (6)
130
interactiveArea = textEditor.TextView.
IsValid
;
205
if (!This.TextView.
IsValid
)
211
if (This.TextView == null || !This.TextView.
IsValid
)
280
if (This.TextView == null || !This.TextView.
IsValid
)
322
if (This.TextView == null || !This.TextView.
IsValid
)
669
Invariant.Assert(This.TextView != null && This.TextView.
IsValid
);
System\windows\Documents\TextEditorSelection.cs (1)
2380
textEditor.TextView != null && textEditor.TextView.
IsValid
&& !textEditor.TextView.Contains(position) && IsPaginated(textEditor.TextView))
System\windows\Documents\TextEditorTyping.cs (1)
1873
if (This.UiScope is RichTextBox && This.TextView != null && This.TextView.
IsValid
)
System\Windows\Documents\TextPointer.cs (1)
1516
return _tree.TextView == null ? false : _tree.TextView.
IsValid
&& _tree.TextView.Contains(this);
System\windows\Documents\TextSelection.cs (6)
241
if (this.TextView != null && this.TextView.
IsValid
&&
657
if (this.TextView == null || !this.TextView.
IsValid
)
1584
if (_textEditor.TextView != null && _textEditor.TextView.
IsValid
)
1931
Invariant.Assert(this.TextView.
IsValid
); // We just checked RenderScope. We'll use TextView below
2089
if (_textEditor.TextView == null || !_textEditor.TextView.
IsValid
)
2142
if (this.TextView.
IsValid
&& !this.TextView.RendersOwnSelection)
System\Windows\Documents\TextStore.cs (1)
1049
if (!this.TextView.
IsValid
)