DEFAULTITEMS Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies default types that identify items in the core editor view for colorizing.
public enum class DEFAULTITEMS
public enum class DEFAULTITEMS
enum DEFAULTITEMS
public enum DEFAULTITEMS
type DEFAULTITEMS =
Public Enum DEFAULTITEMS
- Inheritance
-
DEFAULTITEMS
Name | Value | Description |
---|---|---|
COLITEM_TEXT | 0 | Default value for plain text. |
COLITEM_KEYWORD | 1 | Denotes a language keyword. |
COLITEM_COMMENT | 2 | Denotes a language comment. |
COLITEM_IDENTIFIER | 3 | Denotes a language identifier. For example, in int MyVariable, MyVariable is an identifier, while int is a keyword. |
COLITEM_STRING | 4 | Denotes a string. |
COLITEM_NUMBER | 5 | Denotes a number. |
DEFAULT_ITEM_COUNT | 6 | This is the last enumeration value. |
The following colors are associated with the DEFAULTITEMS indices by default:
Item | Foreground | Background | Font flags |
---|---|---|---|
COLITEM_KEYWORD | CI_BLUE | CI_USERTEXT_BK | FF_BOLD |
COLITEM_COMMENT | CI_DARKGREEN | CI_USERTEXT_BK | 0 |
COLITEM_IDENTIFIER | CI_USERTEXT_FG | CI_USERTEXT_BK | 0 |
COLITEM_STRING | CI_USERTEXT_FG | CI_USERTEXT_BK | 0 |
COLITEM_NUMBER | CI_USERTEXT_FG | CI_USERTEXT_BK | 0 |
From textmgr.idl:
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |