Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DEFAULTITEMS Enumeration
Collapse the table of content
Expand the table of content

DEFAULTITEMS Enumeration

Specifies default types that identify items in the core editor view for colorizing.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

public enum DEFAULTITEMS
public enum DEFAULTITEMS
public enum DEFAULTITEMS

 Member nameDescription
COLITEM_COMMENTDenotes a language comment. 
COLITEM_IDENTIFIERDenotes a language identifier. For example, in int MyVariable, MyVariable is an identifier, while int is a keyword. 
COLITEM_KEYWORDDenotes a language keyword. 
COLITEM_NUMBERDenotes a number. 
COLITEM_STRINGDenotes a string. 
COLITEM_TEXTDefault value for plain text. 
DEFAULT_ITEM_COUNTThis 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

COM Signature

From textmgr.idl:

Community Additions

ADD
Show:
© 2015 Microsoft