GrapeCity.Win.PluginInputMan アセンブリ > GrapeCity.Win.Spread.InputMan.CellType 名前空間 > GcComboBoxCellType クラス : AutoCompleteCustomSource プロパティ |
'Declaration
Public Property AutoCompleteCustomSource As AutoCompleteStringCollection
'使用法
Dim instance As GcComboBoxCellType Dim value As AutoCompleteStringCollection instance.AutoCompleteCustomSource = value value = instance.AutoCompleteCustomSource
public AutoCompleteStringCollection AutoCompleteCustomSource {get; set;}
AutoCompleteCustomSourceプロパティの使用は任意ですが、AutoCompleteCustomSourceを使用するためには、AutoCompleteSourceプロパティをCustomSourceに設定する必要があります。
AutoCompleteModeプロパティとAutoCompleteSourceプロパティは組み合わせて使用する必要があります。
AutoCompleteStringCollection acsc = new AutoCompleteStringCollection(); acsc.AddRange(new string[] { "Gouda", "Swiss", "Brie" }); GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType(); gccombo.Items.Add("Gouda"); gccombo.Items.Add("Swiss"); gccombo.Items.Add("Brie"); gccombo.AutoCompleteCustomSource = acsc; gccombo.AutoCompleteMode = AutoCompleteMode.Suggest; gccombo.AutoCompleteSource = AutoCompleteSource.CustomSource; fpSpread1.Sheets[0].Cells[0, 0].CellType = gccombo;
Dim acsc = New AutoCompleteStringCollection() acsc.AddRange(New String() {"Gouda", "Swiss", "Brie"}) Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType() gccombo.Items.Add("Gouda") gccombo.Items.Add("Swiss") gccombo.Items.Add("Brie") gccombo.AutoCompleteCustomSource = acsc gccombo.AutoCompleteMode = AutoCompleteMode.Suggest gccombo.AutoCompleteSource = AutoCompleteSource.CustomSource FpSpread1.Sheets(0).Cells(0, 0).CellType = gccombo