Spread for ASP.NET 7.0 Product Documentation
ButtonType Enumeration
Example  See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace : ButtonType Enumeration


Glossary Item Box

Specifies how the buttons are displayed in the command bar of the Spread component.

Syntax

Visual Basic (Declaration) 
Public Enum ButtonType 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As ButtonType
C# 
public enum ButtonType : System.Enum 

Members

MemberDescription
ImageButtonDisplays a button that displays an image (or icon) and responds to mouse clicks on the image
LinkButtonDisplays a button that looks like a hyperlink (with underlined text)
PushButtonDisplays a standard two-state command push button with text

Remarks

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.

Example

This example creates buttons of each type.
C#Copy Code
FpSpread1.ActiveSheetView.Cells[0,0].CellType=new FarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.LinkButton,"http://www.fpoint.com");
FpSpread1.ActiveSheetView.Cells[1,0].CellType=new FarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.PushButton,"Push");
FpSpread1.ActiveSheetView.Cells[2,0].CellType=new FarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.ImageButton,"img/edit-e.jpg");
Visual BasicCopy Code
FpSpread1.ActiveSheetView.Cells(0,0).CellType=New FarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.LinkButton,"http://www.fpoint.com")
FpSpread1.ActiveSheetView.Cells(1,0).CellType=New FarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.PushButton,"Push")
FpSpread1.ActiveSheetView.Cells(2,0).CellType=New FarPoint.Web.Spread.ButtonCellType("MyCommand",FarPoint.Web.Spread.ButtonType.ImageButton,"img/edit-e.jpg")

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Web.Spread.ButtonType

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.