Partilhar via


Método IVsTextManager.SetUserPreferences

Define as preferências do usuário.

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

Sintaxe

'Declaração
Function SetUserPreferences ( _
    pViewPrefs As VIEWPREFERENCES(), _
    pFramePrefs As FRAMEPREFERENCES(), _
    pLangPrefs As LANGPREFERENCES(), _
    pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
int SetUserPreferences(
    VIEWPREFERENCES[] pViewPrefs,
    FRAMEPREFERENCES[] pFramePrefs,
    LANGPREFERENCES[] pLangPrefs,
    FONTCOLORPREFERENCES[] pColorPrefs
)
int SetUserPreferences(
    [InAttribute] array<VIEWPREFERENCES>^ pViewPrefs, 
    [InAttribute] array<FRAMEPREFERENCES>^ pFramePrefs, 
    [InAttribute] array<LANGPREFERENCES>^ pLangPrefs, 
    [InAttribute] array<FONTCOLORPREFERENCES>^ pColorPrefs
)
abstract SetUserPreferences : 
        pViewPrefs:VIEWPREFERENCES[] * 
        pFramePrefs:FRAMEPREFERENCES[] * 
        pLangPrefs:LANGPREFERENCES[] * 
        pColorPrefs:FONTCOLORPREFERENCES[] -> int
function SetUserPreferences(
    pViewPrefs : VIEWPREFERENCES[], 
    pFramePrefs : FRAMEPREFERENCES[], 
    pLangPrefs : LANGPREFERENCES[], 
    pColorPrefs : FONTCOLORPREFERENCES[]
) : int

Parâmetros

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

    [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 VIEWPREFERENCES. 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.FONTCOLORPREFERENCES[]

    [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 FONTCOLORPREFERENCES.

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 IVsTextManager::SetUserPreferences(
   [in] const VIEWPREFERENCES * pViewPrefs,
   [in] const FRAMEPREFERENCES * pFramePrefs,
   [in] const LANGPREFERENCES * pLangPrefs,
   [in] const FONTCOLORPREFERENCES * pColorPrefs
);

Segurança do .NET Framework

Consulte também

Referência

IVsTextManager Interface

Namespace Microsoft.VisualStudio.TextManager.Interop