IShapeCollection

IShapeCollection

ภาพรวม

IShapeCollection เป็นอินเตอร์เฟสใน Aspose.Slides FOSS สําหรับ .NET. ทายาทจาก: IEnumerable<IShape>.

แสดงให้เห็นถึงการจัดเรียงและเปลี่ยนคอลเลกชันของวัตถุ IShape ที่เป็นส่วนหนึ่งของรูปแบบสไลด์หรือกลุ่ม.

ช่องทางนี้ให้ 20 วิธีในการทํางานกับวัตถุ IShapeCollection ในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: AddAutoShape, AddConnector, AddPictureFrame, AddTable, Clear, IndexOf, InsertAutoShape, InsertConnector, InsertPictureFrame, InsertTable, Remove, RemoveAt,และวิธีการเพิ่มเติม 2 วิธี. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.Slides FOSS for .Net. คุณสมบัติ: AsICollection, AsIEnumerable, Count, ParentGroup.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
ParentGroupIGroupShape?อ่านรับรูปกลุ่มแม่ที่เป็นเจ้าของคอลเลกชันนี้.
AsICollectionIList<IShape>อ่านแสดงคอลเลกชั่นเป็นอินเตอร์เฟสรายการทั่วไป.
AsIEnumerableIEnumerable<IShape>อ่านเปิดเผยการสะสมเป็นอินเตอร์เฟสที่ไม่ถอดจํานวนได้.
Countintอ่านรับจำนวนรูปทรงในคอลเลกชัน.

วิธีการ

Signatureคําอธิบาย
ToArray()กลับรูปแบบทั้งหมดในคอลเลกชั่นเป็นอาร์เรย์ใหม่.
ToArray(startIndex: int, count: int)ส่งผลการใช้รูปแบบที่เริ่มจากอัตรานิยมที่กําหนดไว้.
Reorder(index: int, shape: IShape)ย้ายรูปร่างเดียวไปยังตําแหน่งที่กําหนดในคอลเลกชั่น โดยเปลี่ยนลําดับ z ของมัน.
Reorder(index: int, shapes: IShape[])ย้ายรูปแบบหลายตัว เพื่อให้เริ่มต้นที่ตําแหน่งที่ถูกกําหนด โดยรักษาลําดับส่วนของพวกมันไว้.
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float)สร้างรูปแบบอัตโนมัติใหม่ และเพิ่มมันให้กับการรวบรวม.
AddAutoShape(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)สร้างรูปแบบอัตโนมัติใหม่ และเพิ่มมันให้กับการรวบรวม.
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float)สร้างรูปแบบอัตโนมัติใหม่ และใส่มันในตําแหน่งที่กําหนดไว้.
InsertAutoShape(index: int, shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)สร้างรูปแบบอัตโนมัติใหม่ และใส่มันในตําแหน่งที่กําหนดไว้.
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float)สร้างรูปแบบเชื่อมต่อ และติดมันกับการรวบรวม.
AddConnector(shapeType: ShapeType, x: float, y: float, width: float, height: float, createFromTemplate: bool)สร้างรูปแบบเชื่อมต่อ และติดมันกับการรวบรวม.
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)สร้างรูปร่างของตัวเชื่อม และใส่มันในตําแหน่งที่กําหนดไว้.
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)การคืนตัวอัตราฐานศูนย์ของรูปร่างที่กําหนด, หรือ -1 หากไม่พบ.
RemoveAt(index: int)ลบรูปร่างที่อัตราฐานศูนย์ที่กําหนดไว้.
Remove(shape: IShape)ลบการเกิดขึ้นครั้งแรกของรูปร่างที่ระบุจากคอลเลกชั่น.
Clear()ยกรูปทั้งหมดจากสะสม.

ดูเช่นกัน

 ภาษาไทย