Share via


IVsSyntheticRegion.GetText Method

Gets the text associated with the region.

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

Syntax

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

Parameters

Return Value

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

Remarks

Warning

This allocates a new BSTR which must be freed by the caller.

COM Signature

From textmgr.idl:

HRESULT IVsSyntheticRegion::GetText(
   [out] BSTR *pbstrText
);

.NET Framework Security

See Also

Reference

IVsSyntheticRegion Interface

Microsoft.VisualStudio.TextManager.Interop Namespace