IVsExpansionIntellisenseHost.GetText Method

Returns the text of the expansion text span.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

声明
Function GetText ( _
    <OutAttribute> ByRef bstrText As String _
) As Integer
int GetText(
    out string bstrText
)
int GetText(
    [OutAttribute] String^% bstrText
)
abstract GetText : 
        bstrText:string byref -> int 
function GetText(
    bstrText : String
) : int

Parameters

  • bstrText
    Type: System.String%
    [out] String containing the expansion text.

Return Value

Type: System.Int32
If the method succeeds, it returns VSConstants.S_OK. If it fails, it returns an error code.

Remarks

C++

From singlefileeditor.idl:

HRESULT IVsExpansionIntellisenseHost::GetText([out] BSTR *bstrText);

.NET Framework Security

See Also

Reference

IVsExpansionIntellisenseHost Interface

Microsoft.VisualStudio.TextManager.Interop Namespace