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 עבור חבילת .Net. רכוש : AsICollection, AsIEnumerable, Count, ParentGroup.

נכסים

שםסוגגישהתיאור
ParentGroupIGroupShape?קראוקבל את קבוצת ההורים.
AsICollectionIList<IShape>קראואני מקבל את זה כמו שאני אוסף.
AsIEnumerableIEnumerable<IShape>קראואני מקבל את זה כפי שאני מצטבר.
Countintקראומקבל את הספירה.

שיטות

חתימהתיאור
ShapeCollection()הוא מתחיל דוגמה חדשה של הכיתה ShapeCollection.
ToArray()החזיר תת-סדרה של צורות החל ב startIndex
ToArray(startIndex: int, count: int)התקשר ToArray(startIndex, count) על ההדפסה הזו ShapeCollection.
Reorder(index: int, shape: IShape)תנועות צורות מרובות להתחיל על המדד שניתן
Reorder(index: int, shapes: IShape[])קורא Reorder(אינדקס, צורות) על האינדס הזה 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, רוחב, גובה, 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(אינדקס, צורהType, x, y, רוחב, גובה, יצירתFromTemplate) על האינדס הזה 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, רוחב, גובה, 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(אינדקס, צורהType, x, y, רוחב, גובה, יצירתFromTemplate) על האינדס הזה 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()צלצול ברור על האינדקס הזה ShapeCollection.
GetEnumerator()החזיר מספר כדי לייצר את הצורות

ראה גם

 עברית