Proprietà ColorableItems.Background

Aggiornamento: novembre 2007

Ottiene o imposta il colore di sfondo dell'elemento.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

Property Background As UInteger

Dim instance As ColorableItems
Dim value As UInteger

value = instance.Background

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

Valore proprietà

Tipo: System.UInt32

Unità che specifica il colore dell'elemento.

Esempi

Sub BackgroundExample()
   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

Autorizzazioni

Vedere anche

Riferimenti

ColorableItems Interfaccia

Membri ColorableItems

Spazio dei nomi EnvDTE