Partilhar via


FontsAndColorsItems Interface

Definition

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

public interface class FontsAndColorsItems : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface FontsAndColorsItems : System.Collections.IEnumerable
[System.Runtime.InteropServices.Guid("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")]
public interface FontsAndColorsItems : System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type FontsAndColorsItems = interface
    interface IEnumerable
[<System.Runtime.InteropServices.Guid("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")>]
type FontsAndColorsItems = interface
    interface IEnumerable
Public Interface FontsAndColorsItems
Implements IEnumerable
Attributes
Implements

Examples

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  

Properties

Count

Gets a value indicating the number of objects in the FontsAndColorsItems collection.

Methods

GetEnumerator()

Gets an enumerator for items in the collection.

Item(Object)

Returns a ColorableItems object in a FontsAndColorsItems collection.

Applies to