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


Glossary Item Box

Creates a new button cell.

Syntax

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

Example

This example shows the use of the constructor by creating a button cell type and a style and applying them to a sheet of a defined size.
C#Copy Code
FarPoint.Web.Spread.ButtonCellTypebtn=NewFarPoint.Web.Spread.ButtonCellType();
FarPoint.Web.Spread.StyleInfostyle=NewFarPoint.Web.Spread.StyleInfo();
FpSpread1.Sheets[0].ColumnCount=7;
FpSpread1.Sheets[0].RowCount=50;
btn.ButtonType=FarPoint.Web.Spread.ButtonType.PushButton;
style.CellType=btn;
FpSpread1.Sheets[0].SetStyleInfo(-1,0,style);
Visual BasicCopy Code
DimbtnAsNewFarPoint.Web.Spread.ButtonCellType()
DimstyleAsNewFarPoint.Web.Spread.StyleInfo()
FpSpread1.Sheets(0).ColumnCount=7
FpSpread1.Sheets(0).RowCount=50
btn.ButtonType=FarPoint.Web.Spread.ButtonType.PushButton
style.CellType=btn
FpSpread1.Sheets(0).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.