共用方式為


IVsFontsAndColorsInformation.GetFontAndColorPreferences Method

Gets the FONTCOLORPREFERENCES2 of the language service.

Namespace:  Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)

Syntax

'宣告
Function GetFontAndColorPreferences As FONTCOLORPREFERENCES2
FONTCOLORPREFERENCES2 GetFontAndColorPreferences()
FONTCOLORPREFERENCES2 GetFontAndColorPreferences()
abstract GetFontAndColorPreferences : unit -> FONTCOLORPREFERENCES2 
function GetFontAndColorPreferences() : FONTCOLORPREFERENCES2

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.FONTCOLORPREFERENCES2
FONTCOLORPREFERENCES2 .

Remarks

These color preferences are the color definitions inside Visual Studio, not the information available in the classification format map or the editor format map.

.NET Framework Security

See Also

Reference

IVsFontsAndColorsInformation Interface

Microsoft.VisualStudio.Editor Namespace