2 implementations of Contains
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
960bool ITextView.Contains(ITextPointer position)
MS\Internal\Documents\TextViewBase.cs (1)
552bool ITextView.Contains(ITextPointer position)
39 references to Contains
PresentationFramework (39)
MS\Internal\Documents\ContentHostHelper.cs (2)
120if (textView.Contains(contentElement.ContentStart) || 121textView.Contains(contentElement.ContentEnd))
MS\Internal\Documents\DocumentGrid.cs (1)
2666TextView.Contains(tp));
MS\Internal\Documents\DocumentPageTextView.cs (2)
321/// <see cref="ITextView.Contains"/> 334return _pageTextView.Contains(position);
MS\Internal\Documents\DocumentViewerHelper.cs (2)
118if (textView != null && textView.Contains(textSelection.Start)) 412if (contextMenuPosition != null && textView != null && textView.IsValid && textView.Contains(contextMenuPosition))
MS\Internal\Documents\MultiPageTextView.cs (1)
299/// <see cref="ITextView.Contains"/>
MS\Internal\Documents\TextBoxView.cs (2)
958/// <see cref="ITextView.Contains"/> 2875/// <see cref="ITextView.Contains"/>
MS\Internal\Documents\TextDocumentView.cs (1)
380/// <see cref="ITextView.Contains"/>
MS\Internal\Documents\TextParagraphView.cs (1)
276/// <see cref="ITextView.Contains"/>
MS\Internal\Documents\TextViewBase.cs (2)
115/// <see cref="ITextView.Contains"/> 550/// <see cref="ITextView.Contains"/>
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
96if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 150if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd)))
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
842if (textView.Contains(contentPosition))
System\Windows\Controls\PasswordTextNavigator.cs (1)
623return (_container.TextView != null && _container.TextView.IsValid && _container.TextView.Contains(this));
System\Windows\Controls\TextAdaptor.cs (4)
100if (!textView.Contains(start) && start.CompareTo(textSegments[0].Start) < 0) 104if (!textView.Contains(end) && end.CompareTo(textSegments[textSegments.Count-1].End) > 0) 109if (!textView.Contains(start) || !textView.Contains(end))
System\Windows\Controls\TextRangeAdaptor.cs (9)
599if (expandStart && textView.Contains(_start)) 621if (expandEnd && snapEndPosition && textView.Contains(_end)) 667if (expandStart && textView.Contains(_start)) 684if (expandEnd && textView.Contains(_end)) 782if (textView != null && textView.IsValid && textView.Contains(position)) 905if (textView != null && textView.IsValid && textView.Contains(position)) 1084if (textView != null && textView.IsValid && textView.Contains(position)) 1128if (textView != null && textView.IsValid && textView.Contains(position)) 1178if (!textView.Contains(positionTemp))
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
345((ITextPointer)this).TextContainer.TextView.Contains(this));
System\Windows\Documents\DocumentSequenceTextView.cs (1)
438return ChildTextView.Contains(tp.ChildPointer.CreatePointer(position.LogicalDirection));
System\Windows\Documents\FixedTextPointer.cs (1)
553((ITextPointer)this).TextContainer.TextView.Contains(this));
System\windows\Documents\TextEditorSelection.cs (1)
2380textEditor.TextView != null && textEditor.TextView.IsValid && !textEditor.TextView.Contains(position) && IsPaginated(textEditor.TextView))
System\Windows\Documents\TextPointer.cs (1)
1516return _tree.TextView == null ? false : _tree.TextView.IsValid && _tree.TextView.Contains(this);
System\windows\Documents\TextSelection.cs (1)
242!this.TextView.Contains(movingPosition))