Spread Windows Forms 12.0 Product Documentation
DropDownMaxHeight Property
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcComboBoxCellType Class : DropDownMaxHeight Property
Gets or sets the maximum height of the drop-down window, if the user does not customize the size of the drop-down window; otherwise, this property does not take effect.
Syntax
'Declaration
 
Public Property DropDownMaxHeight As Nullable(Of Integer)
'Usage
 
Dim instance As GcComboBoxCellType
Dim value As Nullable(Of Integer)
 
instance.DropDownMaxHeight = value
 
value = instance.DropDownMaxHeight
public Nullable<int> DropDownMaxHeight {get; set;}

Property Value

An System.Int32 value that indicates the maximum height of the drop-down window.
The default is 150.
Example
This example sets the DropDownMaxHeight property.
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;
gccombo.DropDownMaxHeight = 50;
gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Swiss" });
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.DropDownMaxHeight = 50
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members