Class ShapePathCollection
Contents
[
Hide
]ShapePathCollection class
Represents path collection information in NotPrimitive autoshape
public class ShapePathCollection : CollectionBase<ShapePath>
Properties
| Name | Description |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | Gets the count of paths |
| Item { get; } | Gets a creation path. |
| Item { get; set; } |
Methods
| Name | Description |
|---|---|
| Add() | Add a creation path. |
| BinarySearch(ShapePath) | |
| BinarySearch(ShapePath, IComparer<ShapePath>) | |
| BinarySearch(int, int, ShapePath, IComparer<ShapePath>) | |
| Clear() | |
| Contains(ShapePath) | |
| CopyTo(ShapePath[]) | |
| CopyTo(ShapePath[], int) | |
| CopyTo(int, ShapePath[], int, int) | |
| Exists(Predicate<ShapePath>) | |
| Find(Predicate<ShapePath>) | |
| FindAll(Predicate<ShapePath>) | |
| FindIndex(Predicate<ShapePath>) | |
| FindIndex(int, Predicate<ShapePath>) | |
| FindIndex(int, int, Predicate<ShapePath>) | |
| FindLast(Predicate<ShapePath>) | |
| FindLastIndex(Predicate<ShapePath>) | |
| FindLastIndex(int, Predicate<ShapePath>) | |
| FindLastIndex(int, int, Predicate<ShapePath>) | |
| GetEnumerator() | |
| IndexOf(ShapePath) | |
| IndexOf(ShapePath, int) | |
| IndexOf(ShapePath, int, int) | |
| LastIndexOf(ShapePath) | |
| LastIndexOf(ShapePath, int) | |
| LastIndexOf(ShapePath, int, int) | |
| RemoveAt(int) |
Examples
namespace AsposeCellsExamples
{
using Aspose.Cells;
using Aspose.Cells.Drawing;
using System;
public class ShapePathCollectionDemo
{
public static void ShapePathCollectionExample()
{
// Instantiate a new Workbook
Workbook workbook = new Workbook("ShapePathCollectionExample_original.xlsx");
Worksheet worksheet = workbook.Worksheets[0];
Shape customShape = worksheet.Shapes[0];
// Access the ShapePathCollection of the arc shape
ShapePathCollection shapePaths = customShape.Paths;
if (shapePaths != null)
{
// Add a new path to the ShapePathCollection
int pathIndex = shapePaths.Add();
// Access the newly added ShapePath
ShapePath newPath = shapePaths[pathIndex];
// Display the count of paths in the ShapePathCollection
Console.WriteLine("Number of paths in the ShapePathCollection: " + shapePaths.Count);
}
// Save the workbook
workbook.Save("ShapePathCollectionExample.xlsx");
}
}
}
See Also
- class CollectionBase<T>
- class ShapePath
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells