Share via


TextViewExtensions.TryGetContainingTextView(ITextView, ITextView) Method

Definition

Gets containing ITextView for given embedded ITextView.

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

textView
ITextView

An embedded ITextView, for which to get a containing ITextView.

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.

Applies to