ToolbarStyle Class
Provides properties for retrieving and setting style properties for the CrystalReportViewer toolbar.
Namespace CrystalDecisions.Shared Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
Syntax
'Declaration
Public Class ToolbarStyle
Inherits SimpleStyle
Implements IComponent, IDisposable, IStateManager
public class ToolbarStyle : SimpleStyle, IComponent, IDisposable, IStateManager
Example
This example shows how to initialize the ToolbarStyle.
'Declaration
Private Sub InitializeToolbarStyle(ByVal myCssClass As String)
Dim myToolbarStyle As ToolbarStyle = New ToolbarStyle
myToolbarStyle.CssClass = myCssClass
myToolbarStyle.Font.Name = "Courier"
myToolbarStyle.Font.Size = New FontUnit(12)
myToolbarStyle.ForeColor = Color.White
myToolbarStyle.Height = New Unit(25, UnitType.Pixel)
myToolbarStyle.Width = New Unit(100, UnitType.Pixel)
End Sub
private void InitializeToolbarStyle(String cssClass)
{
ToolbarStyle toolbarStyle = new ToolbarStyle();
toolbarStyle.CssClass = cssClass;
toolbarStyle.Font.Name = "Courier";
toolbarStyle.Font.Size = new FontUnit(12);
toolbarStyle.ForeColor = Color.White;
toolbarStyle.Height = new Unit(25, UnitType.Pixel);
toolbarStyle.Width = new Unit(100, UnitType.Pixel);
}
Inheritance Hierarchy
Object
MarshalByRefObject
Component
Style
SimpleStyle
ToolbarStyle
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 10