次の方法で共有


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

'宣言
Public Overridable Function GetUserPreferences ( _
    <OutAttribute> pViewPrefs As VIEWPREFERENCES(), _
    <OutAttribute> pFramePrefs As FRAMEPREFERENCES(), _
    <OutAttribute> pLangPrefs As LANGPREFERENCES(), _
    <OutAttribute> pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
'使用
Dim instance As VsTextManagerClass
Dim pViewPrefs As VIEWPREFERENCES()
Dim pFramePrefs As FRAMEPREFERENCES()
Dim pLangPrefs As LANGPREFERENCES()
Dim pColorPrefs As FONTCOLORPREFERENCES()
Dim returnValue As Integer

returnValue = instance.GetUserPreferences(pViewPrefs, _
    pFramePrefs, pLangPrefs, pColorPrefs)
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
)
public function GetUserPreferences(
    pViewPrefs : VIEWPREFERENCES[], 
    pFramePrefs : FRAMEPREFERENCES[], 
    pLangPrefs : LANGPREFERENCES[], 
    pColorPrefs : FONTCOLORPREFERENCES[]
) : int

Parameters

  • pViewPrefs
    Type: []

    [out] Pointer to the view preferences. For more information about pViewPrefs, see VIEWPREFERENCES.

  • pFramePrefs
    Type: []

    [out] Pointer to the frame preferences. For more information about pFramePrefs, see FRAMEPREFERENCES.

  • pLangPrefs
    Type: []

    [in, out] Pointer to the language preferences. For more information about pLangPrefs, see LANGPREFERENCES.

  • pColorPrefs
    Type: []

    [in, out] Pointer to the font color preferences. For more information about pCOlorPrefs, see FONTCOLORPREFERENCES.

Return Value

Type: System.Int32

Implements

IVsTextManager.GetUserPreferences([], [], [], [])

Permissions

See Also

Reference

VsTextManagerClass Class

VsTextManagerClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace