Spread Windows Forms 7.0 Product Documentation
AutoCompleteSource Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : AutoCompleteSource Property


Glossary Item Box

Gets or sets the source for automatic completion of entries in the combo box.

Syntax

Visual Basic (Declaration) 
Public Property AutoCompleteSource As AutoCompleteSource
Visual Basic (Usage)Copy Code
Dim instance As ComboBoxCellType
Dim value As AutoCompleteSource
 
instance.AutoCompleteSource = value
 
value = instance.AutoCompleteSource
C# 
public AutoCompleteSource AutoCompleteSource {get; set;}

Property Value

AutoCompleteSource object containing the source for the automatic completion

Example

This example uses the custom source for automatic completion.
C#Copy Code
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;
Visual BasicCopy Code
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.