IVsTextManager.SetUserPreferences (Método)
Establece las preferencias del usuario.
Espacio de nombres: Microsoft.VisualStudio.TextManager.Interop
Ensamblado: Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxis
'Declaración
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 describen la vista predeterminada deseada marcados para todas las vistas de editor. Para obtener más información, vea VIEWPREFERENCES. Puede ser nullreferencia null (Nothing en Visual Basic) si las preferencias de la vista no se están estableciendo.
pFramePrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[][in] Valores que describen los marcadores predeterminados deseados para todos los marcos del editor. Para obtener más información, vea FRAMEPREFERENCES. Puede ser nullreferencia null (Nothing en Visual Basic) si las preferencias de cuadro no se están estableciendo.
pLangPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[][in] Valores que describen los marcadores deseados para el idioma especificado en la estructura. Para obtener más información, vea LANGPREFERENCES. puede ser nullreferencia null (Nothing en Visual Basic) si las preferencias de idioma no se están estableciendo.
pColorPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[][in] Valores que describen el color y las preferencias de la fuente de todo el editor ven. Este parámetro es para uso interno del editor sólo. Debe ser nullreferencia null (Nothing en Visual Basic) cuando llama a este método paquetes externos. Para obtener más información, vea FONTCOLORPREFERENCES.
Valor devuelto
Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.
Comentarios
Prototipo COM
de textmgr.idl:
HRESULT IVsTextManager::SetUserPreferences(
[in] const VIEWPREFERENCES * pViewPrefs,
[in] const FRAMEPREFERENCES * pFramePrefs,
[in] const LANGPREFERENCES * pLangPrefs,
[in] const FONTCOLORPREFERENCES * pColorPrefs
);
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)