Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

FontsAndColorsItems Interface

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

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

[GuidAttribute("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")] 
public interface FontsAndColorsItems : IEnumerable
/** @attribute GuidAttribute("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353") */ 
public interface FontsAndColorsItems extends IEnumerable
GuidAttribute("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353") 
public interface FontsAndColorsItems extends 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)
   Next
   MsgBox(ClrList)
End Sub

Community Additions

ADD
Show:
© 2015 Microsoft