Udostępnij za pośrednictwem


Właściwość ColorableItems.Background —

Ustawia lub pobiera kolor tła elementu.

Przestrzeń nazw:  EnvDTE
Zestaw:  EnvDTE (w EnvDTE.dll)

Składnia

'Deklaracja
Property Background As UInteger
uint Background { get; set; }
property unsigned int Background {
    unsigned int get ();
    void set (unsigned int value);
}
abstract Background : uint32 with get, set
function get Background () : uint
function set Background (value : uint)

Wartość właściwości

Typ: System.UInt32
Jednostka, określanie koloru towaru.

Przykłady

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

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

ColorableItems Interfejs

Przestrzeń nazw EnvDTE