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


Glossary Item Box

Gets or sets the height of each item in the list.

Syntax

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

Property Value

Integer number of pixels in the height

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 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.