ColorableItems.Background プロパティ
更新 : 2007 年 11 月
アイテムの背景色を設定または取得します。
名前空間 : EnvDTE
アセンブリ : EnvDTE (EnvDTE.dll 内)
構文
'宣言
Property Background As UInteger
'使用
Dim instance As ColorableItems
Dim value As UInteger
value = instance.Background
instance.Background = value
uint Background { get; set; }
property unsigned int Background {
unsigned int get ();
void set (unsigned int value);
}
function get Background () : uint
function set Background (value : uint)
プロパティ値
型 : System.UInt32
アイテムの色を指定する単位。
例
Sub BackgroundExample()
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 = clritems.Item(1)
Dim ClrList As String
ClrList += "Background color: " & clritem.Background.ToString & vbCr
ClrList += "Foreground color: " & clritem.Foreground.ToString & vbCr
ClrList += "Bold?: " & clritem.Bold.ToString
MsgBox(ClrList)
End Sub
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。