Compartir a través de


IVsTextManager2.SetUserPreferences2 Method

Definition

Sets user preferences.

public:
 int SetUserPreferences2(cli::array <Microsoft::VisualStudio::TextManager::Interop::VIEWPREFERENCES2> ^ pViewPrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::FRAMEPREFERENCES2> ^ pFramePrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::LANGPREFERENCES2> ^ pLangPrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::FONTCOLORPREFERENCES2> ^ pColorPrefs);
int SetUserPreferences2(std::Array <Microsoft::VisualStudio::TextManager::Interop::VIEWPREFERENCES2> const & pViewPrefs, std::Array <Microsoft::VisualStudio::TextManager::Interop::FRAMEPREFERENCES2> const & pFramePrefs, std::Array <Microsoft::VisualStudio::TextManager::Interop::LANGPREFERENCES2> const & pLangPrefs, std::Array <Microsoft::VisualStudio::TextManager::Interop::FONTCOLORPREFERENCES2> const & pColorPrefs);
public int SetUserPreferences2 (Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES2[] pViewPrefs, Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES2[] pFramePrefs, Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES2[] pLangPrefs, Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2[] pColorPrefs);
abstract member SetUserPreferences2 : Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES2[] * Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES2[] * Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES2[] * Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2[] -> int
Public Function SetUserPreferences2 (pViewPrefs As VIEWPREFERENCES2(), pFramePrefs As FRAMEPREFERENCES2(), pLangPrefs As LANGPREFERENCES2(), pColorPrefs As FONTCOLORPREFERENCES2()) As Integer

Parameters

pViewPrefs
VIEWPREFERENCES2[]

[in] Values that describe the desired default view flags for all editor views. For more information, see VIEWPREFERENCES2. Can be null if view preferences are not being set.

pFramePrefs
FRAMEPREFERENCES2[]

[in] Values that describe the desired default flags for all editor frames. For more information, see FRAMEPREFERENCES2. Can be null if frame preferences are not being set.

pLangPrefs
LANGPREFERENCES2[]

[in] Values that describe the desired flags for the language specified in the structure. For more information, see LANGPREFERENCES2. Can be null if language preferences are not being set.

pColorPrefs
FONTCOLORPREFERENCES2[]

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

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextManager2::SetUserPreferences2(  
   [in] const VIEWPREFERENCES2 * pViewPrefs,  
   [in] const FRAMEPREFERENCES2 * pFramePrefs,  
   [in] const LANGPREFERENCES2 * pLangPrefs,  
   [in] const FONTCOLORPREFERENCES2 * pColorPrefs  
);  

Applies to