Spread Windows Forms 11.0 Product Documentation
MultiOptionCellType Constructor(MultiOptionCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > MultiOptionCellType Class > MultiOptionCellType Constructor : MultiOptionCellType Constructor(MultiOptionCellType)
Specified multiple-option 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 MultiOptionCellType _
)
'Usage
 
Dim g As MultiOptionCellType
 
Dim instance As New MultiOptionCellType(g)
public MultiOptionCellType( 
   MultiOptionCellType g
)

Parameters

g
Specified multiple-option cell type from which to copy
Example
This example creates a multiple option cell.
FarPoint.Win.Spread.CellType.MultiOptionCellType multcell = new FarPoint.Win.Spread.CellType.MultiOptionCellType();           
multcell.Items = new String[] { "One", "Two", "Three" };            
fpSpread1.ActiveSheet.Cells[0, 0].CellType = multcell;
FarPoint.Win.Spread.CellType.MultiOptionCellType multcell1 = new FarPoint.Win.Spread.CellType.MultiOptionCellType(multcell);
fpSpread1.ActiveSheet.Cells[0, 1].CellType = multcell1;
Dim multcell As New FarPoint.Win.Spread.CellType.MultiOptionCellType()    
multcell.Items = new String() { "One", "Two", "Three" }
fpSpread1.ActiveSheet.Cells(0, 0).CellType = multcell
Dim multcell1 As New FarPoint.Win.Spread.CellType.MultiOptionCellType(multcell)
fpSpread1.ActiveSheet.Cells(0, 1).CellType = multcell1
See Also

Reference

MultiOptionCellType Class
MultiOptionCellType Members
Overload List