Partager via


IVsIME.SetImmCompositionString Method

Sets the characters, attributes, and clauses of the composition and reading strings. Provides a wrapper for ImmSetCompositionString.

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

Syntax

'Déclaration
Function SetImmCompositionString ( _
    HIMC As UInteger, _
    dwIndex As UInteger, _
    bstrCompString As String, _
    bstrReadString As String, _
    <OutAttribute> ByRef pfRetVal As Integer _
) As Integer
'Utilisation
Dim instance As IVsIME
Dim HIMC As UInteger
Dim dwIndex As UInteger
Dim bstrCompString As String
Dim bstrReadString As String
Dim pfRetVal As Integer
Dim returnValue As Integer

returnValue = instance.SetImmCompositionString(HIMC, _
    dwIndex, bstrCompString, bstrReadString, _
    pfRetVal)
int SetImmCompositionString(
    uint HIMC,
    uint dwIndex,
    string bstrCompString,
    string bstrReadString,
    out int pfRetVal
)
int SetImmCompositionString(
    [InAttribute] unsigned int HIMC, 
    [InAttribute] unsigned int dwIndex, 
    [InAttribute] String^ bstrCompString, 
    [InAttribute] String^ bstrReadString, 
    [OutAttribute] int% pfRetVal
)
abstract SetImmCompositionString : 
        HIMC:uint32 * 
        dwIndex:uint32 * 
        bstrCompString:string * 
        bstrReadString:string * 
        pfRetVal:int byref -> int 
function SetImmCompositionString(
    HIMC : uint, 
    dwIndex : uint, 
    bstrCompString : String, 
    bstrReadString : String, 
    pfRetVal : int
) : int

Parameters

  • pfRetVal
    Type: System.Int32%
    [out] Error return value. Set to a nonzero value when there is no error. Zero otherwise.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIME::SetImmCompositionString(
   [in] HIMC himc, 
   [in] DWORD dwIndex, 
   [in] BSTR bstrCompString, 
   [in] BSTR bstrReadString, 
   [out] BOOL * pfRetVal
);

.NET Framework Security

See Also

Reference

IVsIME Interface

IVsIME Members

Microsoft.VisualStudio.Shell.Interop Namespace