This documentation is archived and is not being maintained.

FontsAndColorsItems Interface

Contains ColorableItems objects that define the color, appearance, and other attributes of items.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

public interface FontsAndColorsItems : IEnumerable

Sub FontsAndColorsItemsExample()
   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)
End Sub