Spread ASP.NET 6.0 Product Documentation
CheckBoxCellType Constructor()
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CheckBoxCellType Class > CheckBoxCellType Constructor : CheckBoxCellType Constructor()


Glossary Item Box

Creates a new check box cell.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New CheckBoxCellType()
C# 
public CheckBoxCellType()

Example

This example creates a spreadsheet with 10 columns and 20 rows on the active sheet. It then creates a StyleInfo object and a CheckBox cell type for that object. The first column is then populated with the check boxes.
C#Copy Code
FarPoint.Web.Spread.StyleInfostyle=newFarPoint.Web.Spread.StyleInfo();
FpSpread1.ActiveSheetView.ColumnCount=10;
FpSpread1.ActiveSheetView.PageSize=20;
FpSpread1.ActiveSheetView.RowCount=20;
style.CellType=newFarPoint.Web.Spread.CheckBoxCellType();
FpSpread1.ActiveSheetView.SetStyleInfo(-1,0,style);
Visual BasicCopy Code
DimstyleAsNewFarPoint.Web.Spread.StyleInfo()
FpSpread1.ActiveSheetView.ColumnCount=10
FpSpread1.ActiveSheetView.PageSize=20
FpSpread1.ActiveSheetView.RowCount=20
style.CellType=NewFarPoint.Web.Spread.CheckBoxCellType()
FpSpread1.ActiveSheetView.SetStyleInfo(-1,0,style)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.