Class DesignerMenu
Represents the designer's main menu.
Inheritance
Implements
Inherited Members
Namespace: FastReport.Design.StandardDesigner
Assembly: FastReport.dll
Syntax
public class DesignerMenu : Bar, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IDockInfo, IBarImageSize, IOwner, IOwnerMenuSupport, ISupportInitialize, IBarDesignerServices, ICustomSerialization, IRenderingSupport, IAccessibilitySupport, IOwnerLocalize, IDesignerPlugin
Remarks
To get this menu, use the following code:
Designer designer;
DesignerMenu menu = designer.Plugins.FindType("DesignerMenu") as DesignerMenu;
Constructors
DesignerMenu(Designer)
Initializes a new instance of the DesignerMenu class with default settings.
Declaration
public DesignerMenu(Designer designer)
Parameters
Type | Name | Description |
---|---|---|
Designer | designer | The report designer. |
Fields
miData
The "Data" menu.
Declaration
public ButtonItem miData
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miDataAdd
The "Data|Add Data Source..." menu.
Declaration
public ButtonItem miDataAdd
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miDataChoose
The "Data|Choose Report Data..." menu.
Declaration
public ButtonItem miDataChoose
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miDataShowData
The "Data|Show Data Dictionary" menu.
Declaration
public ButtonItem miDataShowData
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEdit
The "Edit" menu.
Declaration
public ButtonItem miEdit
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditCopy
The "Edit|Copy" menu.
Declaration
public ButtonItem miEditCopy
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditCopyPage
The "Edit|Copy Page" menu.
Declaration
public ButtonItem miEditCopyPage
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditCut
The "Edit|Cut" menu.
Declaration
public ButtonItem miEditCut
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditDelete
The "Edit|Delete" menu.
Declaration
public ButtonItem miEditDelete
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditDeletePage
The "Edit|Delete Page" menu.
Declaration
public ButtonItem miEditDeletePage
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditFind
The "Edit|Find..." menu.
Declaration
public ButtonItem miEditFind
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditGroup
The "Edit|Group" menu.
Declaration
public ButtonItem miEditGroup
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditNewPage
The "Edit|NewPage" menu.
Declaration
public ButtonItem miEditNewPage
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditPaste
The "Edit|Paste" menu.
Declaration
public ButtonItem miEditPaste
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditRedo
The "Edit|Redo" menu.
Declaration
public ButtonItem miEditRedo
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditReplace
The "Edit|Replace..." menu.
Declaration
public ButtonItem miEditReplace
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditSelectAll
The "Edit|Select All" menu.
Declaration
public ButtonItem miEditSelectAll
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditUndo
The "Edit|Undo" menu.
Declaration
public ButtonItem miEditUndo
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miEditUngroup
The "Edit|Ungroup" menu.
Declaration
public ButtonItem miEditUngroup
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFile
The "File" menu.
Declaration
public ButtonItem miFile
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileClose
The "File|Close" menu.
Declaration
public ButtonItem miFileClose
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileCloudPreview
The "File|Web preview..." menu.
Declaration
public ButtonItem miFileCloudPreview
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileExit
The "File|Exit" menu.
Declaration
public ButtonItem miFileExit
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileNew
The "File|New..." menu.
Declaration
public ButtonItem miFileNew
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileOpen
The "File|Open..." menu.
Declaration
public ButtonItem miFileOpen
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileOpenPage
The "File|Open page..." menu.
Declaration
public ButtonItem miFileOpenPage
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileOpenViaCloud
The "File|Open via Cloud..." menu.
Declaration
public ButtonItem miFileOpenViaCloud
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFilePageSetup
The "File|Page Setup..." menu.
Declaration
public ButtonItem miFilePageSetup
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFilePreview
The "File|Preview..." menu.
Declaration
public ButtonItem miFilePreview
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFilePrinterSetup
The "File|Printer Setup..." menu.
Declaration
public ButtonItem miFilePrinterSetup
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileRecentFiles
The "File|Recent Files" menu.
Declaration
public ButtonItem miFileRecentFiles
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileSave
The "File|Save" menu.
Declaration
public ButtonItem miFileSave
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileSaveAll
The "File|Save All" menu.
Declaration
public ButtonItem miFileSaveAll
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileSaveAs
The "File|Save as..." menu.
Declaration
public ButtonItem miFileSaveAs
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileSaveToCloud
The "File|Save to Cloud..." menu.
Declaration
public ButtonItem miFileSaveToCloud
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileSaveWithRandomData
The "File|Save with random data..." menu.
Declaration
public ButtonItem miFileSaveWithRandomData
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miFileSelectLanguage
The "File|Select Language" menu.
Declaration
public ButtonItem miFileSelectLanguage
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miHelp
The "Help" menu.
Declaration
public ButtonItem miHelp
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miHelpAbout
The "Help|About..." menu.
Declaration
public ButtonItem miHelpAbout
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miHelpAccount
Declaration
public ButtonItem miHelpAccount
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miHelpContents
The "Help|Help Contents..." menu.
Declaration
public ButtonItem miHelpContents
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miInsert
The "Insert" menu.
Declaration
public ButtonItem miInsert
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miReport
The "Report" menu.
Declaration
public ButtonItem miReport
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miReportOptions
The "Report|Options..." menu.
Declaration
public ButtonItem miReportOptions
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miReportValidation
The "Report|Validation" menu.
Declaration
public ButtonItem miReportValidation
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miView
The "View" menu.
Declaration
public ButtonItem miView
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miViewOptions
The "View|Options..." menu.
Declaration
public ButtonItem miViewOptions
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miViewStartPage
The "View|Start Page" menu.
Declaration
public ButtonItem miViewStartPage
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miViewToolbars
The "View|Toolbars" menu.
Declaration
public ButtonItem miViewToolbars
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miWindow
The "Window" menu.
Declaration
public ButtonItem miWindow
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
miWindowCloseAll
The "Window|Close All" menu.
Declaration
public ButtonItem miWindowCloseAll
Field Value
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem |
Properties
PluginName
Gets the plugin name.
Declaration
public string PluginName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
CreateMenuItem()
Creates a new menu item.
Declaration
public ButtonItem CreateMenuItem()
Returns
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem | New menu item. |
CreateMenuItem(EventHandler)
Creates a new menu item.
Declaration
public ButtonItem CreateMenuItem(EventHandler click)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler | click | Click handler. |
Returns
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem | New menu item. |
CreateMenuItem(Int32, EventHandler)
Creates a new menu item.
Declaration
public ButtonItem CreateMenuItem(int imageIndex, EventHandler click)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | imageIndex | Item's image index. |
System.EventHandler | click | Click handler. |
Returns
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem | New menu item. |
CreateMenuItem(Int32, String, EventHandler)
Creates a new menu item.
Declaration
public ButtonItem CreateMenuItem(int imageIndex, string text, EventHandler click)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | imageIndex | Item's image index. |
System.String | text | Item's text. |
System.EventHandler | click | Click handler. |
Returns
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem | New menu item. |
CreateMenuItem(String, EventHandler)
Creates a new menu item.
Declaration
public ButtonItem CreateMenuItem(string text, EventHandler click)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Item's text. |
System.EventHandler | click | Click handler. |
Returns
Type | Description |
---|---|
FastReport.DevComponents.DotNetBar.ButtonItem | New menu item. |
GetOptionsPage()
Gets an options page that will be used in the Designer Options dialog to edit the plugin options.
Declaration
public virtual DesignerOptionsPage GetOptionsPage()
Returns
Type | Description |
---|---|
DesignerOptionsPage | The options page, if implemented; otherwise, null. |
Localize()
Localizes the plugin.
Declaration
public void Localize()
Remarks
This method is called by the designer when current localization is changed.
Lock()
Locks the plugin.
Declaration
public void Lock()
Remarks
This method is called by the designer when report is loading. It may be needed to disable some operations (like painting) that use the report.
ProcessShortcut(eShortcut)
Declaration
protected override bool ProcessShortcut(eShortcut key)
Parameters
Type | Name | Description |
---|---|---|
FastReport.DevComponents.DotNetBar.eShortcut | key |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
RestoreState()
Restores the plugin state.
Declaration
public void RestoreState()
SaveState()
Saves the plugin state.
Declaration
public void SaveState()
SelectionChanged()
Updates plugin state when current selection was changed.
Declaration
public void SelectionChanged()
Remarks
Typically you need to do the same work in the SelectionChanged() and UpdateContent() methods.
Unlock()
Unlocks the plugin.
Declaration
public void Unlock()
UpdateContent()
Updates plugin state when the report was modified.
Declaration
public void UpdateContent()
Remarks
Typically you need to do the same work in the SelectionChanged() and UpdateContent() methods.
UpdateDpiDependencies()
Updates layout on dpi change.
Declaration
public void UpdateDpiDependencies()
UpdateUIStyle()
Updates UI style of the plugin.
Declaration
public void UpdateUIStyle()
Remarks
The plugin should update its style according to the designer's UIStyle property.