TextViewExtensions.TryGetContainingTextView(ITextView, ITextView) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
[System::Runtime::CompilerServices::Extension]
static bool TryGetContainingTextView(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Editor::ITextView ^ % containingTextView);
public static bool TryGetContainingTextView (this Microsoft.VisualStudio.Text.Editor.ITextView textView, out Microsoft.VisualStudio.Text.Editor.ITextView containingTextView);
static member TryGetContainingTextView : Microsoft.VisualStudio.Text.Editor.ITextView * ITextView -> bool
<Extension()>
Public Function TryGetContainingTextView (textView As ITextView, ByRef containingTextView As ITextView) As Boolean
Parameters
- containingTextView
- ITextView
A ITextView that contains given ITextView or null if given ITextView is not embedded in another ITextView.
Returns
true
if containing ITextView was found, false
otherwise.