共用方式為


IVsTextManager3.SetUserPreferences3 Method

Definition

Sets the user preferences as specified.

public:
 int SetUserPreferences3(cli::array <Microsoft::VisualStudio::TextManager::Interop::VIEWPREFERENCES3> ^ 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 SetUserPreferences3(std::Array <Microsoft::VisualStudio::TextManager::Interop::VIEWPREFERENCES3> 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 SetUserPreferences3 (Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES3[] pViewPrefs, Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES2[] pFramePrefs, Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES2[] pLangPrefs, Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2[] pColorPrefs);
abstract member SetUserPreferences3 : Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES3[] * Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES2[] * Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES2[] * Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2[] -> int
Public Function SetUserPreferences3 (pViewPrefs As VIEWPREFERENCES3(), pFramePrefs As FRAMEPREFERENCES2(), pLangPrefs As LANGPREFERENCES2(), pColorPrefs As FONTCOLORPREFERENCES2()) As Integer

Parameters

pViewPrefs
VIEWPREFERENCES3[]

[in] User preferences for the view settings.

pFramePrefs
FRAMEPREFERENCES2[]

[in] User preferences for the frame settings.

pLangPrefs
LANGPREFERENCES2[]

[in] User language settings preferences.

pColorPrefs
FONTCOLORPREFERENCES2[]

[in] User color settings preferences.

Returns

Returns S_OK if the method is successful; otherwise, returns an error code.

Applies to