Version

AppearancesCollection Class

A collection of Appearance objects.
Syntax
'Declaration
 
Public Class AppearancesCollection 
   Inherits Infragistics.Shared.KeyedSubObjectsCollectionBase
public class AppearancesCollection : Infragistics.Shared.KeyedSubObjectsCollectionBase 
Example
This sample adds and initializes a new appearance object into the Appearances collection of an ultraWinGrid.

Private Sub InitializeAppearances()

    Me.UltraGrid1.DisplayLayout.Appearances.Add("Header Appearance")
    Me.UltraGrid1.DisplayLayout.Appearances("Header Appearance").BackColor2 = Color.Yellow
    Me.UltraGrid1.DisplayLayout.Appearances("Header Appearance").BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal

    Me.UltraGrid1.DisplayLayout.Override.HeaderAppearance = Me.UltraGrid1.DisplayLayout.Appearances("Header Appearance")

End Sub
private void InitializeAppearances()
{

	this.ultraGrid1.DisplayLayout.Appearances.Add("Header Appearance");
	this.ultraGrid1.DisplayLayout.Appearances["Header Appearance"].BackColor2 = Color.Yellow;
	this.ultraGrid1.DisplayLayout.Appearances["Header Appearance"].BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal ;
		
      this.ultraGrid1.DisplayLayout.Override.HeaderAppearance = this.ultraGrid1.DisplayLayout.Appearances["Header 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