Partilhar via


Propriedade ColorableItems.Foreground

Define ou obtém a Cor do primeiro plano do item.

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

Sintaxe

Property Foreground As UInteger

Dim instance As ColorableItems
Dim value As UInteger

value = instance.Foreground

instance.Foreground = value
uint Foreground { get; set; }
property unsigned int Foreground {
    unsigned int get ();
    void set (unsigned int value);
}
function get Foreground () : uint
function set Foreground (value : uint)

Valor da propriedade

Tipo: System.UInt32
Uma unidade especificar a cor do item.

Exemplos

Sub ForegroundExample()
   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 = clritems.Item(1)
   Dim ClrList As String

   ClrList += "Background color: " & clritem.Background.ToString & vbCr
   ClrList += "Foreground color: " & clritem.Foreground.ToString & vbCr
   ClrList += "Bold?: " & clritem.Bold.ToString
   MsgBox(ClrList)
End Sub

Permissões

Consulte também

Referência

ColorableItems Interface

ColorableItems Membros

Espaço para nome EnvDTE