Click or drag to resize

IPictureShape Remove Method (Boolean)

Removes shape from the collection.

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
void Remove(
	bool removeImage
)

Parameters

removeImage
Type: System Boolean
Removes image that is referenced by this shape from collection too, if we didn't detect image usage. XLS doesn't detect this situation correctly in all cases if there are shapes in charts in Excel 2007 or if some image shapes are grouped in any excel version. If you are not sure whether image is referenced in charts or grouped shapes and you are working with Excel 2007 version, set this argument to true (this could cause file size increase, but will keep document in the correct state).
See Also