Udostępnij za pośrednictwem


FontsAndColorsItems Interface

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

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

Syntax

'Declaration
<GuidAttribute("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")> _
Public Interface FontsAndColorsItems _
    Inherits IEnumerable
[GuidAttribute("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")]
public interface FontsAndColorsItems : IEnumerable
[GuidAttribute(L"F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")]
public interface class FontsAndColorsItems : IEnumerable
[<GuidAttribute("F25AE7E6-1460-4BA4-8E5E-BBBE746DE353")>]
type FontsAndColorsItems =  
    interface
        interface IEnumerable
    end
public interface FontsAndColorsItems extends IEnumerable

The FontsAndColorsItems type exposes the following members.

Properties

  Name Description
Public property Count Gets a value indicating the number of objects in the FontsAndColorsItems collection.

Top

Methods

  Name Description
Public method GetEnumerator Gets an enumerator for items in the collection.
Public method Item Returns a ColorableItems object in a FontsAndColorsItems collection.

Top

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

See Also

Reference

EnvDTE Namespace