Interface ColorableItems
Representa as partes de um item que pode ser colorido, como o primeiro plano e plano de fundo.
Namespace: EnvDTE
Assembly: EnvDTE (em EnvDTE. dll)
Sintaxe
<GuidAttribute("E5D17051-D6E5-4DA7-8B3A-CA888617A5E7")> _
Public Interface ColorableItems
Dim instance As ColorableItems
[GuidAttribute("E5D17051-D6E5-4DA7-8B3A-CA888617A5E7")]
public interface ColorableItems
[GuidAttribute(L"E5D17051-D6E5-4DA7-8B3A-CA888617A5E7")]
public interface class ColorableItems
public interface ColorableItems
Comentários
ColorableItems objetos estão contidos na coleção FontsAndColorsItems.
Exemplos
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)
Next
MsgBox(ClrList)
End Sub