ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Designer Class / ToolPanel Property
Example

In This Topic
    ToolPanel Property
    In This Topic
    Gets or sets the value that indicate the tools that are available in the designer tool panel.
    Syntax
    'Declaration
     
    Public Property ToolPanel As ToolPanelButton
    public ToolPanelButton ToolPanel {get; set;}

    Property Value

    A ToolPanelButton value that specifies the buttons displayed in the tool panel. The default is All, which displays all available tools.
    Remarks
    The tool panel provides quick access to various actions and settings within the designer. This property allows for customization of the tool panel by specifying which buttons should be available. For example, you can limit the tool panel to only show zoom controls or the grid toggle button, depending on the needs of your application.

    Use the ToolPanelButton enumeration to configure the available tools. This can enhance the user interface by simplifying the tool panel based on the context of the task being performed.

    Example
    // To hide specific items from the tool panel, use the ToolPanel property.
    // The following code removes the zoom slider from the tool panel:
    designer.ToolPanel = ToolPanelButton.All ^ ToolPanelButton.ZoomSlider;
    // To remove multiple items, such as Dimension Lines, Grid Mode, Snap Grid, Snap Lines, and Mouse Mode, you can combine them like this:
    designer.ToolPanel = ToolPanelButton.All ^ ToolPanelButton.DimensionLines ^ ToolPanelButton.GridMode;
    See Also