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


Gets or sets the background color of the command bar of the Spread component.
Syntax
'Declaration
 
Public Property BackColor As Color
'Usage
 
Dim instance As CommandBarInfo
Dim value As Color
 
instance.BackColor = value
 
value = instance.BackColor
public Color BackColor {get; set;}

Property Value

Color object that contains the background color for command bar
Remarks

The command bar is displayed at the bottom of the component when the Visible property is set to true. Sheet name tabs and command buttons display on the command bar. By default, page navigation aids are also displayed on the command bar, but can be repositioned.

Example
This example shows the setting of several command bar properties.
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

CommandBarInfo Class
CommandBarInfo Members
Visible Property

 

 


Copyright © GrapeCity, inc. All rights reserved.