IVsSyntheticRegion.SetText(String) Method

Definition

Sets the text of the region.

public:
 int SetText(System::String ^ pszText);
public:
 int SetText(Platform::String ^ pszText);
int SetText(std::wstring const & pszText);
public int SetText (string pszText);
abstract member SetText : string -> int
Public Function SetText (pszText As String) As Integer

Parameters

pszText
String

[in] The text.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Warning

Synthetic text manager allocates a new string.

COM Signature

From textmgr.idl:

HRESULT IVsSyntheticRegion::SetText(  
   [in] LPCWSTR pszText  
);  

Applies to