ToolStripItem.ImageTransparentColor プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ToolStripItem.ImageTransparentColor プロパティの意味・解説 

ToolStripItem.ImageTransparentColor プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

ToolStripItem イメージ内で透明と見なされる色を取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

<LocalizableAttribute(True)> _
Public Property ImageTransparentColor As
 Color
Dim instance As ToolStripItem
Dim value As Color

value = instance.ImageTransparentColor

instance.ImageTransparentColor = value
[LocalizableAttribute(true)] 
public Color ImageTransparentColor { get; set;
 }
[LocalizableAttribute(true)] 
public:
property Color ImageTransparentColor {
    Color get ();
    void set (Color value);
}
/** @property */
public Color get_ImageTransparentColor ()

/** @property */
public void set_ImageTransparentColor (Color
 value)
public function get ImageTransparentColor
 () : Color

public function set ImageTransparentColor
 (value : Color)

プロパティ
Color 値の 1 つ

使用例使用例

ToolStripItemImageImageScaling、および ImageTransparentColor設定する方法次のコード例示しますまた、項目にカスタム ツールヒント設定および表示する方法示します

Friend WithEvents imageButton As
 ToolStripButton

Private Sub InitializeImageButtonWithToolTip()

    ' Construct the button and set the image-related properties.
    imageButton = New ToolStripButton()
    imageButton.Image = New Bitmap(GetType(Timer),
 "Timer.bmp")
    imageButton.ImageScaling = ToolStripItemImageScaling.SizeToFit

    ' Set the background color of the image to be transparent.
    imageButton.ImageTransparentColor = Color.FromArgb(0, 255, 0)

    ' Show ToolTip text, set custom ToolTip text, and turn
    ' off the automatic ToolTips.
    toolStrip1.ShowItemToolTips = True
    imageButton.ToolTipText = "Click for the current time"
    imageButton.AutoToolTip = False

    ' Add the button to the ToolStrip.
    toolStrip1.Items.Add(imageButton)

End Sub
internal ToolStripButton imageButton;

private void InitializeImageButtonWithToolTip()
{

    // Construct the button and set the image-related properties.
    imageButton = new ToolStripButton();
    imageButton.Image = new Bitmap(typeof(Timer), "Timer.bmp");
    imageButton.ImageScaling = ToolStripItemImageScaling.SizeToFit;

    // Set the background color of the image to be transparent.
    imageButton.ImageTransparentColor = Color.FromArgb(0, 255, 0);

    // Show ToolTip text, set custom ToolTip text, and turn
    // off the automatic ToolTips.
    toolStrip1.ShowItemToolTips = true;
    imageButton.ToolTipText = "Click for the current time";
    imageButton.AutoToolTip = false;

    // Add the button to the ToolStrip.
    toolStrip1.Items.Add(imageButton);

}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ToolStripItem.ImageTransparentColor プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ToolStripItem.ImageTransparentColor プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS