ActiveReports 15 .NET Edition
GrapeCity.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer.ViewerToolbar Class
Members Example

In This Topic
    Viewer.ViewerToolbar Class
    In This Topic
    Gets the viewer toolbar object, allowing you to add and remove items on each of the component ToolStrips, and to implement tool click events for added items.
    Object Model
    Viewer.ViewerToolbar Class
    Syntax
    'Declaration
     
    Public Class Viewer.ViewerToolbar 
    public class Viewer.ViewerToolbar 
    Remarks
    Also see the System.Windows.Forms.ToolStripItemClickedEventArgs class and ClickedItem property on MSDN for more information on working with ToolStrips.
    Example
    To implement tool click events, use code like the following in the Form Load event of the form that contains the Viewer control, and then drop down the IntelliSense Generate Method Stub arrow to generate method stubs for the events.
    C# code to use in the Form Load event
    this.viewer1.Toolbar.NavigationBar.ItemClicked +=new ToolStripItemClickedEventHandler(NavigationBar_ItemClicked);
    this.viewer1.Toolbar.MainBar.ItemClicked += new ToolStripItemClickedEventHandler(MainBar_ItemClicked);
    this.viewer1.Toolbar.MouseModeBar.ItemClicked += new ToolStripItemClickedEventHandler(MouseModeBar_ItemClicked);
    Visual Basic code to use in the Form Load event
    AddHandler me.Viewer1.Toolbar.NavigationBar.ItemClicked, AddressOf NavigationBar_ItemClicked
    AddHandler me.Viewer1.Toolbar.MainBar.ItemClicked, AddressOf MainBar_ItemClicked
    AddHandler me.Viewer1.Toolbar.MouseModeBar.ItemClicked, AddressOf MouseModeBar_ItemClicked
    Inheritance Hierarchy

    System.Object
       GrapeCity.ActiveReports.Viewer.Win.Viewer.ViewerToolbar

    See Also

    Reference

    Viewer.ViewerToolbar Members
    GrapeCity.ActiveReports.Viewer.Win Namespace
    1cb59ebd-fc3b-4301-ab86-d63ff01caa6c
    13672da7-5681-476c-9406-8578b99b9a68