IShapeCollection

IShapeCollection

Overview

IShapeCollection là một giao diện trong Aspose.Slides FOSS cho Java.

Nó đại diện cho một bộ sưu tập các hình dạng.

Giao diện này cung cấp 25 phương pháp để làm việc với các đối tượng IShapeCollection trong các chương trình Java. Các phương pháp có sẵn bao gồm: addAutoShape, addConnector, addPictureFrame, addTable, asICollection, asIEnumerable, clear, get, getParentGroup, indexOf, insertAutoShape, insertConnector,Và 7 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Java nào sau khi cài đặt Aspose.Slides FOSS cho gói Java. Tài sản : parentGroup.

Properties

NameTypeAccessDescription
parentGroupIGroupShapeReadNhận hình dạng nhóm mẹ cho bộ sưu tập này, hoặc {@code null} nếu bộ Sưu Tập này trực tiếp thuộc về một slide.

Methods

SignatureDescription
getParentGroup()IGroupShapeNhận hình dạng nhóm mẹ cho bộ sưu tập này, hoặc {@code null} nếu bộ Sưu Tập này trực tiếp thuộc về một slide.
asICollection()List<IShape>Trả lại bộ sưu tập này như một {@link List} không thể thay đổi.
asIEnumerable()Iterable<IShape>Quay lại bộ sưu tập này như một {@link Iterable}.
get(index: int)IShapeNhận hình dạng tại chỉ số cụ thể.
size()intTrả lại số lượng các hình dạng trong bộ sưu tập.
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double)IAutoShapeTạo một AutoShape mới và thêm vào bộ sưu tập.
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShapeTạo một AutoShape mới và thêm vào bộ sưu tập.
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double)IAutoShapeTạo một AutoShape mới và nhập nó vào chỉ số cụ thể.
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShapeTạo một AutoShape mới và nhập nó vào chỉ số cụ thể.
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double)IConnectorThêm một con nối vào bộ sưu tập.
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnectorThêm một con nối vào bộ sưu tập.
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double)IConnectorTạo một con nối và đặt nó vào chỉ số cụ thể.
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnectorTạo một con nối và đặt nó vào chỉ số cụ thể.
addPictureFrame(shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage)IPictureFrameThêm một hình ảnh khung vào bộ sưu tập.
insertPictureFrame(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage)IPictureFrameTạo một khung hình và đặt nó vào chỉ số cụ thể.
addTable(x: double, y: double, colWidths: double[], rowHeights: double[])ITableThêm một bảng vào bộ sưu tập.
insertTable(index: int, x: double, y: double, colWidths: double[], rowHeights: double[])ITableTạo một bảng và đặt nó vào chỉ số cụ thể.
indexOf(shape: IShape)intTrả lại chỉ số của hình dạng cụ thể.
toArray()IShape[]Trở lại tất cả các hình dạng như một array.
toArray(startIndex: int, count: int)IShape[]Trở lại một loạt các hình dạng như một dòng.
reorder(index: int, shape: IShape)Chuyển hình dạng đến vị trí cụ thể.
reorder(index: int, shapes: IShape[])Chuyển đổi nhiều hình dạng đến vị trí cụ thể.
removeAt(index: int)Xóa hình dạng trên chỉ số cụ thể.
remove(shape: IShape)Xóa hình dạng cụ thể từ bộ sưu tập.
clear()Xóa tất cả các hình dạng từ bộ sưu tập.

See Also

 Tiếng Việt