ColorableItem Constructor (String^, String^, COLORINDEX, COLORINDEX, Color, Color, FONTFLAGS)
Initializes the ColorableItem class and accepts all the information needed to describe a colorable item.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public:
ColorableItem(
String^ name,
String^ displayName,
COLORINDEX foreColor,
COLORINDEX backColor,
Color hiForeColor,
Color hiBackColor,
FONTFLAGS fontFlags
)
Parameters
- name
-
Type:
System::String^
[in] The name of the colorable item. This can be used in the properties listing if you support customizing your own custom colors.
- displayName
-
Type:
System::String^
[in] The name of the colorable item that is displayed in the Fonts and Colors list of colors. This is the localized name.
- foreColor
-
Type:
Microsoft.VisualStudio.TextManager.Interop::COLORINDEX
[in] The text's foreground color as specified by a value from the COLORINDEX enumeration.
- backColor
-
Type:
Microsoft.VisualStudio.TextManager.Interop::COLORINDEX
[in] The text's background color as specified by a value from the COLORINDEX enumeration.
- hiForeColor
-
Type:
System.Drawing::Color
[in] A Color structure describing the foreground color in terms of red, green, blue components. This value can be Empty if high colors are not used.
- hiBackColor
-
Type:
System.Drawing::Color
[in] A Color structure describing the background color in terms of red, green, blue components. This value can be Empty if high colors are not used.
- fontFlags
-
Type:
Microsoft.VisualStudio.TextManager.Interop::FONTFLAGS
[in] A set of flags from the FONTFLAGS enumeration describing how the text is to be rendered.
All of this information must be specified for each colorable item.