Freigeben über


IVsTextManager.SetUserPreferences Method

Sets user preferences.

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

Syntax

'Declaration
Function SetUserPreferences ( _
    pViewPrefs As VIEWPREFERENCES(), _
    pFramePrefs As FRAMEPREFERENCES(), _
    pLangPrefs As LANGPREFERENCES(), _
    pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
'Usage
Dim instance As IVsTextManager
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)
int SetUserPreferences(
    VIEWPREFERENCES[] pViewPrefs,
    FRAMEPREFERENCES[] pFramePrefs,
    LANGPREFERENCES[] pLangPrefs,
    FONTCOLORPREFERENCES[] pColorPrefs
)
int SetUserPreferences(
    [InAttribute] array<VIEWPREFERENCES>^ pViewPrefs, 
    [InAttribute] array<FRAMEPREFERENCES>^ pFramePrefs, 
    [InAttribute] array<LANGPREFERENCES>^ pLangPrefs, 
    [InAttribute] array<FONTCOLORPREFERENCES>^ pColorPrefs
)
abstract SetUserPreferences : 
        pViewPrefs:VIEWPREFERENCES[] * 
        pFramePrefs:FRAMEPREFERENCES[] * 
        pLangPrefs:LANGPREFERENCES[] * 
        pColorPrefs:FONTCOLORPREFERENCES[] -> int 
function SetUserPreferences(
    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.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextManager::SetUserPreferences(
   [in] const VIEWPREFERENCES * pViewPrefs,
   [in] const FRAMEPREFERENCES * pFramePrefs,
   [in] const LANGPREFERENCES * pLangPrefs,
   [in] const FONTCOLORPREFERENCES * pColorPrefs
);

.NET Framework Security

See Also

Reference

IVsTextManager Interface

IVsTextManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace