ShapeCollection
ShapeCollection
Overview
ShapeCollection є класом в Aspose.Slides FOSS для .NET. Наследники від: IShapeCollection.
Представляє упорядкований, змінний збір IShape об’єктів, що належать до слайду або групи.
Цей клас надає 22 методи для роботи з об’єктами ShapeCollection в програмах .NET. Доступні методи включають: AddAutoShape, AddConnector, AddPictureFrame, AddTable, Clear, GetEnumerator, IndexOf, InsertAutoShape, InsertConnector, InsertPictureFrame, InsertTable, Remove, і 4 додаткові методи. Всі публічні члени доступні будь-якій додаткові .NET після встановлення Aspose.Slides FOSS для пакету .Net. Свойства: AsICollection, AsIEnumerable, Count, ParentGroup.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ParentGroup | IGroupShape? | Read | Обирає батьківську групу. |
AsICollection | IList<IShape> | Read | Він отримує колекцію “Я”. |
AsIEnumerable | IEnumerable<IShape> | Read | Це є безліч. |
Count | int | Read | Знайде розрахунок. |
Methods
| Signature | Description |
|---|---|
ShapeCollection() | Ініціалізує новий екземпляр класу ShapeCollection . |
ToArray() | Повертає підмасиви з форм, починаючи від startIndex |
ToArray(startIndex: int, count: int) | Покликання ToArray ((startIndex, count) на цьому прикладі ShapeCollection. |
Reorder(index: int, shape: IShape) | Переміщає кілька форм, щоб почати з даного індексу. |
Reorder(index: int, shapes: IShape[]) | Покликання Reorder ((index, shapes) на цьому ShapeCollection інстанції. |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Створює новий AutoShape запиту. ShapeType на зазначених координатах і повертає екземпляр форми |
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Покликання AddAutoShape ((shapeType, x, y, width, height, createFromTemplate) на цьому прикладі ShapeCollection. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Вставляє новий AutoShape в индекс, можливо з шаблону. |
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Покликання InsertAutoShape ((index, shapeType, x, y, width, height, createFromTemplate) на цьому прикладі ShapeCollection. |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float) | Додає з’єднання, можливо, із шаблону |
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Покликання AddConnector ((shapeType, x, y, width, height, createFromTemplate) на цьому прикладі ShapeCollection. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float) | Вставляє з’єднання в даному індексі. |
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool) | Покликання InsertConnector ((index, shapeType, x, y, width, height, createFromTemplate) на цьому прикладі ShapeCollection. |
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Додає кадр з зображенням, що поставлено |
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage) | Вставляє картинку в індексі з наданим зображенням |
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[]) | Додає таблицю в положенні з зазначеними ширинами стовпків та висотами рядків |
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[]) | Вставляє таблицю в індекс з даними розмірами. |
IndexOf(shape: IShape) | Повертає індекс на основі нуля з зазначеної форми. |
RemoveAt(index: int) | Видає форму в даному індексі. |
Remove(shape: IShape) | Видає визначену форму з колекції . |
Clear() | Покликає Clear на цьому ShapeCollection інстанції. |
GetEnumerator() | Повертає перерахунок для ітерації форм. |