Skip to content

WindowPluginMenuEntry

FoolRunning edited this page Jul 26, 2022 · 10 revisions

Description

Represents a menu item that is to be inserted into an existing Paratext child window.

NOTE: This differs from a PluginMenuEntry in that the clicked action for this version gives a IWindowPluginHost to allow the embedding of a plugin control into a Paratext child window.

Methods

WindowPluginMenuEntry

WindowPluginMenuEntry(string defaultText, Action< IWindowPluginHost, IParatextChildState > clicked, PluginMenuLocation location=PluginMenuLocation.ScrTextDefault, string imagePath=null, CustomMenuLocation customLocation=null)

Parameter Description
defaultText
clicked The action to invoke when the menu item is clicked. The child state is the state of the active child window at the time the menu item is clicked.
location A value that specifies a "standard" location where plugins might typically go in the host application's menu structure.
imagePath The file path to an image to show for the menu. Path can be relative to the plugin folder.
customLocation If specified, indicates a custom location in the menu hierarchy (of either the main window menu or a child window menu). If not specified or the path does not resolve to a valid menu location, the location will be used as a fallback. Custom locations are not supported in context menus.

This page is auto-generated. User edits will be lost when regenerated.

Clone this wiki locally