|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.ShapesEx
com.aspose.slides.ShapeExCollection
public final class ShapeExCollection
Represents a collection of a shapes.
Method Summary | |
---|---|
AudioFrameEx |
addAudioFrameCD(float x,
float y,
float width,
float height)
Adds an AudioFrameEx with CD to the end of collection. |
AudioFrameEx |
addAudioFrameEmbedded(float x,
float y,
float width,
float height,
java.io.InputStream audio_stream)
|
AudioFrameEx |
addAudioFrameLinked(float x,
float y,
float width,
float height,
java.lang.String fname)
Adds a new audio frame with linked audio file to the end of a collection. |
int |
addAutoShape(int shapeType,
float x,
float y,
float width,
float height)
Creates a new AutoShapeEx and adds it to the end of the collection. |
ChartEx |
addChart(int type,
float x,
float y,
float width,
float height)
Creates a new ChartEx and adds it to the end of the collection. |
int |
addConnector(int shapeType,
float x,
float y,
float width,
float height)
Creates a new ConnectorEx and adds it to the end of the collection. |
OleObjectFrameEx |
addOleObjectFrame(float x,
float y,
float width,
float height,
java.lang.String className,
byte[] objectData)
Adds a new OLE object to the end of a collection. |
OleObjectFrameEx |
addOleObjectFrame(float x,
float y,
float width,
float height,
java.lang.String className,
java.lang.String path)
Adds a new OLE object to the end of a collection. |
int |
addPictureFrame(int shapeType,
float x,
float y,
float width,
float height,
ImageEx image)
Creates a new PictureFrameEx and adds it to the end of the collection. |
SmartArtEx |
addSmartArt(float x,
float y,
float width,
float height,
int layoutType)
Add SmartArt object Example: [C#] PresentationEx pres = new PresentationEx(); SlideEx slide = pres.Slides[0]; SmartArtEx smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList); [Visual Basic] Private pres As New PresentationEx() Private slide As SlideEx = pres.Slides(0) Private smart As SmartArtEx = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList) |
int |
addTable(float x,
float y,
double[] columnWidths,
double[] rowHeights)
Creates a new TableEx and adds it to the end of the collection. |
VideoFrameEx |
addVideoFrame(float x,
float y,
float width,
float height,
java.lang.String fname)
Adds a new video frame to the end of a collection. |
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array. |
ShapeEx |
get_Item(int index)
Gets the element at the specified index. |
int |
getCount()
Gets the number of elements actually contained in the collection. |
java.lang.Object |
getParent()
Returns parent object for a Shapes collection. |
java.lang.Object |
getSyncRoot()
Returns a synchronization root. |
int |
indexOf(ShapeEx shape)
Returns the zero-based index of the first occurrence of a shape in the collection. |
void |
insertAudioFrameCD(int index,
float x,
float y,
float width,
float height)
Insert an AudioFrameEx with CD. |
void |
insertAudioFrameEmbedded(int index,
float x,
float y,
float width,
float height,
java.io.InputStream audio_stream)
|
void |
insertAudioFrameLinked(int index,
float x,
float y,
float width,
float height,
java.lang.String fname)
Creates a new audio frame with linked audio file and inserts it to a collection at the specified index. |
void |
insertAutoShape(int index,
int shapeType,
float x,
float y,
float width,
float height)
Creates a new AutoShapeEx and inserts it to the collection at the specified index. |
void |
insertChart(int type,
float x,
float y,
float width,
float height,
int index)
Creates a new ChartEx and inserts it to the specified position in the collection. |
void |
insertConnector(int index,
int shapeType,
float x,
float y,
float width,
float height)
Creates a new ConnectorEx and inserts it to the collection at the specified index. |
void |
insertOleObjectFrame(int index,
float x,
float y,
float width,
float height,
java.lang.String className,
byte[] objectData)
Creates a new OLE object and inserts it to a collection at the specified index. |
void |
insertOleObjectFrame(int index,
float x,
float y,
float width,
float height,
java.lang.String className,
java.lang.String path)
Creates a new OLE object and inserts it to a collection at the specified index. |
void |
insertPictureFrame(int index,
int shapeType,
float x,
float y,
float width,
float height,
ImageEx image)
Creates a new PictureFrameEx and inserts it to the collection at the specified index. |
void |
insertTable(int index,
float x,
float y,
double[] columnWidths,
double[] rowHeights)
Creates a new TableEx and inserts it to the collection at the specified index. |
void |
insertVideoFrame(int index,
float x,
float y,
float width,
float height,
java.lang.String fname)
Creates a new video frame and inserts it to a collection at the specified index. |
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). |
com.aspose.ms.System.Collections.IEnumerator<ShapeEx> |
iterator()
Returns an enumerator for the entire collection. |
void |
remove(ShapeEx shape)
Removes the first occurrence of a specific shape from the collection. |
void |
removeAt(int index)
Removes the element at the specified index of the collection. |
void |
reorder(int index,
ShapeEx... shapes)
Moves shapes from the collection to the specified position. |
void |
reorder(int index,
ShapeEx shape)
Moves a shape from the collection to the specified position. |
int |
size()
|
ShapeEx[] |
toArray()
Creates and returns an array with all shapse in it. |
ShapeEx[] |
toArray(int startIndex,
int count)
Creates and returns an array with all shapes from the specified range in it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<ShapeEx>
array
- Target array.index
- Starting index in the target array.public boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<ShapeEx>
public java.lang.Object getSyncRoot()
Returns a synchronization root.
Readonly object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<ShapeEx>
public int size()
size
in interface com.aspose.ms.System.Collections.ICollection<ShapeEx>
public int getCount()
ShapesEx
Gets the number of elements actually contained in the collection.
Read-only int
.
getCount
in class ShapesEx
public ShapeEx get_Item(int index)
ShapesEx
Gets the element at the specified index.
Read-only ShapeEx
.
get_Item
in class ShapesEx
public ChartEx addChart(int type, float x, float y, float width, float height)
ShapesEx
Creates a new ChartEx and adds it to the end of the collection.
addChart
in class ShapesEx
type
- Type of chart.x
- X coordinate of a new chart.y
- Y coordinate of a new chart.width
- Chart's width.height
- Chart's height.
public SmartArtEx addSmartArt(float x, float y, float width, float height, int layoutType)
ShapesEx
Add SmartArt object
Example:[C#] PresentationEx pres = new PresentationEx(); SlideEx slide = pres.Slides[0]; SmartArtEx smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList);[Visual Basic] Private pres As New PresentationEx() Private slide As SlideEx = pres.Slides(0) Private smart As SmartArtEx = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutTypeEx.BasicBlockList)
addSmartArt
in class ShapesEx
public void insertChart(int type, float x, float y, float width, float height, int index)
ShapesEx
Creates a new ChartEx and inserts it to the specified position in the collection.
insertChart
in class ShapesEx
type
- Type of chart.x
- X coordinate of a new chart.y
- Y coordinate of a new chart.width
- Chart's width.height
- Chart's height.index
- Chart's position in the collection.public OleObjectFrameEx addOleObjectFrame(float x, float y, float width, float height, java.lang.String className, byte[] objectData)
ShapesEx
Adds a new OLE object to the end of a collection.
addOleObjectFrame
in class ShapesEx
x
- X coordinate of a new OLE frame.y
- Y coordinate of a new OLE frame.width
- Width of a new OLE frame.height
- Height of a new OLE frame.className
- Name of an OLE class.objectData
- OLE object's data.
public OleObjectFrameEx addOleObjectFrame(float x, float y, float width, float height, java.lang.String className, java.lang.String path)
ShapesEx
Adds a new OLE object to the end of a collection.
addOleObjectFrame
in class ShapesEx
x
- X coordinate of a new OLE frame.y
- Y coordinate of a new OLE frame.width
- Width of a new OLE frame.height
- Height of a new OLE frame.className
- Name of an OLE class.path
- path to the linked file.
public void insertOleObjectFrame(int index, float x, float y, float width, float height, java.lang.String className, byte[] objectData)
ShapesEx
Creates a new OLE object and inserts it to a collection at the specified index.
insertOleObjectFrame
in class ShapesEx
index
- The zero-based index at which OLE object should be inserted.x
- X coordinate of a new OLE frame.y
- Y coordinate of a new OLE frame.width
- Width of a new OLE frame.height
- Height of a new OLE frame.className
- Name of an OLE class.objectData
- OLE object's data.public void insertOleObjectFrame(int index, float x, float y, float width, float height, java.lang.String className, java.lang.String path)
ShapesEx
Creates a new OLE object and inserts it to a collection at the specified index.
insertOleObjectFrame
in class ShapesEx
index
- The zero-based index at which OLE object should be inserted.x
- X coordinate of a new OLE frame.y
- Y coordinate of a new OLE frame.width
- Width of a new OLE frame.height
- Height of a new OLE frame.className
- Name of an OLE class.path
- Path to the linked file.public VideoFrameEx addVideoFrame(float x, float y, float width, float height, java.lang.String fname)
ShapesEx
Adds a new video frame to the end of a collection.
addVideoFrame
in class ShapesEx
x
- X coordinate of a new video frame.y
- Y coordinate of a new video frame.width
- Width of a new video frame.height
- Height of a new video frame.fname
- Video file name.
public void insertVideoFrame(int index, float x, float y, float width, float height, java.lang.String fname)
ShapesEx
Creates a new video frame and inserts it to a collection at the specified index.
insertVideoFrame
in class ShapesEx
index
- The zero-based index at which video frame should be inserted.x
- X coordinate of a new video frame.y
- Y coordinate of a new video frame.width
- Width of a new video frame.height
- Height of a new video frame.fname
- Video file name.public AudioFrameEx addAudioFrameCD(float x, float y, float width, float height)
ShapesEx
Adds an AudioFrameEx with CD to the end of collection.
addAudioFrameCD
in class ShapesEx
x
- X coordinate of a new audio frame.y
- Y coordinate of a new audio frame.width
- Width of a new audio frame.height
- Height of a new audio frame.
public void insertAudioFrameCD(int index, float x, float y, float width, float height)
ShapesEx
Insert an AudioFrameEx with CD.
insertAudioFrameCD
in class ShapesEx
index
- The zero-based index at which video frame should be inserted.x
- X coordinate of a new audio frame.y
- Y coordinate of a new audio frame.width
- Width of a new audio frame.height
- Height of a new audio frame.public AudioFrameEx addAudioFrameLinked(float x, float y, float width, float height, java.lang.String fname)
ShapesEx
Adds a new audio frame with linked audio file to the end of a collection.
addAudioFrameLinked
in class ShapesEx
x
- X coordinate of a new audio frame.y
- Y coordinate of a new audio frame.width
- Width of a new audio frame.height
- Height of a new audio frame.fname
- Audio file name.
public void insertAudioFrameLinked(int index, float x, float y, float width, float height, java.lang.String fname)
ShapesEx
Creates a new audio frame with linked audio file and inserts it to a collection at the specified index.
insertAudioFrameLinked
in class ShapesEx
index
- The zero-based index at which audio frame should be inserted.x
- X coordinate of a new audio frame.y
- Y coordinate of a new audio frame.width
- Width of a new audio frame.height
- Height of a new audio frame.fname
- Audio file name.public AudioFrameEx addAudioFrameEmbedded(float x, float y, float width, float height, java.io.InputStream audio_stream)
addAudioFrameEmbedded
in class ShapesEx
public void insertAudioFrameEmbedded(int index, float x, float y, float width, float height, java.io.InputStream audio_stream)
insertAudioFrameEmbedded
in class ShapesEx
public int indexOf(ShapeEx shape)
ShapesEx
Returns the zero-based index of the first occurrence of a shape in the collection.
indexOf
in class ShapesEx
shape
- The shape to locate in the collection.
public ShapeEx[] toArray()
ShapesEx
Creates and returns an array with all shapse in it.
toArray
in class ShapesEx
ShapeEx
public ShapeEx[] toArray(int startIndex, int count)
ShapesEx
Creates and returns an array with all shapes from the specified range in it.
toArray
in class ShapesEx
startIndex
- An index of a first shape to return.count
- A number of shapes to return.
ShapeEx
public void reorder(int index, ShapeEx shape)
ShapesEx
Moves a shape from the collection to the specified position.
reorder
in class ShapesEx
index
- Target index.shape
- Shape to move.public void reorder(int index, ShapeEx... shapes)
ShapesEx
Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list.
reorder
in class ShapesEx
index
- Target index.shapes
- Shapes to move.public int addAutoShape(int shapeType, float x, float y, float width, float height)
ShapesEx
Creates a new AutoShapeEx and adds it to the end of the collection.
addAutoShape
in class ShapesEx
shapeType
- The ShapeTypeEx
of shape.x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.width
- The width of shape's frame.height
- The height of shape's frame.
public void insertAutoShape(int index, int shapeType, float x, float y, float width, float height)
ShapesEx
Creates a new AutoShapeEx and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter.
insertAutoShape
in class ShapesEx
index
- The zero-based index at which value should be inserted.shapeType
- An ShapeTypeEx
of shape.x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.width
- The width of shape's frame.height
- The height of shape's frame.public int addConnector(int shapeType, float x, float y, float width, float height)
ShapesEx
Creates a new ConnectorEx and adds it to the end of the collection.
addConnector
in class ShapesEx
shapeType
- The ShapeTypeEx
of shape.x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.width
- The width of shape's frame.height
- The height of shape's frame.
public void insertConnector(int index, int shapeType, float x, float y, float width, float height)
ShapesEx
Creates a new ConnectorEx and inserts it to the collection at the specified index.
insertConnector
in class ShapesEx
index
- The zero-based index at which value should be inserted.shapeType
- An ShapeTypeEx
of shape.x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.width
- The width of shape's frame.height
- The height of shape's frame.public int addPictureFrame(int shapeType, float x, float y, float width, float height, ImageEx image)
ShapesEx
Creates a new PictureFrameEx and adds it to the end of the collection.
addPictureFrame
in class ShapesEx
shapeType
- The shape contained in the set ShapeTypeEx
of shapes, except all sorts of lines:
ShapeTypeEx.Line,
ShapeTypeEx.StraightConnector1,
ShapeTypeEx.BentConnector2,
ShapeTypeEx.BentConnector3,
ShapeTypeEx.BentConnector4,
ShapeTypeEx.BentConnector5,
ShapeTypeEx.CurvedConnector2,
ShapeTypeEx.CurvedConnector3,
ShapeTypeEx.CurvedConnector4,
ShapeTypeEx.CurvedConnector5.
x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.width
- The width of shape's frame.height
- The height of shape's frame.image
- The image of picture frame.
public void insertPictureFrame(int index, int shapeType, float x, float y, float width, float height, ImageEx image)
ShapesEx
Creates a new PictureFrameEx and inserts it to the collection at the specified index.
insertPictureFrame
in class ShapesEx
index
- The zero-based index at which value should be inserted.shapeType
- The shape contained in the set ShapeTypeEx
of shapes, except all sorts of lines:
ShapeTypeEx.Line,
ShapeTypeEx.StraightConnector1,
ShapeTypeEx.BentConnector2,
ShapeTypeEx.BentConnector3,
ShapeTypeEx.BentConnector4,
ShapeTypeEx.BentConnector5,
ShapeTypeEx.CurvedConnector2,
ShapeTypeEx.CurvedConnector3,
ShapeTypeEx.CurvedConnector4,
ShapeTypeEx.CurvedConnector5.
x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.width
- The width of shape's frame.height
- The height of shape's frame.image
- The image of picture frame.public int addTable(float x, float y, double[] columnWidths, double[] rowHeights)
ShapesEx
Creates a new TableEx and adds it to the end of the collection.
addTable
in class ShapesEx
x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.columnWidths
- Array of doubles which represents widths of columns in the table.rowHeights
- Array of doubles which represents heights of rows in the table.
public void insertTable(int index, float x, float y, double[] columnWidths, double[] rowHeights)
ShapesEx
Creates a new TableEx and inserts it to the collection at the specified index.
insertTable
in class ShapesEx
index
- The zero-based index at which value should be inserted.x
- The X-coordinate for a left side of shape's frame.y
- The Y-coordinate for a top side of shape's frame.columnWidths
- Array of doubles which represents widths of columns in the table.rowHeights
- Array of doubles which represents heights of rows in the table.public void removeAt(int index)
ShapesEx
Removes the element at the specified index of the collection.
removeAt
in class ShapesEx
index
- The zero-based index of the element to remove.public void remove(ShapeEx shape)
ShapesEx
Removes the first occurrence of a specific shape from the collection.
remove
in class ShapesEx
shape
- The shape to remove from the collection.public com.aspose.ms.System.Collections.IEnumerator<ShapeEx> iterator()
ShapesEx
Returns an enumerator for the entire collection.
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<ShapeEx>
iterator
in interface java.lang.Iterable<ShapeEx>
iterator
in class ShapesEx
IEnumerator
for the entire collection.public java.lang.Object getParent()
ShapesEx
Returns parent object for a Shapes collection.
Read-only object
. See also IPresentationComponent
.
getParent
in class ShapesEx
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |