Compartir a través de


ColorableItems.Bold Property

Sets or gets whether or not the item should appear in bold.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Property Bold As Boolean
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)

Property Value

Type: System.Boolean
A Boolean value indicating true if the item is bold, false if not.

Examples

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 Security

See Also

Reference

ColorableItems Interface

EnvDTE Namespace