Spread Windows Forms 9.0 Product Documentation
ComboBoxCellType Constructor(ComboBoxCellType)
Example 


Specified combo box cell type from which to copy
Creates a new copy from the specified cell type ("Copy constructor").
Syntax
'Declaration
 
Public Function New( _
   ByVal g As ComboBoxCellType _
)
'Usage
 
Dim g As ComboBoxCellType
 
Dim instance As New ComboBoxCellType(g)
public ComboBoxCellType( 
   ComboBoxCellType g
)

Parameters

g
Specified combo box cell type from which to copy
Example
This example creates a combo box cell.
FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cmbocell.Items = (new String[] { "January", "February", "March", "April", "May", "June" });
cmbocell.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows;
cmbocell.AutoSearch = FarPoint.Win.AutoSearch.SingleCharacter;
cmbocell.Editable = true;
cmbocell.ListAlignment = FarPoint.Win.ListAlignment.Left;            
cmbocell.MaxDrop = 4;
fpSpread1.Sheets[0].Cells[2, 2].CellType = cmbocell;

FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocellcopy = new FarPoint.Win.Spread.CellType.ComboBoxCellType(cmbocell);
fpSpread1.Sheets[0].Cells[1, 1].CellType = cmbocellcopy;
Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cmbocell.Items = (New String() {"January", "February", "March", "April", "May", "June"})
cmbocell.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows
cmbocell.AutoSearch = FarPoint.Win.AutoSearch.SingleCharacter
cmbocell.Editable = True
cmbocell.ListAlignment = FarPoint.Win.ListAlignment.Left
cmbocell.MaxDrop = 4
FpSpread1.Sheets(0).Cells(2, 2).CellType = cmbocell
Dim cmbocellcopy As New FarPoint.Win.Spread.CellType.ComboBoxCellType(cmbocell)
FpSpread1.Sheets(0).Cells(1, 1).CellType = cmbocellcopy
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

ComboBoxCellType Class
ComboBoxCellType Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.