PictureCollection

PictureCollection

Overview

PictureCollection 是一个类在Aspose.Cells FOSS的.NET中.

代表图片的集合,在工作表.图像允许直接嵌入到Excel的工作表从各种来源.支持的图形格式包括JPEG,PNG,GIF和BMP.照片可以从文件,流或字节阵列中加载.每个图文都可以独立使用 ?? 坐标位置和尺寸.该集提供了通过索引添加,删除和访问图纸的方式. var工作簿 = 新工作册();var工作单 = 工作卷.工作页[0]; // 从不同来源添置图画 byte[]数据标志=File.ReadAllBytes(“LOGODER.png”);工作板.Pictures.Add2, 5,5,2}}; (Data Stream = File.OpenRead ((() }image).jpg3,5}10,6}12,4}10;##$$DREAMON0,3}1,5}}),用图书链接.;

这个类提供了2种方法,用于在NET程序中与PictureCollection对象工作. 有的方法包括: Add, RemoveAt. 所有出口的成员都可访问任何NET应用程序,在安装了Aspose.Cells FOSS for .NET包后. 特性: Count.

Description

PictureCollection 是一个类在Aspose.Cells FOSS库的.NET,它暴露了4个方法和1个属性用于编程使用.

课程还提供了 Count 财产 (得到了计数).

Properties

NameTypeAccessDescription
CountintRead得到了数.

Methods

SignatureDescription
Add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, imageData: byte[])将图片从原始图像字节中添加到工作表,并返回其索引.
Add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, stream: Stream)将图片从原始图像字节中添加到工作表,并返回其索引.
Add(upperLeftRow: int, upperLeftColumn: int, lowerRightRow: int, lowerRightColumn: int, fileName: string)将图片从原始图像字节中添加到工作表,并返回其索引.
RemoveAt(index: int)删除指定零基索引的图片.

See Also

 中文