Name Property
Collapse the table of content
Expand the table of content

ColorableItems.Name Property


Sets or gets the name of the ColorableItems object.

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

string Name { get; }

Property Value

Type: System.String

A string representing the name of ColorableItems object.

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)
End Sub
Return to top
© 2015 Microsoft