ColorableItems.Bold الخاصية
يعين أو يحصل على ما إذا كان يجب أن يظهر العنصر بخط غامق أم لا.
مساحة الاسم: EnvDTE
التجميع: EnvDTE (في EnvDTE.dll)
بناء الجملة
'إقرار
Property Bold As Boolean
Get
Set
bool Bold { get; set; }
property bool Bold {
bool get ();
void set (bool value);
}
abstract Bold : bool with get, set
function get Bold () : boolean
function set Bold (value : boolean)
قيمة الخاصية
النوع: System.Boolean
قيمة منطقية تشير إلى trueإذا كان العنصر هو غامق، falseإذا عدم.
أمثلة
Sub BoldExample()
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.
- الثقة الكاملة للمتصل الفوري. يتعذر استخدام هذا العضو بواسطة التعليمات البرمجية الموثوق بها جزئيًا. لمزيد من المعلومات، راجع باستخدام مكتبات من تعليمات برمجية موثوق بها جزئي.