2 implementations of Contains
PresentationFramework (2)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1009bool ITextView.Contains(ITextPointer position)
src\Framework\MS\Internal\Documents\TextViewBase.cs (1)
557bool ITextView.Contains(ITextPointer position)
39 references to Contains
PresentationFramework (39)
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (2)
126if (textView.Contains(contentElement.ContentStart) || 127textView.Contains(contentElement.ContentEnd))
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
2724TextView.Contains(tp));
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (2)
326/// <see cref="ITextView.Contains"/> 339return _pageTextView.Contains(position);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
136if (textView != null && textView.Contains(textSelection.Start)) 435if (contextMenuPosition != null && textView != null && textView.IsValid && textView.Contains(contextMenuPosition))
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
305/// <see cref="ITextView.Contains"/>
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
1007/// <see cref="ITextView.Contains"/> 2896/// <see cref="ITextView.Contains"/>
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
391/// <see cref="ITextView.Contains"/>
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
305/// <see cref="ITextView.Contains"/>
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
120/// <see cref="ITextView.Contains"/> 555/// <see cref="ITextView.Contains"/>
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
115if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd))) 169if (textView == null || !textView.IsValid || (!textView.Contains(textElement.ContentStart) && !textView.Contains(textElement.ContentEnd)))
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
856if (textView.Contains(contentPosition))
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
630return (_container.TextView != null && _container.TextView.IsValid && _container.TextView.Contains(this));
src\Framework\System\Windows\Controls\TextAdaptor.cs (4)
112if (!textView.Contains(start) && start.CompareTo(textSegments[0].Start) < 0) 116if (!textView.Contains(end) && end.CompareTo(textSegments[textSegments.Count-1].End) > 0) 121if (!textView.Contains(start) || !textView.Contains(end))
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (9)
610if (expandStart && textView.Contains(_start)) 632if (expandEnd && snapEndPosition && textView.Contains(_end)) 678if (expandStart && textView.Contains(_start)) 695if (expandEnd && textView.Contains(_end)) 793if (textView != null && textView.IsValid && textView.Contains(position)) 916if (textView != null && textView.IsValid && textView.Contains(position)) 1096if (textView != null && textView.IsValid && textView.Contains(position)) 1140if (textView != null && textView.IsValid && textView.Contains(position)) 1190if (!textView.Contains(positionTemp))
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
358((ITextPointer)this).TextContainer.TextView.Contains(this));
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (1)
462return ChildTextView.Contains(tp.ChildPointer.CreatePointer(position.LogicalDirection));
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
579((ITextPointer)this).TextContainer.TextView.Contains(this));
src\Framework\System\windows\Documents\TextEditorSelection.cs (1)
2405textEditor.TextView != null && textEditor.TextView.IsValid && !textEditor.TextView.Contains(position) && IsPaginated(textEditor.TextView))
src\Framework\System\Windows\Documents\TextPointer.cs (1)
1536return _tree.TextView == null ? false : _tree.TextView.IsValid && _tree.TextView.Contains(this);
src\Framework\System\windows\Documents\TextSelection.cs (1)
261!this.TextView.Contains(movingPosition))