ColorableItems.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets or gets the name of the ColorableItems object.
public:
property System::String ^ default { System::String ^ get(); };
public:
property Platform::String ^ default { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(0)]
public string this { [System.Runtime.InteropServices.DispId(0)] get; }
[<System.Runtime.InteropServices.DispId(0)>]
[<get: System.Runtime.InteropServices.DispId(0)>]
member this.Name : string
Default Public ReadOnly Property Name As String
Property Value
A string representing the name of ColorableItems object.
- Attributes
Examples
Sub ColorableItemsExample()
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
Dim ClrList As String
For Each clritem In clritems
ClrList += clritem.Name + " (" + clritem.Foreground.ToString() + ")"
ClrList += Chr(13) & Chr(10)
Next
MsgBox(ClrList)
End Sub