ColorableItems.Name Property
Sets or gets the name of the ColorableItems object.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Default Property Name As String
string this { get; }
property String^ default {
String^ get ();
}
abstract Name : string with get
function get Name () : String
Property Value
Type: System.String
A string representing the name of ColorableItems object.
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples