VsTextManagerClass::GetUserPreferences Method (array<VIEWPREFERENCES>^, array<FRAMEPREFERENCES>^, array<LANGPREFERENCES>^, array<FONTCOLORPREFERENCES>^)
Visual Studio 2015
Returns the user preferences, such as tab usage, indent size and widget margin presence for the view, frame, and language service.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int GetUserPreferences( array<VIEWPREFERENCES>^ pViewPrefs, array<FRAMEPREFERENCES>^ pFramePrefs, array<LANGPREFERENCES>^ pLangPrefs, array<FONTCOLORPREFERENCES>^ pColorPrefs )
Parameters
- pViewPrefs
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::VIEWPREFERENCES>^
[out] Pointer to the view preferences. For more information about pViewPrefs, see VIEWPREFERENCES.
- pFramePrefs
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::FRAMEPREFERENCES>^
[out] Pointer to the frame preferences. For more information about pFramePrefs, see FRAMEPREFERENCES.
- pLangPrefs
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::LANGPREFERENCES>^
[in, out] Pointer to the language preferences. For more information about pLangPrefs, see LANGPREFERENCES.
- pColorPrefs
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::FONTCOLORPREFERENCES>^
[in, out] Pointer to the font color preferences. For more information about pColorPrefs, see FONTCOLORPREFERENCES.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: