IVsTextManager.SetUserPreferences Method
Sets user preferences.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Dichiarazione
Function SetUserPreferences ( _
pViewPrefs As VIEWPREFERENCES(), _
pFramePrefs As FRAMEPREFERENCES(), _
pLangPrefs As LANGPREFERENCES(), _
pColorPrefs As FONTCOLORPREFERENCES() _
) As Integer
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
- pViewPrefs
Type: array<Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[]
[in] Values that describe the desired default view flags for all editor views. For more information, see VIEWPREFERENCES. Can be nulla null reference (Nothing in Visual Basic) if view preferences are not being set.
- pFramePrefs
Type: array<Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[]
[in] Values that describe the desired default flags for all editor frames. For more information, see FRAMEPREFERENCES. Can be nulla null reference (Nothing in Visual Basic) if frame preferences are not being set.
- pLangPrefs
Type: array<Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[]
[in] Values that describe the desired flags for the language specified in the structure. For more information, see LANGPREFERENCES. Can be nulla null reference (Nothing in Visual Basic) if language preferences are not being set.
- pColorPrefs
Type: array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[]
[in] Values that describe the color and font preferences for all editor views. This parameter is for internal editor use only. Should be nulla null reference (Nothing in Visual Basic) when this method is called by external packages. For more information, see FONTCOLORPREFERENCES.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.