PropertyCollection (pemegang tempat)
Pengamatan umum
IShapeCollection adalah antarmuka dalam Aspose.Slides untuk NET. Warisan dari: IEnumerable<IShape>.
Menampilkan koleksi benda yang tertib dan dapat berubah milik slide atau bentuk kelompok.
Sifat-sifatnya
| Nama (Inggris) | Jenis | Akses | Deskripsi |
|---|---|---|---|
ParentGroup | IGroupShape? | Bacalah. | Dapatkan bentuk kelompok yang berisi koleksi ini, jika ada |
AsICollection | IList<IShape> | Bacalah. | Memberikan bentuk sebagai IList untuk akses gaya koleksi |
AsIEnumerable | IEnumerable<IShape> | Bacalah. | Memberikan bentuk sebagai IEnumerable untuk iterasi |
Count | int | Bacalah. | Mengembalikan jumlah bentuk dalam koleksi |
Metode-metode yang digunakan
| Tanda tangan | Deskripsi |
|---|---|
ToArray() | Array yang berisi semua bentuk dalam koleksi. |
ToArray(startIndex: int, count: int) | Array yang berisi rentang bentuk tertentu. |
Reorder(index: int, shape: IShape) | Bentuk untuk bergerak. |
Reorder(index: int, shapes: IShape[]) | Bentuk untuk bergerak. |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Bentuk otomatis yang dibuat. |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Bentuk otomatis yang dibuat. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Bentuk otomatis yang dibuat. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Bentuk otomatis yang dibuat. |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Konektor yang dibuat. |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Konektor yang dibuat. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Konektor yang dibuat. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Konektor yang dibuat. |
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Bingkai gambar yang dibuat. |
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Bingkai gambar yang dibuat. |
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[]) | Meja yang dibuat. |
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[]) | Meja yang dibuat. |
IndexOf(shape: IShape) | Indeks berbasis nol, atau -1 jika bentuknya tidak ada dalam koleksi. |
RemoveAt(index: int) | Indeks berbasis nol dari bentuk yang akan dihapus. |
Remove(shape: IShape) | Bentuk untuk dihapus. |
Clear() | Menghapus semua bentuk dari koleksi |