次の方法で共有


ColorableItems.Bold Property

Definition

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

public:
 property bool Bold { bool get(); void set(bool value); };
public:
 property bool Bold { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(3)]
public bool Bold { [System.Runtime.InteropServices.DispId(3)] get; [System.Runtime.InteropServices.DispId(3)] set; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
[<set: System.Runtime.InteropServices.DispId(3)>]
member this.Bold : bool with get, set
Public Property Bold As Boolean

Property Value

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

Attributes

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  

Applies to