IShapeCollection

IShapeCollection

סקירה כללית

IShapeCollection הוא ממשק ב Aspose.Slides FOSS עבור Java.

הוא מייצג אוסף של צורות.

ממשק זה מספק 25 שיטות לעבוד עם אובייקטים IShapeCollection בתוכניות Java. שיטות זמינות כוללות: addAutoShape, addConnector, addPictureFrame, addTable, asICollection, asIEnumerable, clear, get, getParentGroup, indexOf, insertAutoShape, insertConnector,7 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום Java לאחר התקנת Aspose.Slides FOSS עבור חבילת Java. רכוש : parentGroup.

נכסים

שםסוגגישהתיאור
parentGroupIGroupShapeקראומקבל את צורת הקבוצה המולדת עבור אוסף זה, או {@code null} אם זה
הקולקציה שייכת ישירות לסליד.

שיטות

חתימהתיאור
getParentGroup()IGroupShapeמקבל את צורת הקבוצה המולדת עבור אוסף זה, או {@code null} אם זה
הקולקציה שייכת ישירות לסליד.
asICollection()List<IShape>החזיר את האוסף הזה כלא ניתן לשנות {@link List}.
asIEnumerable()Iterable<IShape>החזיר את הקולקציה הזו כ {@link Iterable}.
get(index: int)IShapeמקבל את הצורה על האינדקס שנקבע.
size()intהחזיר את מספר הצורות באוסף.
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double)IAutoShapeיצירת AutoShape חדשה ומוסיף אותה לאוסף.
addAutoShape(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShapeיצירת AutoShape חדשה ומוסיף אותה לאוסף.
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double)IAutoShapeיצירת AutoShape חדש והכניסה אותו לאינדקס המפורט.
insertAutoShape(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IAutoShapeיצירת AutoShape חדש והכניסה אותו לאינדקס המפורט.
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double)IConnectorהוסף מחבר לקולקציה.
addConnector(shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnectorהוסף מחבר לקולקציה.
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double)IConnectorיצירת מחבר ומכניס אותו לתוך האינדקס המפורט.
insertConnector(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, createFromTemplate: boolean)IConnectorיצירת מחבר ומכניס אותו לתוך האינדקס המפורט.
addPictureFrame(shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage)IPictureFrameהוסף מסגרת תמונה לאוסף.
insertPictureFrame(index: int, shapeType: ShapeType, x: double, y: double, width: double, height: double, image: IPPImage)IPictureFrameיצירת מסגרת תמונה והכניסה אותה לאינדקס המפורט.
addTable(x: double, y: double, colWidths: double[], rowHeights: double[])ITableהוסף שולחן לקהל.
insertTable(index: int, x: double, y: double, colWidths: double[], rowHeights: double[])ITableיצירת טבלה והכניסה אותה לתוך המדד המפורט.
indexOf(shape: IShape)intהחזיר את האינדקס של הצורה שנקבעה.
toArray()IShape[]כל הצורות חוזרות כמו ארכיון.
toArray(startIndex: int, count: int)IShape[]הוא מחזיר מגוון של צורות כארכיה.
reorder(index: int, shape: IShape)העברת צורה לתוך המיקום שנקבע.
reorder(index: int, shapes: IShape[])העברת צורות מרובות לתוך המיקום שנקבע.
removeAt(index: int)הסר את הצורה על האינדקס שנקבע.
remove(shape: IShape)הסר את הצורה המפורטת מהאוסף.
clear()להסיר את כל הצורות מהאוסף.

ראה גם

 עברית