Spread for ASP.NET 7.0 Product Documentation
CheckBoxCellType Constructor(String,String)
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CheckBoxCellType Class > CheckBoxCellType Constructor : CheckBoxCellType Constructor(String,String)


checkedImageUrl
Image to display when the check box is checked
uncheckedImageUrl
Image to display when the check box is unchecked

Glossary Item Box

Creates a new check box cell with the specified images.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal checkedImageUrl As String, _
   ByVal uncheckedImageUrl As String _
)
Visual Basic (Usage)Copy Code
Dim checkedImageUrl As String
Dim uncheckedImageUrl As String
 
Dim instance As New CheckBoxCellType(checkedImageUrl, uncheckedImageUrl)
C# 
public CheckBoxCellType( 
   string checkedImageUrl,
   string uncheckedImageUrl
)

Parameters

checkedImageUrl
Image to display when the check box is checked
uncheckedImageUrl
Image to display when the check box is unchecked

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 with images for its checked and unchecked states for that object. The first column is then populated with the check boxes.
C#Copy Code
FarPoint.Web.Spread.StyleInfo style=new FarPoint.Web.Spread.StyleInfo();
FpSpread1.ActiveSheetView.ColumnCount=10;
FpSpread1.ActiveSheetView.PageSize=20;
FpSpread1.ActiveSheetView.RowCount=20;
style.CellType=new FarPoint.Web.Spread.CheckBoxCellType("img\\checked.gif","img\\unchecked.gif");
FpSpread1.ActiveSheetView.SetStyleInfo(-1,0,style);
Visual BasicCopy Code
Dim style As New FarPoint.Web.Spread.StyleInfo()
FpSpread1.ActiveSheetView.ColumnCount=10
FpSpread1.ActiveSheetView.PageSize=20
FpSpread1.ActiveSheetView.RowCount=20
style.CellType=New FarPoint.Web.Spread.CheckBoxCellType("img\checked.gif","img\unchecked.gif")
FpSpread1.ActiveSheetView.SetStyleInfo(-1,0,style)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.