Método VsTextPackageClass.GetUserPreferences
Retorna as preferências do usuário, como o uso do guia, recua a presença de margem de tamanho e o widget para o serviço de modo de exibição, o quadro e o idioma.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)
Sintaxe
'Declaração
Public Overridable Function GetUserPreferences ( _
<OutAttribute> pViewPrefs As VIEWPREFERENCES(), _
<OutAttribute> pFramePrefs As FRAMEPREFERENCES(), _
<OutAttribute> pLangPrefs As LANGPREFERENCES(), _
<OutAttribute> pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
public virtual int GetUserPreferences(
VIEWPREFERENCES[] pViewPrefs,
FRAMEPREFERENCES[] pFramePrefs,
LANGPREFERENCES[] pLangPrefs,
FONTCOLORPREFERENCES[] pColorPrefs
)
public:
virtual 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
override GetUserPreferences :
pViewPrefs:VIEWPREFERENCES[] byref *
pFramePrefs:FRAMEPREFERENCES[] byref *
pLangPrefs:LANGPREFERENCES[] byref *
pColorPrefs:FONTCOLORPREFERENCES[] byref -> int
public function GetUserPreferences(
pViewPrefs : VIEWPREFERENCES[],
pFramePrefs : FRAMEPREFERENCES[],
pLangPrefs : LANGPREFERENCES[],
pColorPrefs : FONTCOLORPREFERENCES[]
) : int
Parâmetros
pViewPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[][out] Ponteiro para as preferências de exibição. Para obter mais informações sobre o pViewPrefs, consulte VIEWPREFERENCES.
pFramePrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[][out] Ponteiro para as preferências do quadro. Para obter mais informações sobre o pFramePrefs, consulte FRAMEPREFERENCES.
pLangPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[][in, out] Ponteiro para as preferências de idioma. Para obter mais informações sobre o pLangPrefs, consulte LANGPREFERENCES.
pColorPrefs
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[][in, out] Ponteiro para as preferências de cor da fonte. Para obter mais informações sobre o pCOlorPrefs, consulte FONTCOLORPREFERENCES2.
Valor de retorno
Tipo: Int32
Implementações
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.