Spread Windows Forms 7.0 Product Documentation
ButtonCellType Constructor()
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ButtonCellType Class > ButtonCellType Constructor : ButtonCellType Constructor()


Glossary Item Box

Creates a new button cell with default settings.

Syntax

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

Example

C#Copy Code
FarPoint.Win.Spread.CellType.ButtonCellType bttncell = new FarPoint.Win.Spread.CellType.ButtonCellType();
bttncell.ButtonColor = Color.Cyan;
bttncell.DarkColor = Color.DarkCyan;
bttncell.LightColor = Color.AliceBlue;
bttncell.ShadowSize = 3;
bttncell.Text = "Click and hold...";
bttncell.TextDown = "...you can see how words go to multiple lines. Now let go.";
bttncell.TextColor = Color.Green;
bttncell.WordWrap = true;
fpSpread1.Sheets[0].Cells[3,2].CellType = bttncell;
Visual BasicCopy Code
Dim bttncell As New FarPoint.Win.Spread.CellType.ButtonCellType()
bttncell.ButtonColor = Color.Cyan
bttncell.DarkColor = Color.DarkCyan
bttncell.LightColor = Color.AliceBlue
bttncell.ShadowSize = 3
bttncell.Text = "Click and hold..."
bttncell.TextDown = "...you can see how words go to multiple lines. Now let go."
bttncell.TextColor = Color.Green
bttncell.WordWrap = True
fpSpread1.Sheets(0).Cells(3,2).CellType = bttncell

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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