バージョン

Appearances プロパティ (UltraGridLayout)

このコントロールで使用するために作成されたすべてのAppearanceオブジェクトのコレクション。
シンタックス
'宣言
 
Public ReadOnly Property Appearances As Infragistics.Win.AppearancesCollection
public Infragistics.Win.AppearancesCollection Appearances {get;}
解説

Appearances コレクションは、開発者が明示的に作成し、事前定義された書式テンプレートとしてコントロールに追加した Appearance オブジェクトの格納に使用されます。コントロール内に存在するすべてのAppearanceオブジェクトのコレクションを表すものではありません。UltraGridBand、UltraGridRow、UltraGridCell などのオブジェクトによって保存された組み込みの Appearance オブジェクトは、グリッドの Appearances コレクションには含まれません。

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

  Private Sub Button38_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button38.Click

      Dim app1 As Infragistics.Win.Appearance = Nothing

      ' Calling Add method with a key will create a new Appearance object and add it to
      ' the collection. The passed in string is the key of the new appearance that you can
      ' use to access the appearance later on. The return value is the new appearance object
      ' that was created.
      app1 = Me.UltraGrid1.DisplayLayout.Appearances.Add("A1")

      ' Setup the app1 appearance.
      app1.BackColor = Color.Blue
      app1.ForeColor = Color.White

      ' Here is the code that shows you how to use the AppearancesCollection to access the
      ' appearances that we have added to it.
      Me.UltraGrid1.DisplayLayout.Override.CellAppearance = Me.UltraGrid1.DisplayLayout.Appearances("A1")

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

private void button38_Click(object sender, System.EventArgs e)
{

	Infragistics.Win.Appearance app1 = null;

	// Calling Add method with a key will create a new Appearance object and add it to
	// the collection. The passed in string is the key of the new appearance that you can
	// use to access the appearance later on. The return value is the new appearance object
	// that was created.
	app1 = this.ultraGrid1.DisplayLayout.Appearances.Add( "A1" );

	// Setup the app1 appearance.
	app1.BackColor = Color.Blue;
	app1.ForeColor = Color.White;

	// Here is the code that shows you how to use the AppearancesCollection to access the
	// appearances that we have added to it.
	this.ultraGrid1.DisplayLayout.Override.CellAppearance = this.ultraGrid1.DisplayLayout.Appearances["A1"];

}
参照