ActiveReports 8
DesignerToolStrips Enumeration
Example Example 

Enumeration of the types of tool strips to use with the designer.
Syntax
'Declaration
 
Public Enum DesignerToolStrips 
   Inherits System.Enum
public enum DesignerToolStrips : System.Enum 
Members
MemberDescription
AllAdds all of the available tool strips.
Borders

The toolstrip contains the border editors.

Edit

The Edit tool strip includes these tools: Cut, Copy, Paste, and Delete.

Format

The Format tool strip includes these tools: Font Name, Font Size, Bold, Italic, Underline, Fore Color, Back Color, Align Left, Align Center, Align Right, Align Justify, Indent and Outdent.

Layout

The Layout tool strip includes these tools: Align to Grid, Align Lefts, Align Centers, Align Rights, Align Tops, Align Middles, Align Bottoms, Bring to Front, and Send to Back.

Menu

Adds the menu tool strip, which includes the File and Edit menus.

The File menu includes these commands: New, Open, Save, and Export.

The Edit menu includes these commands: Undo, Redo, Cut, Copy, Paste, Delete, and Select All.

Report

The Report tool strip includes these tools: New, Open, and Save.

Undo

The Undo tool strip includes these tools: Undo and Redo.

Zoom

The Zoom tool strip includes these tools: Zoom Out, Zoom In, Zoom %, and Actual Size.

Example
Private Sub Designer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Designer1.Load
        Dim menuStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Menu)(0)
        Dim editStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Edit)(0)
        Dim formatStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Format)(0)
        Dim layoutStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Layout)(0)
        Dim reportStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Report)(0)
        Dim undoStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Undo)(0)
        Dim zoomStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Zoom)(0)
        Me.ToolStripContainer1.TopToolStripPanel.Join(menuStrip, 0)
        Me.ToolStripContainer1.TopToolStripPanel.Join(editStrip, 1)
        Me.ToolStripContainer1.TopToolStripPanel.Join(formatStrip, 2)
        Me.ToolStripContainer1.TopToolStripPanel.Join(layoutStrip, 3)
        Me.ToolStripContainer1.TopToolStripPanel.Join(reportStrip, 4)
        Me.ToolStripContainer1.TopToolStripPanel.Join(undoStrip, 5)
        Me.ToolStripContainer1.TopToolStripPanel.Join(zoomStrip, 6)
    End Sub
private void designer1_Load(object sender, EventArgs e)
        {
            ToolStrip menuStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Menu)[0];
            ToolStrip editStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Edit)[0];
            ToolStrip formatStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Format)[0];
            ToolStrip layoutStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Layout)[0];
            ToolStrip reportStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Report)[0];
            ToolStrip undoStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Undo)[0];
            ToolStrip zoomStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Zoom)[0];
            this.toolStripContainer1.TopToolStripPanel.Join(menuStrip, 0);
            this.toolStripContainer1.TopToolStripPanel.Join(editStrip, 1);
            this.toolStripContainer1.TopToolStripPanel.Join(formatStrip, 2);
            this.toolStripContainer1.TopToolStripPanel.Join(layoutStrip, 3);
            this.toolStripContainer1.TopToolStripPanel.Join(reportStrip, 4);
            this.toolStripContainer1.TopToolStripPanel.Join(undoStrip, 5);
            this.toolStripContainer1.TopToolStripPanel.Join(zoomStrip, 6); 
        }
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.ActiveReports.Design.DesignerToolStrips

See Also

Reference

GrapeCity.ActiveReports.Design Namespace
CreateToolStrips Method

Support Forum