ChartCollection
内容
[
隐藏
]ChartCollection class
封装了一个集合Chart对象.
public class ChartCollection : CollectionBase<Chart>
特性
| 姓名 | 描述 |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | 获取Chart指定索引处的元素。 (2 indexers) |
| Item { get; set; } |
方法
| 姓名 | 描述 |
|---|---|
| Add(ChartType, int, int, int, int) | 将图表添加到集合中。 |
| Add(ChartType, string, bool, int, int, int, int) | 将图表添加到集合中。 |
| AddFloatingChart(ChartType, int, int, int, int) | 将图表添加到集合中。 |
| BinarySearch(Chart) | |
| BinarySearch(Chart, IComparer<Chart>) | |
| BinarySearch(int, int, Chart, IComparer<Chart>) | |
| Clear() | 清除所有图表。 (2 methods) |
| Contains(Chart) | |
| CopyTo(Chart[]) | |
| CopyTo(Chart[], int) | |
| CopyTo(int, Chart[], int, int) | |
| Exists(Predicate<Chart>) | |
| Find(Predicate<Chart>) | |
| FindAll(Predicate<Chart>) | |
| FindIndex(Predicate<Chart>) | |
| FindIndex(int, Predicate<Chart>) | |
| FindIndex(int, int, Predicate<Chart>) | |
| FindLast(Predicate<Chart>) | |
| FindLastIndex(Predicate<Chart>) | |
| FindLastIndex(int, Predicate<Chart>) | |
| FindLastIndex(int, int, Predicate<Chart>) | |
| GetEnumerator() | |
| IndexOf(Chart) | |
| IndexOf(Chart, int) | |
| IndexOf(Chart, int, int) | |
| LastIndexOf(Chart) | |
| LastIndexOf(Chart, int) | |
| LastIndexOf(Chart, int, int) | |
| RemoveAt(int) | 删除特定索引处的图表。 (2 methods) |
例子
[C#]
Workbook workbook = new Workbook();
ChartCollection charts = workbook.Worksheets[0].Charts;
[Visual Basic]
Dim workbook as Workbook = new Workbook()
Dim ChartCollection as Charts = workbook.Worksheets(0).Charts
也可以看看
- class CollectionBase<T>
- class Chart
- 命名空间 Aspose.Cells.Charts
- 部件 Aspose.Cells