ColorableItems.Background Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Задает или возвращает цвет фона элемента.
public:
property System::UInt32 Background { System::UInt32 get(); void set(System::UInt32 value); };
public:
property unsigned int Background { unsigned int get(); void set(unsigned int value); };
[System.Runtime.InteropServices.ComAliasName("stdole.OLE_COLOR")]
[System.Runtime.InteropServices.DispId(2)]
public uint Background { [System.Runtime.InteropServices.DispId(2)] get; [System.Runtime.InteropServices.DispId(2)] set; }
[<System.Runtime.InteropServices.ComAliasName("stdole.OLE_COLOR")>]
[<System.Runtime.InteropServices.DispId(2)>]
[<get: System.Runtime.InteropServices.DispId(2)>]
[<set: System.Runtime.InteropServices.DispId(2)>]
member this.Background : uint32 with get, set
Public Property Background As UInteger
Значение свойства
Элемент, определяющий цвет элемента.
- Атрибуты
Примеры
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