次の方法で共有


VsTextManagerClass.SetUserPreferences Method

Definition

Sets user preferences.

public:
 virtual int SetUserPreferences(cli::array <Microsoft::VisualStudio::TextManager::Interop::VIEWPREFERENCES> ^ pViewPrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::FRAMEPREFERENCES> ^ pFramePrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::LANGPREFERENCES> ^ pLangPrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::FONTCOLORPREFERENCES> ^ pColorPrefs) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::SetUserPreferences;
public:
 virtual int SetUserPreferences(cli::array <Microsoft::VisualStudio::TextManager::Interop::VIEWPREFERENCES> ^ pViewPrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::FRAMEPREFERENCES> ^ pFramePrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::LANGPREFERENCES> ^ pLangPrefs, cli::array <Microsoft::VisualStudio::TextManager::Interop::FONTCOLORPREFERENCES> ^ pColorPrefs);
 virtual int SetUserPreferences(std::Array <Microsoft::VisualStudio::TextManager::Interop::VIEWPREFERENCES> const & pViewPrefs, std::Array <Microsoft::VisualStudio::TextManager::Interop::FRAMEPREFERENCES> const & pFramePrefs, std::Array <Microsoft::VisualStudio::TextManager::Interop::LANGPREFERENCES> const & pLangPrefs, std::Array <Microsoft::VisualStudio::TextManager::Interop::FONTCOLORPREFERENCES> const & pColorPrefs);
public virtual int SetUserPreferences (Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[] pViewPrefs, Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[] pFramePrefs, Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[] pLangPrefs, Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[] pColorPrefs);
abstract member SetUserPreferences : Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[] -> int
override this.SetUserPreferences : Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[] -> int
Public Overridable Function SetUserPreferences (pViewPrefs As VIEWPREFERENCES(), pFramePrefs As FRAMEPREFERENCES(), pLangPrefs As LANGPREFERENCES(), pColorPrefs As FONTCOLORPREFERENCES()) As Integer

Parameters

pViewPrefs
VIEWPREFERENCES[]

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

pFramePrefs
FRAMEPREFERENCES[]

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

pLangPrefs
LANGPREFERENCES[]

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

pColorPrefs
FONTCOLORPREFERENCES[]

[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 FONTCOLORPREFERENCES.

Returns

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

Implements

Applies to