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


Glossary Item Box

Gets or sets the selection mode for the list.

Syntax

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

Example

This example sets the selection mode.
C#Copy Code
FarPoint.Win.Spread.CellType.ListBoxCellType listcell = new FarPoint.Win.Spread.CellType.ListBoxCellType();
listcell.SelectionMode = SelectionMode.MultiSimple;
listcell.ItemData = new string[] { "One", "Two", "Three"};
listcell.Items = new string[] { "One", "Two", "Three"};
fpSpread1.Sheets[0].Cells[0, 0].CellType = listcell;
Visual BasicCopy Code
Dim listcell As New FarPoint.Win.Spread.CellType.ListBoxCellType()
listcell.SelectionMode = SelectionMode.MultiSimple
listcell.ItemData = New String() {"One", "Two", "Three"}
listcell.Items = New String() {"One", "Two", "Three"}
FpSpread1.Sheets(0).Cells(0, 0).CellType = listcell

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.