VsShellUtilities.GetTextView Method

Gets the text view in the specified window frame.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Shared Function GetTextView ( _
    windowFrame As IVsWindowFrame _
) As IVsTextView
'使用
Dim windowFrame As IVsWindowFrame
Dim returnValue As IVsTextView

returnValue = VsShellUtilities.GetTextView(windowFrame)
public static IVsTextView GetTextView(
    IVsWindowFrame windowFrame
)
public:
static IVsTextView^ GetTextView(
    IVsWindowFrame^ windowFrame
)
public static function GetTextView(
    windowFrame : IVsWindowFrame
) : IVsTextView

Parameters

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView

The text view in an IVsTextView object, or a null reference (Nothing in Visual Basic) if the window frame is a code window that is not implemented as a text view.

Permissions

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace