Spread Windows Forms 6.0 Product Documentation
ListBoxCellType Constructor()
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ListBoxCellType Class > ListBoxCellType Constructor : ListBoxCellType Constructor()


Glossary Item Box

Creates a new list box cell with default settings.

Syntax

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

Example

This example creates and specifies the appearance of a list box cell.
C#Copy Code
FarPoint.Win.Spread.CellType.ListBoxCellType listbx = new FarPoint.Win.Spread.CellType.ListBoxCellType();
listbx.ImageList = ImageList1;
listbx.ItemData = new string[] { 
        "One",
        "Two",
        "Three"};
listbx.Items = new string[] {
        "One",
        "Two",
        "Three"};
listbx.ItemHeight = 40;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = listbx;
Visual BasicCopy Code
Dim listbx As New FarPoint.Win.Spread.CellType.ListBoxCellType
listbx.ImageList = ImageList1
listbx.ItemData = New String() {"One", "Two", "Three"}
listbx.Items = New String() {"One", "Two", "Three"}
listbx.ItemHeight = 40
FpSpread1.ActiveSheet.Cells(0, 0).CellType = listbx 

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.