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


Glossary Item Box

Gets or sets how the automatic completion works for entries in the combo box.

Syntax

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

Property Value

AutoCompleteMode setting which specifies the mode of 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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