VsTextManagerClass.GetUserPreferences 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回视图、框架和语言服务的用户首选项,如选项卡使用情况、缩进大小和小组件边距状态。
public:
virtual int GetUserPreferences(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::GetUserPreferences;
virtual int GetUserPreferences(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 GetUserPreferences (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 GetUserPreferences : Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[] -> int
override this.GetUserPreferences : Microsoft.VisualStudio.TextManager.Interop.VIEWPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FRAMEPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES[] * Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES[] -> int
Public Overridable Function GetUserPreferences (pViewPrefs As VIEWPREFERENCES(), pFramePrefs As FRAMEPREFERENCES(), pLangPrefs As LANGPREFERENCES(), pColorPrefs As FONTCOLORPREFERENCES()) As Integer
参数
- pViewPrefs
- VIEWPREFERENCES[]
弄指向视图首选项的指针。 有关 pViewPrefs的更多信息,请参见VIEWPREFERENCES。
- pFramePrefs
- FRAMEPREFERENCES[]
弄指向帧首选项的指针。 有关 pFramePrefs的更多信息,请参见FRAMEPREFERENCES。
- pLangPrefs
- LANGPREFERENCES[]
[in,out]指向语言首选项的指针。 有关 pLangPrefs的更多信息,请参见LANGPREFERENCES。
- pColorPrefs
- FONTCOLORPREFERENCES[]
[in,out]指向字体颜色首选项的指针。 有关 pColorPrefs的更多信息,请参见FONTCOLORPREFERENCES。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。