TSaveImageEventArgs Class
Arguments passed on TFlexCelHtmlExport.OnSaveImage,
Syntax
Unit: FlexCel.Render
TSaveImageEventArgs = class(EventArgs);
Constructors
Name | Description |
---|---|
Create | Creates a new Argument. |
Properties
Name | Description |
---|---|
Workbook | ExcelFile with the image, positioned in the sheet that we are rendering. Make sure if you modify ActiveSheet of this instance to restore it back to the original value before exiting the event. |
ObjectIndex | Object index of the object being rendered. You can use xls.GetObject(objectIndex) to get the object properties. If the image is not an object (for example it is a rotated text) this property will be -1. |
ShapeProps | Shape properties of the object being rendered. You can use them to get the name of the object, its size, etc. If the image is not an object (for example it is a rotated text) this property will be null. |
ImageFile | The file where the image is expected to be saved. |
ImageLink | The link that will be inserted in the html file. |
AlternateText | Alternate text for the image, to show in the "ALT" tag when a browser cannot display images. By default this is set to the text in the box "Alternative Text" in the web tab on the image properties. If no Alternative text is supplied in the file, the image name will be used here. |
SavedImageFormat | File format in which the image is. |
ImageToSave | Image that will be saved. You can use it to save it yourself. Note that when saving as SVG, this will be null. |
Processed | Set this property to true if you have taken care of saving the image, and FlexCel does not need to save it. If you just used this event to get information on the image being saved, but would like to keep the normal flux, set it to false. |