バージョン

ImageSizeLarge プロパティ

UltraExplorerBarItem および の大きい UltraExplorerBarGroup 画像で使用されるサイズを取得または設定します。
シンタックス
'宣言
 
Public Property ImageSizeLarge As Size
public Size ImageSizeLarge {get; set;}
解説

ImageListLargeからインデックスによって指定するか、または外観のImageプロパティによって直接指定するかにかかわらず、このサイズよりも小さいイメージは中央に配置され、大きいイメージは伸縮されます。

使用例
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;
		}
参照