PictureCollection
内容
[
隐藏
]PictureCollection class
封装了一个集合Picture对象.
public class PictureCollection : CollectionBase<Picture>
特性
| 姓名 | 描述 |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | 获取Picture指定索引处的元素。 |
| Item { get; set; } |
方法
| 姓名 | 描述 |
|---|---|
| Add(int, int, Stream) | 将图片添加到集合中。 |
| Add(int, int, string) | 将图片添加到集合中。 |
| Add(int, int, int, int, Stream) | 将图片添加到集合中。 |
| Add(int, int, int, int, string) | 将图片添加到集合中。 |
| Add(int, int, Stream, int, int) | 将图片添加到集合中。 |
| Add(int, int, string, int, int) | 将图片添加到集合中。 |
| BinarySearch(Picture) | |
| BinarySearch(Picture, IComparer<Picture>) | |
| BinarySearch(int, int, Picture, IComparer<Picture>) | |
| Clear() | 清除所有图片。 (2 methods) |
| Contains(Picture) | |
| CopyTo(Picture[]) | |
| CopyTo(Picture[], int) | |
| CopyTo(int, Picture[], int, int) | |
| Exists(Predicate<Picture>) | |
| Find(Predicate<Picture>) | |
| FindAll(Predicate<Picture>) | |
| FindIndex(Predicate<Picture>) | |
| FindIndex(int, Predicate<Picture>) | |
| FindIndex(int, int, Predicate<Picture>) | |
| FindLast(Predicate<Picture>) | |
| FindLastIndex(Predicate<Picture>) | |
| FindLastIndex(int, Predicate<Picture>) | |
| FindLastIndex(int, int, Predicate<Picture>) | |
| GetEnumerator() | |
| IndexOf(Picture) | |
| IndexOf(Picture, int) | |
| IndexOf(Picture, int, int) | |
| LastIndexOf(Picture) | |
| LastIndexOf(Picture, int) | |
| LastIndexOf(Picture, int, int) | |
| RemoveAt(int) | 删除特定索引处的形状 (2 methods) |
例子
[C#]
//实例化一个工作簿对象
Workbook workbook = new Workbook();
//获取图片集合
PictureCollection pictures = workbook.Worksheets[0].Pictures;
//做你的事
//保存excel文件。
workbook.Save("result.xlsx");
也可以看看
- class CollectionBase<T>
- class Picture
- 命名空间 Aspose.Cells.Drawing
- 部件 Aspose.Cells