다음을 통해 공유


IVsSyntheticRegion.SetText Method

Sets the text of the region.

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

Syntax

‘선언
Function SetText ( _
    pszText As String _
) As Integer
int SetText(
    string pszText
)
int SetText(
    [InAttribute] String^ pszText
)
abstract SetText : 
        pszText:string -> int 
function SetText(
    pszText : 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

Synthetic text manager allocates a new string.

COM Signature

From textmgr.idl:

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

.NET Framework Security

See Also

Reference

IVsSyntheticRegion Interface

Microsoft.VisualStudio.TextManager.Interop Namespace