ColorableItems Interface
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.
Represents the portions of an item that can be colored, such as the foreground and background.
public interface class ColorableItems
public interface class ColorableItems
__interface ColorableItems
[System.Runtime.InteropServices.Guid("E5D17051-D6E5-4DA7-8B3A-CA888617A5E7")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface ColorableItems
[System.Runtime.InteropServices.Guid("E5D17051-D6E5-4DA7-8B3A-CA888617A5E7")]
public interface ColorableItems
[<System.Runtime.InteropServices.Guid("E5D17051-D6E5-4DA7-8B3A-CA888617A5E7")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type ColorableItems = interface
[<System.Runtime.InteropServices.Guid("E5D17051-D6E5-4DA7-8B3A-CA888617A5E7")>]
type ColorableItems = interface
Public Interface ColorableItems
- 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
Remarks
ColorableItems objects are contained in the FontsAndColorsItems collection.
Properties
Background |
Sets or gets the background color of the item. |
Bold |
Sets or gets whether or not the item should appear in bold. |
Foreground |
Sets or gets the foreground color of the item. |
Name |
Sets or gets the name of the ColorableItems object. |