■ UltraComboEditor 클래스에서 자동 제안 하이라이트를 설정하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
using System.Drawing; using Infragistics.Win; using Infragistics.Win.UltraWinEditors; private UltraComboEditor ultraComboEditor; ... ValueList valueList = new ValueList(0); valueList.ValueListItems.Add(1, "One" ); valueList.ValueListItems.Add(2, "Two" ); valueList.ValueListItems.Add(3, "Three"); valueList.AutoSuggestHighlightAppearance.ForeColor = Color.Blue; valueList.AutoSuggestHighlightSelectedAppearance.BackColor = Color.Yellow; this.ultraComboEditor.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest; this.ultraComboEditor.AutoSuggestFilterMode = AutoSuggestFilterMode.Contains; this.ultraComboEditor.ValueList = valueList; |