Spread for ASP.NET 7.0 Product Documentation
ListBoxCellType Constructor()
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ListBoxCellType Class > ListBoxCellType Constructor : ListBoxCellType Constructor()


Glossary Item Box

Creates a new list box cell.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New ListBoxCellType()
C# 
public ListBoxCellType()

Example

This example creates a list box cell type, sets up an array of items for the list, sets the background and foreground color for the selected item and assigns the object to the first cell in the sheet.
C#Copy Code
FarPoint.Web.Spread.ListBoxCellType lbcell = new FarPoint.Web.Spread.ListBoxCellType();
lbcell.Items = new String[] {"Carbon", "Oxygen", "Hydrogen"};
lbcell.SelectedBackColor = Color.Yellow;
lbcell.SelectedForeColor = Color.DarkBlue;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = lbcell;
FpSpread1.ActiveSheetView.Rows[0].Height = 140;
Visual BasicCopy Code
Dim lbcell As New FarPoint.Web.Spread.ListBoxCellType()
lbcell.Items = New String() {"Carbon", "Oxygen", "Hydrogen"}
lbcell.SelectedBackColor = Color.Yellow
lbcell.SelectedForeColor = Color.DarkBlue
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = lbcell
FpSpread1.ActiveSheetView.Rows(0).Height = 140

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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