مشاركة عبر


ColorableItems.Background الخاصية

تعيين أو الحصول على اللون الخلفية العنصر.

مساحة الاسم:  EnvDTE
التجميع:  EnvDTE (في EnvDTE.dll)

بناء الجملة

'إقرار
Property Background As UInteger
    Get
    Set
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)

قيمة الخاصية

النوع: System.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 واجهة

ColorableItems الأعضاء

EnvDTE مساحة الاسم