Partager via


VsTextManagerClass.GetUserPreferences Method

Returns the user preferences, such as tab usage, indent size and widget margin presence for the view, frame, and language service.

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

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTextManager.GetUserPreferences(array<VIEWPREFERENCES[], array<FRAMEPREFERENCES[], array<LANGPREFERENCES[], array<FONTCOLORPREFERENCES[])

.NET Framework Security

See Also

Reference

VsTextManagerClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace