バージョン

ImageTransparentColor プロパティ

イメージ内で透明色として表示される色を取得または設定します。
シンタックス
'宣言
 
Public Property ImageTransparentColor As Color
public Color ImageTransparentColor {get; set;}
解説

Color.Transparent (デフォルト) 以外の色に設定すると、イメージ内のその色がすべて透明になります。

Appearance.Image プロパティを Imagelist のインデックスに設定する方法でイメージを提供している場合は、最初に ImageList の TransparentColor プロパティが最初に参照されます。そのプロパティが Color.TransparentColor に設定されていれば、コンポーネントの ImageTransparentColor が使用されます。それが Color.TransparentColor に設定されている場合、カラー マスキングは行われません。

Appearance.Image プロパティをイメージに設定する方法でイメージを提供している場合は、コンポーネントの ImageTransparentColor が使用されます。それが Color.TransparentColor に設定されている場合、カラー マスキングは行われません。

使用例
Imports Infragistics.Shared
 Imports Infragistics.Win
 Imports Infragistics.Win.UltraWinDock

 Private Sub InitializeDockManager(ByVal dockManager As UltraDockManager)

     ' Disable window xp themes
     dockManager.SupportThemes = False

     ' Wait 2 seconds before hiding the flyout
     ' window containing a non active control pane
     dockManager.AutoHideDelay = 2000

     ' Increate the flyout animation speed
     dockManager.AnimationSpeed = AnimationSpeed.StandardSpeedPlus3

     ' Using the window style captions and tabs
     dockManager.WindowStyle = WindowStyle.Windows

     ' When available, drag a layered window instead
     ' of the standard outline rect
     dockManager.DragWindowStyle = DragWindowStyle.LayeredWindow

     ' Disable the context menus displayed when you right click
     ' on the unpinned tab areas and the window captions
     dockManager.UseDefaultContextMenus = False

     ' Enable hot tracking
     dockManager.HotTracking = True

     ' Initialize the hot track forecolor for a pane and tab captions
     dockManager.DefaultPaneSettings.HotTrackingCaptionAppearance.ForeColor = SystemColors.HotTrack
     dockManager.DefaultPaneSettings.HotTrackingTabAppearance.ForeColor = SystemColors.HotTrack

     ' Create a gradient for the active pane's caption
     dockManager.DefaultPaneSettings.ActiveCaptionAppearance.BackColor = SystemColors.ActiveCaption
     dockManager.DefaultPaneSettings.ActiveCaptionAppearance.BackColor2 = SystemColors.ActiveCaptionText
     dockManager.DefaultPaneSettings.ActiveCaptionAppearance.BackGradientStyle = GradientStyle.Horizontal

     ' Hide disabled buttons
     dockManager.ShowDisabledButtons = False

     ' Display the maximize button to allow a single pane
     ' within a vertical or horizontally split group of
     ' panes to be maximized.
     dockManager.ShowMaximizeButton = True

     ' Initialize the splitter bars
     dockManager.BorderStyleSplitterBars = UIElementBorderStyle.Dotted
     dockManager.SplitterBarWidth = 3

     ' When the close button for a pane in a tab group
     ' is pressed, close all the items in the group
     dockManager.DefaultGroupSettings.CloseButtonBehavior = CloseButtonBehavior.CloseTabGroup

     ' When the pin button for a pane in a tab group is
     ' pressed, pin/unpin all the members in the group
     dockManager.DefaultGroupSettings.PinButtonBehavior = PinButtonBehavior.PinTabGroup

      ' Initialize the image sizes
     dockManager.ImageSizeCaption = New Size(16, 16)
     dockManager.ImageSizeTab = New Size(20, 20)

' Scale images down to the specified sizes for the 'ImageSizeCaption'
' and 'ImageSizeTab' when the image size exceeds the specified size.
dockManager.ScaleImages = ScaleImage.OnlyWhenNeeded

     ' Initialize the color to mask from images
     dockManager.ImageTransparentColor = Color.Magenta

    ' Unhide any closed or unpinned panes
     dockManager.ShowAll(True)

 End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDock;
using System.Diagnostics;

private void InitializeDockManager(UltraDockManager dockManager)
{

	// Disable window xp themes
	dockManager.SupportThemes = false;

	// Wait 2 seconds before hiding the flyout
	// window containing a non active control pane
	dockManager.AutoHideDelay = 2000;

	// Increate the flyout animation speed
	dockManager.AnimationSpeed = AnimationSpeed.StandardSpeedPlus3;

	// Using the window style captions and tabs
	dockManager.WindowStyle = WindowStyle.Windows;

	// When available, drag a layered window instead
	// of the standard outline rect
	dockManager.DragWindowStyle = DragWindowStyle.LayeredWindow;

	// Disable the context menus displayed when you right click
	// on the unpinned tab areas and the window captions
	dockManager.UseDefaultContextMenus = false;

	// Enable hot tracking
	dockManager.HotTracking = true;

	// Initialize the hot track forecolor for a pane and tab captions
	dockManager.DefaultPaneSettings.HotTrackingCaptionAppearance.ForeColor = SystemColors.HotTrack;
	dockManager.DefaultPaneSettings.HotTrackingTabAppearance.ForeColor = SystemColors.HotTrack;

	// Create a gradient for the active pane's caption
	dockManager.DefaultPaneSettings.ActiveCaptionAppearance.BackColor = SystemColors.ActiveCaption;
	dockManager.DefaultPaneSettings.ActiveCaptionAppearance.BackColor2 = SystemColors.ActiveCaptionText;
	dockManager.DefaultPaneSettings.ActiveCaptionAppearance.BackGradientStyle = GradientStyle.Horizontal;

	// Hide disabled buttons
	dockManager.ShowDisabledButtons = false;

	// Display the maximize button to allow a single pane
	// within a vertical or horizontally split group of
	// panes to be maximized.
	dockManager.ShowMaximizeButton = true;

	// Initialize the splitter bars
	dockManager.BorderStyleSplitterBars = UIElementBorderStyle.Dotted;
	dockManager.SplitterBarWidth = 3;

	// When the close button for a pane in a tab group
	// is pressed, close all the items in the group
	dockManager.DefaultGroupSettings.CloseButtonBehavior = CloseButtonBehavior.CloseTabGroup;

	// When the pin button for a pane in a tab group is
	// pressed, pin/unpin all the members in the group
	dockManager.DefaultGroupSettings.PinButtonBehavior = PinButtonBehavior.PinTabGroup;

	// Initialize the image sizes
	dockManager.ImageSizeCaption = new Size(16, 16);
	dockManager.ImageSizeTab = new Size(20, 20);

	// Scale images down to the specified sizes for the 'ImageSizeCaption'
	// and 'ImageSizeTab' when the image size exceeds the specified size.
	dockManager.ScaleImages = ScaleImage.OnlyWhenNeeded;

	// Initialize the color to mask from images
	dockManager.ImageTransparentColor = Color.Magenta;

	// Unhide any closed or unpinned panes
	dockManager.ShowAll(true);

}
参照