다음을 통해 공유


IVsTextManager2.SetUserPreferences2 메서드

사용자 기본 설정을 설정합니다.

네임스페이스:  Microsoft.VisualStudio.TextManager.Interop
어셈블리:  Microsoft.VisualStudio.TextManager.Interop.8.0(Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

구문

‘선언
Function SetUserPreferences2 ( _
    pViewPrefs As VIEWPREFERENCES2(), _
    pFramePrefs As FRAMEPREFERENCES2(), _
    pLangPrefs As LANGPREFERENCES2(), _
    pColorPrefs As FONTCOLORPREFERENCES2() _
) As Integer
int SetUserPreferences2(
    VIEWPREFERENCES2[] pViewPrefs,
    FRAMEPREFERENCES2[] pFramePrefs,
    LANGPREFERENCES2[] pLangPrefs,
    FONTCOLORPREFERENCES2[] pColorPrefs
)
int SetUserPreferences2(
    [InAttribute] array<VIEWPREFERENCES2>^ pViewPrefs, 
    [InAttribute] array<FRAMEPREFERENCES2>^ pFramePrefs, 
    [InAttribute] array<LANGPREFERENCES2>^ pLangPrefs, 
    [InAttribute] array<FONTCOLORPREFERENCES2>^ pColorPrefs
)
abstract SetUserPreferences2 : 
        pViewPrefs:VIEWPREFERENCES2[] * 
        pFramePrefs:FRAMEPREFERENCES2[] * 
        pLangPrefs:LANGPREFERENCES2[] * 
        pColorPrefs:FONTCOLORPREFERENCES2[] -> int
function SetUserPreferences2(
    pViewPrefs : VIEWPREFERENCES2[], 
    pFramePrefs : FRAMEPREFERENCES2[], 
    pLangPrefs : LANGPREFERENCES2[], 
    pColorPrefs : FONTCOLORPREFERENCES2[]
) : int

매개 변수

  • pColorPrefs
    형식: array<Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2[]

    [in] 글꼴 환경 설정 편집기의 모든 보기에 대해 설명 하는 값입니다. 이 매개 변수는 내부 편집기 사용입니다. 수 있습니다 nullNull 참조(Visual Basic의 경우 Nothing) 외부 패키지에서이 메서드를 호출 하면 됩니다. 자세한 내용은 FONTCOLORPREFERENCES2를 참조하십시오.

반환 값

형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.

설명

COM 시그니처

Textmgr.idl에서:

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

.NET Framework 보안

참고 항목

참조

IVsTextManager2 인터페이스

Microsoft.VisualStudio.TextManager.Interop 네임스페이스