Spread for ASP.NET 9.0 Product Documentation
CommandBar Property
Example 


Gets the command bar information for the component.
Syntax
'Declaration
 
Public ReadOnly Property CommandBar As CommandBarInfo
'Usage
 
Dim instance As FpSpread
Dim value As CommandBarInfo
 
value = instance.CommandBar
public CommandBarInfo CommandBar {get;}

Property Value

CommandBarInfo object that contains the appearance settings for the command bar.
Example
This example shows how to set the appearance of the command bar using the CommandBar property.
FpSpread1.CommandBar.Background = null;
FpSpread1.CommandBar.BackColor = Color.Yellow;
FpSpread1.CommandBar.ButtonFaceColor = Color.YellowGreen;
FpSpread1.CommandBar.ButtonHighlightColor = Color.Coral;
FpSpread1.CommandBar.ButtonShadowColor = Color.Bisque;
FpSpread1.CommandBar.ButtonTextColor = Color.RoyalBlue;
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton;
FpSpread1.CommandBar.Font.Bold = True;
FpSpread1.CommandBar.Font.Name = "Comic Sans MS";
FpSpread1.CommandBar.Visible = True;
 
FpSpread1.CommandBar.Background = Nothing
FpSpread1.CommandBar.BackColor = Color.Yellow
FpSpread1.CommandBar.ButtonFaceColor = Color.YellowGreen
FpSpread1.CommandBar.ButtonHighlightColor = Color.Coral
FpSpread1.CommandBar.ButtonShadowColor = Color.Bisque
FpSpread1.CommandBar.ButtonTextColor = Color.RoyalBlue
FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton
FpSpread1.CommandBar.Font.Bold = True
FpSpread1.CommandBar.Font.Name = "Comic Sans MS"
FpSpread1.CommandBar.Visible = True
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

FpSpread Class
FpSpread Members
CommandBarInfo Class

User-Task Documentation

Customizing the Command Bar on the Component

 

 


Copyright © GrapeCity, inc. All rights reserved.