バージョン

HAlign 列挙体

テキストまたは画像の配置のための列挙子
シンタックス
'宣言
 
Public Enum HAlign 
   Inherits System.Enum
public enum HAlign : System.Enum 
メンバ
メンバ解説
Center中央揃え
Default現在のデフォルトを使用
Left左揃え
Right右揃え
使用例
Imports Infragistics.Win
	
Private Sub SetupGridImages()

    Dim appearance As Appearance = New Appearance()

    appearance.ImageBackground = Me.Icon.ToBitmap()
    appearance.ImageBackgroundOrigin = ImageBackgroundOrigin.Form
    appearance.ImageBackgroundStyle = ImageBackgroundStyle.Stretched
    appearance.ImageBackgroundAlpha = Alpha.UseAlphaLevel
    appearance.AlphaLevel = 125
    appearance.Image = Me.Icon.ToBitmap()
    appearance.ImageVAlign = VAlign.Middle
    appearance.ImageHAlign = HAlign.Center

    Me.ultraGrid1.DisplayLayout.Appearance = appearance

End Sub
using Infragistics.Win;

private void SetupGridImages()
{

	Appearance appearance = new Appearance();

	appearance.ImageBackground = this.Icon.ToBitmap();
	appearance.ImageBackgroundOrigin = ImageBackgroundOrigin.Form;
	appearance.ImageBackgroundStyle = ImageBackgroundStyle.Stretched ;
	appearance.ImageBackgroundAlpha = Alpha.UseAlphaLevel ;
	appearance.AlphaLevel = 125;
	appearance.Image = this.Icon.ToBitmap();
	appearance.ImageVAlign = VAlign.Middle;
	appearance.ImageHAlign = HAlign.Center;
	
	this.ultraGrid1.DisplayLayout.Appearance  = appearance;

}
参照