ExcelFile.SetImageProperties Method
Overloads
- ExcelFile.SetImageProperties(Int32, TImageProperties)
- ExcelFile.SetImageProperties(Int32, TImageProperties, Boolean, String)
ExcelFile.SetImageProperties(Int32, TImageProperties)
Sets the image properties of an existing image.
Syntax
Namespace: FlexCel.Core
public void SetImageProperties(Int32 imageIndex, TImageProperties imageProperties)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
imageIndex | Int32 | Index of the image on the sheet array (1-based) | |
imageProperties | TImageProperties | Image size, placement, etc. |
See also
ExcelFile.SetImageProperties(Int32, TImageProperties, Boolean, String)
Sets the image properties of an existing image.
Syntax
Namespace: FlexCel.Core
public abstract void SetImageProperties(Int32 imageIndex, TImageProperties imageProperties, Boolean usesObjectIndex, String objectPath)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
imageIndex | Int32 | Index of the image on the sheet array (1-based) | |
imageProperties | TImageProperties | Image size, placement, etc. | |
usesObjectIndex | Boolean | If false (the default) 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. |
|
objectPath | String | Path to the object, when the object is grouped with others. This parameter only has meaning if usesObjectIndex is true. 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" |