ColorableItems.Bold, propriété

Définit ou obtient une valeur indiquant si l'élément doit s'afficher en gras.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

'Déclaration
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)

Valeur de propriété

Type : System.Boolean
Valeur booléenne indiquant true si l'élément est en gras, false dans le cas contraire.

Exemples

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

Sécurité .NET Framework

Voir aussi

Référence

ColorableItems Interface

EnvDTE, espace de noms