次の方法で共有


ColorableItems.Foreground プロパティ

アイテムの前景色を設定または取得します。

名前空間:  EnvDTE
アセンブリ:  EnvDTE (EnvDTE.dll 内)

構文

'宣言
Property Foreground As UInteger
uint Foreground { get; set; }
property unsigned int Foreground {
    unsigned int get ();
    void set (unsigned int value);
}
abstract Foreground : uint32 with get, set
function get Foreground () : uint 
function set Foreground (value : uint)

プロパティ値

型 : UInt32
アイテムの色を指定する単位。

Sub ForegroundExample()
   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

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

ColorableItems インターフェイス

EnvDTE 名前空間