Version

ImageTransparentColor Property

Returns/sets the color that is treated as the transparent color when drawing UltraExplorerBarGroup and UltraExplorerBarItem images.
Syntax
'Declaration
 
Public Property ImageTransparentColor As Color
public Color ImageTransparentColor {get; set;}
Remarks

When set to a color other than Color.Transparent (the default), all occurrences of the color in the image will be made transparent.

If an image is supplied by setting an Appearance.Image property to an Imagelist index, the ImageLists TransparentColor property is looked at first. If the property is set to Color.TransparentColor, then the control's ImageTransparentColor is used. If it is set to Color.TransparentColor, then no color masking is done.

If an image is supplied by setting the Appearance.Image property to an image, the control's ImageTransparentColor is used. If it is set to Color.TransparentColor, then no color masking is done.

Example
The following code shows how to add images to the control's small image list and how to specify the size forlarge and small images.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button8.Click

		If (Not Me.ultraExplorerBar1.ImageListSmall Is Nothing) Then
			' Add some images to the ImageList that supplies the small images.
			Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application)
			Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk)


			' Add some images to the ImageList that supplies the large images.
			Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application)
			Me.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk)
		End If


		' Set the small and large image sizes.  This will determine how much space the control sets
		' aside for small and large images.
		Me.ultraExplorerBar1.ImageSizeSmall = New Size(22, 22)
		Me.ultraExplorerBar1.ImageSizeLarge = New Size(42, 43)


		' Set the color that chould be interperted as the transparent color.
		Me.ultraExplorerBar1.ImageTransparentColor = Color.Magenta

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;

		private void button8_Click(object sender, System.EventArgs e)
		{
			if (this.ultraExplorerBar1.ImageListSmall != null)
			{
				// Add some images to the ImageList that supplies the small images.
				this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application);
				this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk);


				// Add some images to the ImageList that supplies the large images.
				this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Application);
				this.ultraExplorerBar1.ImageListSmall.Images.Add(SystemIcons.Asterisk);
			}


			// Set the small and large image sizes.  This will determine how much space the control sets
			// aside for small and large images.
			this.ultraExplorerBar1.ImageSizeSmall	= new Size(22, 22);
			this.ultraExplorerBar1.ImageSizeLarge	= new Size(42, 43);


			// Set the color that chould be interperted as the transparent color.
			this.ultraExplorerBar1.ImageTransparentColor	= Color.Magenta;
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also