Método IVsIME.SetFont (IntPtr, IntPtr, VSIME_ERR )
Define a falha na janela do editor.Fornece um wrapper para ImmSetCompositionFont.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (em Microsoft.VisualStudio.Shell.Interop.dll)
Sintaxe
int SetFont(
IntPtr hwnd,
IntPtr hf,
VSIME_ERR[] perr
)
int SetFont(
IntPtr hwnd,
IntPtr hf,
array<VSIME_ERR>^ perr
)
abstract SetFont :
hwnd:nativeint *
hf:nativeint *
perr:VSIME_ERR[] -> int
Function SetFont (
hwnd As IntPtr,
hf As IntPtr,
perr As VSIME_ERR()
) As Integer
Parâmetros
- hwnd
[in] Identificador para a janela do editor.
- hf
[in] Identificador para a fonte.Se null, usa a fonte padrão do sistema.
- perr
[out] Valor de retorno de erro.Defina como zero, se houver um erro.Caso contrário, o Nonzero.
Valor de retorno
Type: System.Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.
Comentários
COM assinatura
De vsshell.idl:
HRESULT IVsIME::SetFont(
[in] HWND hwnd,
[in] HFONT hf,
[out] VSIME_ERR * perr
);
Consulte também
Interface IVsIME
Namespace Microsoft.VisualStudio.Shell.Interop
Retornar ao topo