'宣言 Public Property ActiveCellAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase ActiveCellAppearance {get; set;}
ActiveCellAppearance プロパティは、より個別性の高いレベルでも公開されています (ActiveCellAppearance および ActiveCellAppearance を参照) 。このプロパティを UltraTreeColumnSettings レベルで設定すると、UltraTreeによって表示されるすべてのセルに作用します。
Imports Infragistics.Win Imports Infragistics.Win.UltraWinTree Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Use the ActiveCellAppearance to bring attention to the cell ' with the input focus Me.ultraTree1.ColumnSettings.ActiveCellAppearance.BackColor = Color.Red Me.ultraTree1.ColumnSettings.ActiveCellAppearance.ForeColor = Color.White ' Set AllowCellEdit to 'ActivateOnly' so that clicking a cell does ' not put in into edit mode immediately Me.ultraTree1.ColumnSettings.AllowCellEdit = AllowCellEdit.ActivateOnly ' Set TabNavigation to 'NextCell' so that the tab key can be used to ' navigate to a cell Me.ultraTree1.ColumnSettings.TabNavigation = TabNavigation.NextCell ' Enable tooltips for cells whose value is not fully visible Me.ultraTree1.ColumnSettings.TipStyleCell = TipStyleCell.Show End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinTree; using System.Diagnostics; private void button1_Click(object sender, System.EventArgs e) { // Use the ActiveCellAppearance to bring attention to the cell // with the input focus this.ultraTree1.ColumnSettings.ActiveCellAppearance.BackColor = Color.Red; this.ultraTree1.ColumnSettings.ActiveCellAppearance.ForeColor = Color.White; // Set AllowCellEdit to 'ActivateOnly' so that clicking a cell does // not put in into edit mode immediately this.ultraTree1.ColumnSettings.AllowCellEdit = AllowCellEdit.ActivateOnly; // Set TabNavigation to 'NextCell' so that the tab key can be used to // navigate to a cell this.ultraTree1.ColumnSettings.TabNavigation = TabNavigation.NextCell; // Enable tooltips for cells whose value is not fully visible this.ultraTree1.ColumnSettings.TipStyleCell = TipStyleCell.Show; }