Spread for ASP.NET 10 Product Documentation
ButtonType Property (CommandBarInfo)
Example 


Gets or sets the type of button on the command bar of the Spread component.
Syntax
'Declaration
 
Public Property ButtonType As ButtonType
'Usage
 
Dim instance As CommandBarInfo
Dim value As ButtonType
 
instance.ButtonType = value
 
value = instance.ButtonType
public ButtonType ButtonType {get; set;}

Property Value

ButtonType setting that specifies how the buttons appear on the command bar
Remarks

The command buttons can be displayed in the command bar of the Spread component in different ways (or as different types). The buttons can also be displayed as push buttons or links. The values are given by the ButtonType enumeration.

The appearance of the text of the push button and link button types can be set with the ButtonTextColor and Font properties.

To create or change the command buttons on the Spread component, use code in the CreateButton event.

Example
This example sets a theme for the command bar and pager icons.
FpSpread1.Sheets[0].RowCount = 20;
FpSpread1.Pager.Mode = FarPoint.Web.Spread.PagerMode.NextPrev;
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton;
FpSpread1.Pager.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton;
FpSpread1.CommandBar.Theme = FarPoint.Web.Spread.ImageButtonTheme.Xp;
FpSpread1.Sheets(0).RowCount = 20
FpSpread1.Pager.Mode = FarPoint.Web.Spread.PagerMode.NextPrev
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton
FpSpread1.Pager.ButtonType = FarPoint.Web.Spread.ButtonType.ImageButton
FpSpread1.CommandBar.Theme = FarPoint.Web.Spread.ImageButtonTheme.Xp
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

CommandBarInfo Class
CommandBarInfo Members
CreateButton Event
ButtonType Enumeration

 

 


Copyright © GrapeCity, inc. All rights reserved.