删除EPPlus中的图片

时间:2012-06-27 15:17:17

标签: excel epplus

使用EPplus,如何从工作表中删除现有图片?我没有在图纸集合上看到“删除”方法。

1 个答案:

答案 0 :(得分:1)

ExcelDrawings有一个Remove方法:

示例:sheet.Drawings.Remove(" image1");

    //
    // Summary:
    //     Removes a drawing.
    //
    // Parameters:
    //   Drawing:
    //     The drawing
    public void Remove(ExcelDrawing Drawing);
    //
    // Summary:
    //     Removes a drawing.
    //
    // Parameters:
    //   Index:
    //     The index of the drawing
    public void Remove(int Index);
    //
    // Summary:
    //     Removes a drawing.
    //
    // Parameters:
    //   Name:
    //     The name of the drawing
    public void Remove(string Name);
相关问题