Udostępnij za pośrednictwem


IVsSyntheticRegion.GetText(String) Method

Definition

Gets the text associated with the region.

public:
 int GetText([Runtime::InteropServices::Out] System::String ^ % pbstrText);
int GetText([Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int GetText (out string pbstrText);
abstract member GetText : string -> int
Public Function GetText (ByRef pbstrText As String) As Integer

Parameters

pbstrText
String

[out] The text for the region.

Returns

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  
);  

Applies to