次の方法で共有


VsTextManagerClass.SetUserPreferences Method

Sets user preferences.

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

Syntax

'宣言
Public Overridable Function SetUserPreferences ( _
    pViewPrefs As VIEWPREFERENCES(), _
    pFramePrefs As FRAMEPREFERENCES(), _
    pLangPrefs As LANGPREFERENCES(), _
    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.SetUserPreferences(pViewPrefs, _
    pFramePrefs, pLangPrefs, pColorPrefs)
public virtual int SetUserPreferences(
    VIEWPREFERENCES[] pViewPrefs,
    FRAMEPREFERENCES[] pFramePrefs,
    LANGPREFERENCES[] pLangPrefs,
    FONTCOLORPREFERENCES[] pColorPrefs
)
public:
virtual int SetUserPreferences(
    [InAttribute] array<VIEWPREFERENCES>^ pViewPrefs, 
    [InAttribute] array<FRAMEPREFERENCES>^ pFramePrefs, 
    [InAttribute] array<LANGPREFERENCES>^ pLangPrefs, 
    [InAttribute] array<FONTCOLORPREFERENCES>^ pColorPrefs
)
public function SetUserPreferences(
    pViewPrefs : VIEWPREFERENCES[], 
    pFramePrefs : FRAMEPREFERENCES[], 
    pLangPrefs : LANGPREFERENCES[], 
    pColorPrefs : FONTCOLORPREFERENCES[]
) : int

Parameters

  • pViewPrefs
    Type: []

    [in] Values that describe the desired default view flags for all editor views. For more information, see VIEWPREFERENCES. Can be a null reference (Nothing in Visual Basic) if view preferences are not being set.

  • pFramePrefs
    Type: []

    [in] Values that describe the desired default flags for all editor frames. For more information, see FRAMEPREFERENCES. Can be a null reference (Nothing in Visual Basic) if frame preferences are not being set.

  • pLangPrefs
    Type: []

    [in] Values that describe the desired flags for the language specified in the structure. For more information, see LANGPREFERENCES. Can be a null reference (Nothing in Visual Basic) if language preferences are not being set.

  • pColorPrefs
    Type: []

    [in] Values that describe the color and font preferences for all editor views. This parameter is for internal editor use only. Should be a null reference (Nothing in Visual Basic) when this method is called by external packages. For more information, see FONTCOLORPREFERENCES.

Return Value

Type: System.Int32

Implements

IVsTextManager.SetUserPreferences([], [], [], [])

Permissions

See Also

Reference

VsTextManagerClass Class

VsTextManagerClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace