This is the base class when creating a custom share tool.
Inheritance Hierarchy
Spotfire.Dxp.ApplicationTool
Spotfire.Dxp.ApplicationToolTContext
Spotfire.Dxp.ApplicationShareToolTContext
Spotfire.Dxp.Application.ExtensionCustomShareToolTContext
Namespace: Spotfire.Dxp.Application.Extension
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 64.0.19329.3263 (64.0.19329.3263)
Syntax
C#
public abstract class CustomShareTool<TContext> : ShareTool<TContext> where TContext : class
Type Parameters
- TContext
-
The type that this tool operates on, that is, the context of the tool.
Currently, the following types are supported:
Page - Available from the context menu for the Page tabs
Any of the built-in visuals (for example ScatterPlot) - Available from the context menu for the visual.
BookmarkContext - Available from the context menu in the bookmark panel.
The CustomShareToolTContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CustomShareToolTContext(String) |
Initializes a new instance of the CustomShareToolTContext class.
| |
CustomShareToolTContext(String, Image) | Obsolete.
Initializes a new instance of the CustomShareToolTContext class.
| |
CustomShareToolTContext(String, ExtensionIcon, LicensedFunction) |
Initializes a new instance of the CustomShareToolTContext class.
| |
CustomShareToolTContext(String, Image, LicensedFunction) | Obsolete.
Initializes a new instance of the CustomShareToolTContext class.
|
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute |
Executes the tool for the specified context.
If IsEnabled(TContext) returns false, this method does nothing.
(Inherited from ToolTContext.) | |
ExecuteAndPrompt |
Executes the tool for the specified context.
If IsEnabled(TContext) returns false, this method does nothing.
(Inherited from ToolTContext.) | |
ExecuteAndPromptCore |
Implement this method to perform tool-specific logic.
(Inherited from ToolTContext.) | |
ExecuteCore(TContext) | Throws NotSupportedException.
Use ExecuteCore(TContext, ShareToolExecutionContext) instead.
(Inherited from ShareToolTContext.) | |
ExecuteCore(TContext, ShareToolExecutionContext) |
Executes the tool with the specified contexts
(Inherited from ShareToolTContext.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetMenuTextCore |
Gets the menu text for the tool.
| |
GetSupportsPromptingCore |
Override this method to return a value indicating whether this tool supports the ExecuteAndPrompt method
which enables asynchronous prompting e.g. on the Web Player.
(Inherited from ToolTContext.) | |
GetToolbarIdCore |
Gets the identifier used by the custom toolbar. This is the string that you add to the ToolbarShortcuts preference
if you want your tool to be visible in the toolbar. The default value is the name of the type.
Override this method if you want to provide your own identifier string.
(Inherited from Tool.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsEnabled |
Gets whether or not the tool is enabled for the specified context.
If context is null or not of the type specified by ContextType,
false is always returned.
(Inherited from ToolTContext.) | |
IsEnabledCore |
Override this method to control when the tool is enabled.
(Inherited from ToolTContext.) | |
IsVisibleCore |
Gets whether or not the tool should be visible in
the application given its context. Hiding a tool will
remove it from the user interface of its context and prevent usage.
Override with a custom implementation to control when the tool
is visible.
(Inherited from ToolTContext.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Version Information
Supported in: 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8, 11.7, 11.6, 11.5, 11.4
See Also