バージョン

Appearance プロパティ (UltraTreeNodeCell)

この列セット内のセルのうち、より個別性の高い外観セットを持っていないセルに適用される外観を取得または設定します。
シンタックス
'宣言
 
Public Property Appearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase Appearance {get; set;}
解説

UltraTreeNodeCell オブジェクトの Appearance は、セルの表示方法を制御します。これはセル関連の各種外観の中で最も個別性の高いものです。UltraTreeNodeColumn オブジェクトの CellAppearance は、その列内のすべてのセルの外観を制御し、UltraTreeColumnSet オブジェクトの CellAppearance は、すべての列内のすべてのセルの外観を制御します。

使用例
Imports Infragistics.Win
Imports Infragistics.Win.Layout
Imports Infragistics.Win.UltraWinTree

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim cell As UltraTreeNodeCell = Me.ultraTree1.ActiveNode.Cells("CompanyName")

        '	If the cell's node is selected, use the appearance
        '	to make the cell more visually apparent.
        If cell.Node.Selected = False Then
            cell.Appearance.BackColor = Color.Red
            cell.Appearance.ForeColor = Color.White
        End If

        '	Assign an EditorWithText with a custom EmbeddableEditorOwnerBase
        '	derived implementation.
        cell.Editor = New EditorWithText(New CustomOwner(cell))

        '	Output the cell's displayed value to the debug window
        If cell.Column.NullText.Length = 0 AndAlso Not cell.Value Is Nothing Then
            Debug.WriteLine(cell.Text)
        Else
            Debug.WriteLine(cell.Column.NullText)
        End If

        '	Determine whether the cell is currently in view.
        Dim isInView As Boolean = (cell.UIElement Is Nothing = False)

    End Sub
using Infragistics.Win;
using Infragistics.Win.Layout;
using Infragistics.Win.UltraWinTree;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			UltraTreeNodeCell cell = this.ultraTree1.ActiveNode.Cells["CompanyName"];
			
			//	If the cell's node is selected, use the appearance
			//	to make the cell more visually apparent.
			if ( cell.Node.Selected == false )
			{
				cell.Appearance.BackColor = Color.Red;
				cell.Appearance.ForeColor = Color.White;
			}

			//	Assign an EditorWithText with a custom EmbeddableEditorOwnerBase
			//	derived implementation.
			cell.Editor = new EditorWithText( /*new CustomOwner(cell)*/ );

			//	Output the cell's displayed value to the debug window
			if ( cell.Column.NullText.Length == 0 && cell.Value != null )
				Debug.WriteLine( cell.Text );
			else
				Debug.WriteLine( cell.Column.NullText );
	
			//	Determine whether the cell is currently in view.
			bool isInView = cell.UIElement != null;
		}
参照