ShapeCollection

ShapeCollection

Overview

ShapeCollection là một lớp trong Aspose.Slides FOSS cho .NET. Dòng thừa kế từ: IShapeCollection.

Nó đại diện cho một bộ sưu tập được đặt hàng, có thể thay đổi của các đối tượng thuộc về một hình dạng nhãn hoặc nhóm.

Khóa học này cung cấp 22 phương pháp để làm việc với các đối tượng ShapeCollection trong các chương trình .NET. Các phương pháp có sẵn bao gồm: AddAutoShape, AddConnector, AddPictureFrame, AddTable, Clear, GetEnumerator, IndexOf, InsertAutoShape, InsertConnector, InsertPictureFrame, InsertTable, Remove,Và 4 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 .NET nào sau khi cài đặt Aspose.Slides FOSS cho gói .Net. Tài sản : AsICollection, AsIEnumerable, Count, ParentGroup.

Properties

NameTypeAccessDescription
ParentGroupIGroupShape?ReadNhận nhóm cha mẹ.
AsICollectionIList<IShape>ReadNhận như tôi thu thập.
AsIEnumerableIEnumerable<IShape>ReadNhận được như tôi có thể liệt kê.
CountintReadNhận được số.

Methods

SignatureDescription
ShapeCollection()Khởi động một trường hợp mới của lớp ShapeCollection.
ToArray()Trở lại một sub-range của các hình thức bắt đầu với startIndex
ToArray(startIndex: int, count: int)Hãy gọi ToArray(startIndex, count) trên ví dụ này ShapeCollection.
Reorder(index: int, shape: IShape)Di chuyển nhiều hình dạng để bắt đầu với chỉ số đã được cung cấp
Reorder(index: int, shapes: IShape[])Call Reorder(index, shapes) trên trường hợp này ShapeCollection.
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float)Tạo một AutoShape mới của yêu cầu ShapeType trong các tọa độ được chỉ định và trả về mẫu đơn vị
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)Call AddAutoShape(shapeType, x, y, chiều rộng, độ cao, tạoFromTemplate) trên ví dụ này ShapeCollection.
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float)Nhập một AutoShape mới vào index, tùy chọn từ mẫu
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)Call InsertAutoShape(index, shapeType, x, y, chiều rộng, độ cao, tạoFromTemplate) trên ví dụ này ShapeCollection.
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float)Thêm một bộ kết nối, tùy chọn từ template
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)Call AddConnector(shapeType, x, y, chiều rộng, độ cao, tạoFromTemplate) trên ví dụ này ShapeCollection.
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float)Nhập một con nối vào chỉ số đó
InsertConnector(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)Call InsertConnector(index, shapeType, x, y, chiều rộng, độ cao, tạoFromTemplate) trên ví dụ này ShapeCollection.
AddPictureFrame(shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage)Thêm một hình ảnh khung với hình thức được cung cấp
InsertPictureFrame(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, image: IPPImage)Nhập một hình ảnh khung vào index với hình thức cung cấp
AddTable(x: float, y: float, columnWidths: double[], rowHeights: double[])Thêm một bảng ở vị trí với chiều rộng cột và độ cao hàng được chỉ định
InsertTable(index: int, x: float, y: float, columnWidths: double[], rowHeights: double[])Nhập bảng trên chỉ số với kích thước nhất định
IndexOf(shape: IShape)Trả lại chỉ số dựa trên zero của hình dạng cụ thể
RemoveAt(index: int)Xóa hình dạng trên chỉ số đã được cung cấp
Remove(shape: IShape)Xóa hình dạng cụ thể từ bộ sưu tập
Clear()Chọn Clear trên trường hợp ShapeCollection này.
GetEnumerator()Trả lại một số để iterate các hình dạng

See Also

 Tiếng Việt