Visual Basic (Declaration) | |
---|---|
Public Enum ButtonType Inherits System.Enum |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ButtonType |
C# | |
---|---|
public enum ButtonType : System.Enum |
Member | Description |
---|---|
ImageButton | Displays a button that displays an image (or icon) and responds to mouse clicks on the image |
LinkButton | Displays a button that looks like a hyperlink (with underlined text) |
PushButton | Displays a standard two-state command push button with text |
Use these settings with the ButtonType property to determine the display of buttons.
For more information about customizing the command bar and the buttons in the command bar, refer to Customizing the Command Bar.
This example creates buttons of each type.
C# | Copy Code |
---|---|
FpSpread1.ActiveSheetView.Cells[0,0].CellType=NewFarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.LinkButton,"http://www.fpoint.com"); FpSpread1.ActiveSheetView.Cells[1,0].CellType=NewFarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.PushButton,"Push"); FpSpread1.ActiveSheetView.Cells[2,0].CellType=NewFarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.ImageButton,"img/edit-e.jpg"); |
Visual Basic | Copy Code |
---|---|
FpSpread1.ActiveSheetView.Cells(0,0).CellType=NewFarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.LinkButton,"http://www.fpoint.com") FpSpread1.ActiveSheetView.Cells(1,0).CellType=NewFarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.PushButton,"Push") FpSpread1.ActiveSheetView.Cells(2,0).CellType=NewFarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.ImageButton,"img/edit-e.jpg") |
System.Object
System.ValueType
System.Enum
FarPoint.Web.Spread.ButtonType
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
Reference
FarPoint.Web.Spread NamespaceButtonType Property
ButtonType Property
ButtonType Property