ColorableItems.Background Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Define ou obtém a cor do plano de fundo do item.
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
Valor da propriedade
Uma unidade que especifica a cor do item.
- Atributos
Exemplos
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