IVsTextManager.GetUserPreferences (Método)
Devuelve las preferencias del usuario, como el uso de la ficha, tamaño de la sangría y presencia del widget para la vista, el cuadro, y el servicio de lenguaje.
Espacio de nombres: Microsoft.VisualStudio.TextManager.Interop
Ensamblado: Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxis
'Declaración
Function GetUserPreferences ( _
<OutAttribute> pViewPrefs As VIEWPREFERENCES(), _
<OutAttribute> pFramePrefs As FRAMEPREFERENCES(), _
<OutAttribute> pLangPrefs As LANGPREFERENCES(), _
<OutAttribute> pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
int GetUserPreferences(
VIEWPREFERENCES[] pViewPrefs,
FRAMEPREFERENCES[] pFramePrefs,
LANGPREFERENCES[] pLangPrefs,
FONTCOLORPREFERENCES[] pColorPrefs
)
int GetUserPreferences(
[OutAttribute] array<VIEWPREFERENCES>^ pViewPrefs,
[OutAttribute] array<FRAMEPREFERENCES>^ pFramePrefs,
[InAttribute] [OutAttribute] array<LANGPREFERENCES>^ pLangPrefs,
[InAttribute] [OutAttribute] array<FONTCOLORPREFERENCES>^ pColorPrefs
)
abstract GetUserPreferences :
pViewPrefs:VIEWPREFERENCES[] byref *
pFramePrefs:FRAMEPREFERENCES[] byref *
pLangPrefs:LANGPREFERENCES[] byref *
pColorPrefs:FONTCOLORPREFERENCES[] byref -> int
function GetUserPreferences(
pViewPrefs : VIEWPREFERENCES[],
pFramePrefs : FRAMEPREFERENCES[],
pLangPrefs : LANGPREFERENCES[],
pColorPrefs : FONTCOLORPREFERENCES[]
) : int
Parámetros
pViewPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[][out] Puntero a las preferencias de la vista. Para obtener más información sobre pViewPrefs, vea VIEWPREFERENCES.
pFramePrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[][out] Puntero a las preferencias del cuadro. Para obtener más información sobre pFramePrefs, vea FRAMEPREFERENCES.
pLangPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[][in, out] puntero a las preferencias de idioma. Para obtener más información sobre pLangPrefs, vea LANGPREFERENCES.
pColorPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[][in, out] puntero a las preferencias de color de fuente.
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::GetUserPreferences(
[out] VIEWPREFERENCES * pViewPrefs,
[out] FRAMEPREFERENCES * pFramePrefs,
[in, out] LANGPREFERENCES * pLangPrefs,
[in, out] FONTCOLORPREFERENCES * pColorPrefs
);
Utilice este método para determinar la vista, el cuadro, el lenguaje, la fuente, y preferencias de color. El paso de GUID para el elemento adecuado y el método devuelve la estructura rellena con las preferencias. No es necesario pasar el GUID para cada estructura si sólo las preferencias para un elemento (por ejemplo, si solo desea preferencias de). Pase nullreferencia null (Nothing en Visual Basic) para estructuras que no desea rellenar.
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)