Exposes some of the XL Toolbox features to external programs, such as VBA code.
More...
|
string | Version () |
| Returns the current XL Toolbox version as a string. More...
|
|
int | ExportSelection (string fileName, int dpi, string colorSpace, string transparency) |
| Exports the current selection to a graphic file. More...
|
|
void | Execute (string command) |
| Executes an XL Toolbox command. This method exists to facilitate using Application.OnKey which expects an Excel macro of VBA method as parameter, but does not work with .NET code. Of course, it can also be used to trigger XL Toolbox commands from independent VBA code. More...
|
|
void | ShowException (string message) |
| Shows an exception. More...
|
|
void | Log (string message) |
| Write a message to the log. More...
|
|
bool | IsDebugMode () |
| Returns true if running in debug mode. More...
|
|
Exposes some of the XL Toolbox features to external programs, such as VBA code.
Private Sub ExportSelectionUsingXLToolboxNG()
Dim apiObject As Object
Set apiObject = addin.Object
End Sub
◆ Execute()
void XLToolbox.Vba.Api.Execute |
( |
string |
command | ) |
|
|
inline |
Executes an XL Toolbox command. This method exists to facilitate using Application.OnKey which expects an Excel macro of VBA method as parameter, but does not work with .NET code. Of course, it can also be used to trigger XL Toolbox commands from independent VBA code.
- Parameters
-
command | XL Toolbox command to execute |
Implements XLToolbox.Vba.IApi.
◆ ExportSelection()
int XLToolbox.Vba.Api.ExportSelection |
( |
string |
fileName, |
|
|
int |
dpi, |
|
|
string |
colorSpace, |
|
|
string |
transparency |
|
) |
| |
|
inline |
Exports the current selection to a graphic file.
- Parameters
-
fileName | File name to export to. The file extension must be one of '.tif', '.tiff', '.png' or '.emf'. |
dpi | Resolution in dots per inch (DPI). |
colorSpace | Target color space (one of 'RGB', 'GRAY', 'MONO'; if this string is empty, 'RGB' will be assumed). Note: CMYK is currently not supported by this API function. |
transparency | Transparency (one of 'NONE', 'CANVAS', 'WHITE'; if this string is empty, 'NONE' will be assumed). |
- Returns
- 0 if successful; 1 if unknown file type; 2 if unknown color space; 3 if unknown transparency type.
Implements XLToolbox.Vba.IApi.
◆ IsDebugMode()
bool XLToolbox.Vba.Api.IsDebugMode |
( |
| ) |
|
|
inline |
◆ Log()
void XLToolbox.Vba.Api.Log |
( |
string |
message | ) |
|
|
inline |
◆ ShowException()
void XLToolbox.Vba.Api.ShowException |
( |
string |
message | ) |
|
|
inline |
◆ Version()
string XLToolbox.Vba.Api.Version |
( |
| ) |
|
|
inline |
Returns the current XL Toolbox version as a string.
The XL Toolbox follows the semantic versioning scheme, see http://semver.org
- Returns
- Current XL Toolbox version
Implements XLToolbox.Vba.IApi.
◆ Default
Api XLToolbox.Vba.Api.Default |
|
staticget |
◆ LastLog
string XLToolbox.Vba.Api.LastLog |
|
getprotected set |
The documentation for this class was generated from the following file: