2 implementations of Contains
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1003
bool ITextView.
Contains
(ITextPointer position)
MS\Internal\Documents\TextViewBase.cs (1)
553
bool ITextView.
Contains
(ITextPointer position)
39 references to Contains
PresentationFramework (39)
MS\Internal\Documents\ContentHostHelper.cs (2)
121
if (textView.
Contains
(contentElement.ContentStart) ||
122
textView.
Contains
(contentElement.ContentEnd))
MS\Internal\Documents\DocumentGrid.cs (1)
2674
TextView.
Contains
(tp));
MS\Internal\Documents\DocumentPageTextView.cs (2)
322
/// <see cref="ITextView.
Contains
"/>
335
return _pageTextView.
Contains
(position);
MS\Internal\Documents\DocumentViewerHelper.cs (2)
119
if (textView != null && textView.
Contains
(textSelection.Start))
413
if (contextMenuPosition != null && textView != null && textView.IsValid && textView.
Contains
(contextMenuPosition))
MS\Internal\Documents\MultiPageTextView.cs (1)
300
/// <see cref="ITextView.
Contains
"/>
MS\Internal\Documents\TextBoxView.cs (2)
1001
/// <see cref="ITextView.
Contains
"/>
2916
/// <see cref="ITextView.
Contains
"/>
MS\Internal\Documents\TextDocumentView.cs (1)
382
/// <see cref="ITextView.
Contains
"/>
MS\Internal\Documents\TextParagraphView.cs (1)
277
/// <see cref="ITextView.
Contains
"/>
MS\Internal\Documents\TextViewBase.cs (2)
116
/// <see cref="ITextView.
Contains
"/>
551
/// <see cref="ITextView.
Contains
"/>
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
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 (1)
847
if (textView.
Contains
(contentPosition))
System\Windows\Controls\PasswordTextNavigator.cs (1)
624
return (_container.TextView != null && _container.TextView.IsValid && _container.TextView.
Contains
(this));
System\Windows\Controls\TextAdaptor.cs (4)
101
if (!textView.
Contains
(start) && start.CompareTo(textSegments[0].Start) < 0)
105
if (!textView.
Contains
(end) && end.CompareTo(textSegments[textSegments.Count-1].End) > 0)
110
if (!textView.
Contains
(start) || !textView.
Contains
(end))
System\Windows\Controls\TextRangeAdaptor.cs (9)
600
if (expandStart && textView.
Contains
(_start))
622
if (expandEnd && snapEndPosition && textView.
Contains
(_end))
668
if (expandStart && textView.
Contains
(_start))
685
if (expandEnd && textView.
Contains
(_end))
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))
1179
if (!textView.
Contains
(positionTemp))
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
348
((ITextPointer)this).TextContainer.TextView.
Contains
(this));
System\Windows\Documents\DocumentSequenceTextView.cs (1)
439
return ChildTextView.
Contains
(tp.ChildPointer.CreatePointer(position.LogicalDirection));
System\Windows\Documents\FixedTextPointer.cs (1)
556
((ITextPointer)this).TextContainer.TextView.
Contains
(this));
System\windows\Documents\TextEditorSelection.cs (1)
2381
textEditor.TextView != null && textEditor.TextView.IsValid && !textEditor.TextView.
Contains
(position) && IsPaginated(textEditor.TextView))
System\Windows\Documents\TextPointer.cs (1)
1517
return _tree.TextView == null ? false : _tree.TextView.IsValid && _tree.TextView.
Contains
(this);
System\windows\Documents\TextSelection.cs (1)
255
!this.TextView.
Contains
(movingPosition))