ColorableItems Interface
Represents the portions of an item that can be colored, such as the foreground and background.
Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)
Assembly: EnvDTE (in envdte.dll)
ColorableItems objects are contained in the FontsAndColorsItems collection.
Sub ColorableItemsExample() Dim props As EnvDTE.Properties props = DTE.Properties("FontsAndColors", "TextEditor") Dim prop As EnvDTE.Property = props.Item("FontsAndColorsItems") Dim clritems As EnvDTE.FontsAndColorsItems = prop.Object Dim clritem As EnvDTE.ColorableItems Dim ClrList As String For Each clritem In clritems ClrList += clritem.Name + " (" + clritem.Foreground.ToString() + ")" ClrList += Chr(13) & Chr(10) Next MsgBox(ClrList) End Sub