ImageTransparentColor Property

ToolStripItem.ImageTransparentColor Property


Gets or sets the color to treat as transparent in a ToolStripItem image.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member ImageTransparentColor : Color with get, set

Property Value

Type: System.Drawing.Color

One of the Color values.

The following code example demonstrates how to set the Image, ImageScaling, and ImageTransparentColor for a ToolStripItem. In addition, it demonstrates how to set and show a custom ToolTip for the item.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft