ShapeCollection

ShapeCollection

ภาพรวม

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 for .Net. คุณสมบัติ: AsICollection, AsIEnumerable, Count, ParentGroup.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
ParentGroupIGroupShape?อ่านรับกลุ่มแม่.
AsICollectionIList<IShape>อ่านรับคอลเลกชัน as i.
AsIEnumerableIEnumerable<IShape>อ่านรับค่าเป็น IEnumerable.
Countintอ่านรับจำนวน.

วิธีการ

Signatureคําอธิบาย
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()การคืนตัวนับจํานวนสําหรับการคัดรูปแบบ

ดูเช่นกัน

 ภาษาไทย