Proprietà ColorableItems.Name

Aggiornamento: novembre 2007

Ottiene o imposta il nome dell'oggetto ColorableItems.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

ReadOnly Default Property Name As String

Dim instance As ColorableItems
Dim value As String

value = instance
string this { get; }
property String^ default {
    String^ get ();
}
function get Name () : String

Valore proprietà

Tipo: System.String

Una stringa che rappresenta il nome dell'oggetto ColorableItems.

Esempi

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

Autorizzazioni

Vedere anche

Riferimenti

ColorableItems Interfaccia

Membri ColorableItems

Spazio dei nomi EnvDTE

Altre risorse

Procedura: compilare ed eseguire gli esempi di codice del modello a oggetti di automazione