Spread Windows Forms 10.0 Product Documentation
DropDownMaxHeight Property
Example 


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.