ExcelFile.HasImageAlternate Method
Returns true if the image has an alternate representation. This currently happens only with SVG images, which have a PNG base and an SVG alternate. If the image has an alternate, you can get the data with GetImageAlternate
Syntax
Namespace: FlexCel.Core
public abstract Boolean HasImageAlternate(Int32 imageIndex, String objectPath, Boolean usesObjectIndex)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
imageIndex | Int32 | Index of the image. (1 based) | |
objectPath | String | Object path to the image when it is a grouped image. For toplevel images you can use String.Empty. In other case, you need to use the value returned by GetObjectProperties(Int32, Boolean) Important: ObjectPath is ignored if usesObjectIndex is false. If it is "absolute"(it starts with "\\"), then the path includes the objectIndex, and the objectIndex is not used. An object path of "\\1\\2\\3" is exactly the same as using objectIndex = 1 and objectPath = "2\\3" You might also use the name of the image as object path, like in xls.GetImage(-1, "@myimage", ref imageType, ImageStream, true) |
|
usesObjectIndex | Boolean | If false then imageIndex is an index to the list of images. When true imageIndex is an index to the list of all objects in the sheet. When you have the object id, you can avoid calling ObjectIndexToImageIndex which is a slow method, by setting this parameter to true. |