Partilhar via


Método IVsTextManager2.SetUserPreferences2

Define as preferências do usuário.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxe

'Declaração
Function SetUserPreferences2 ( _
    pViewPrefs As VIEWPREFERENCES2(), _
    pFramePrefs As FRAMEPREFERENCES2(), _
    pLangPrefs As LANGPREFERENCES2(), _
    pColorPrefs As FONTCOLORPREFERENCES2() _
) As Integer
int SetUserPreferences2(
    VIEWPREFERENCES2[] pViewPrefs,
    FRAMEPREFERENCES2[] pFramePrefs,
    LANGPREFERENCES2[] pLangPrefs,
    FONTCOLORPREFERENCES2[] pColorPrefs
)
int SetUserPreferences2(
    [InAttribute] array<VIEWPREFERENCES2>^ pViewPrefs, 
    [InAttribute] array<FRAMEPREFERENCES2>^ pFramePrefs, 
    [InAttribute] array<LANGPREFERENCES2>^ pLangPrefs, 
    [InAttribute] array<FONTCOLORPREFERENCES2>^ pColorPrefs
)
abstract SetUserPreferences2 : 
        pViewPrefs:VIEWPREFERENCES2[] * 
        pFramePrefs:FRAMEPREFERENCES2[] * 
        pLangPrefs:LANGPREFERENCES2[] * 
        pColorPrefs:FONTCOLORPREFERENCES2[] -> int
function SetUserPreferences2(
    pViewPrefs : VIEWPREFERENCES2[], 
    pFramePrefs : FRAMEPREFERENCES2[], 
    pLangPrefs : LANGPREFERENCES2[], 
    pColorPrefs : FONTCOLORPREFERENCES2[]
) : int

Parâmetros

  • pViewPrefs
    Tipo: array<Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES2[]

    [in] Valores que descrevem os sinalizadores de modo de exibição padrão desejado para todos os modos de exibição do editor. Para obter mais informações, consulte VIEWPREFERENCES2. Pode ser nulluma referência nula (Nothing no Visual Basic) se as preferências de exibição não estão sendo definidas.

  • pColorPrefs
    Tipo: array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2[]

    [in] Valores que descrevem as preferências de cor e fonte para todos os modos de exibição do editor. Este parâmetro é o editor interno somente para uso. Deve ser nulluma referência nula (Nothing no Visual Basic) quando esse método é chamado por pacotes externos. Para obter mais informações, consulte FONTCOLORPREFERENCES2.

Valor de retorno

Tipo: 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 textmgr.idl:

HRESULT IVsTextManager2::SetUserPreferences2(
   [in] const VIEWPREFERENCES2 * pViewPrefs,
   [in] const FRAMEPREFERENCES2 * pFramePrefs,
   [in] const LANGPREFERENCES2 * pLangPrefs,
   [in] const FONTCOLORPREFERENCES2 * pColorPrefs
);

Segurança do .NET Framework

Consulte também

Referência

IVsTextManager2 Interface

Namespace Microsoft.VisualStudio.TextManager.Interop