Version

HAlign Enumeration

An enumerator for aligning text or images
Syntax
'Declaration
 
Public Enum HAlign 
   Inherits System.Enum
public enum HAlign : System.Enum 
Members
MemberDescription
CenterAlign in the center
DefaultUse the current default
LeftAlign to the left
RightAlign to the right
Example
This sample uses the image related properties of the appearance object. For simplicity we use the form's icon.

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;

}
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