Spread Windows Forms 9.0 Product Documentation
AutoCompleteCustomSource Property (ComboBoxCellType)
Example 


Gets or sets the custom source (of strings) for automatic completion of entries in the combo box.
Syntax
'Declaration
 
Public Property AutoCompleteCustomSource As AutoCompleteStringCollection
'Usage
 
Dim instance As ComboBoxCellType
Dim value As AutoCompleteStringCollection
 
instance.AutoCompleteCustomSource = value
 
value = instance.AutoCompleteCustomSource
public AutoCompleteStringCollection AutoCompleteCustomSource {get; set;}

Property Value

AutoCompleteStringCollection object containing the set of automatic completion strings.
Example
This example uses the custom source for automatic completion.
AutoCompleteStringCollection acsc = new AutoCompleteStringCollection(); 
acsc.AddRange(new string[]{"One", "Two", "Three", "Four"}); 
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType(); 
cb.Items = new string[]{"One", "Two", "Three", "Four"}; 
cb.Editable = true; 
cb.AutoCompleteCustomSource = acsc; 
cb.AutoCompleteMode = AutoCompleteMode.SuggestAppend; 
cb.AutoCompleteSource = AutoCompleteSource.CustomSource;
Dim acsc As New AutoCompleteStringCollection
acsc.AddRange(New String() {"One", "Two", "Three", "Four"})

Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType
cb.Items = New String() {"One", "Two", "Three", "Four"}

cb.Editable = True
cb.AutoCompleteCustomSource = acsc
cb.AutoCompleteMode = AutoCompleteMode.SuggestAppend
cb.AutoCompleteSource = AutoCompleteSource.CustomSource

FpSpread1.ActiveSheet.Cells(0, 0).CellType = cb
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.