ColorableItems.Name プロパティ
ColorableItems オブジェクトの名前を設定または取得します。
名前空間: EnvDTE
アセンブリ: EnvDTE (EnvDTE.dll 内)
構文
'宣言
ReadOnly Default Property Name As String
string this { get; }
property String^ default {
String^ get ();
}
abstract Name : string with get
function get Name () : String
プロパティ値
型 : String
ColorableItems オブジェクトの名前を表す文字列。
例
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 セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。