Share via


ColorableItems.Background 속성

항목의 배경색을 가져오거나 설정합니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

‘선언
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)

속성 값

형식: UInt32
항목의 색을 지정하는 단위입니다.

예제

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

.NET Framework 보안

참고 항목

참조

ColorableItems 인터페이스

EnvDTE 네임스페이스