|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.ShapesEx
@Deprecated public class ShapesEx
Represents a collection of a shapes.
Method Summary | |
---|---|
AudioFrameEx |
addAudioFrameCD(float x,
float y,
float width,
float height)
Deprecated. 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)
Deprecated. |
AudioFrameEx |
addAudioFrameLinked(float x,
float y,
float width,
float height,
java.lang.String fname)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. Adds a new video frame to the end of a collection. |
ShapeEx |
get_Item(int index)
Deprecated. Gets the element at the specified index. |
int |
getCount()
Deprecated. Gets the number of elements actually contained in the collection. |
java.lang.Object |
getParent()
Deprecated. Returns parent object for a Shapes collection. |
int |
indexOf(ShapeEx shape)
Deprecated. 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)
Deprecated. Insert an AudioFrameEx with CD. |
void |
insertAudioFrameEmbedded(int index,
float x,
float y,
float width,
float height,
java.io.InputStream audio_stream)
Deprecated. |
void |
insertAudioFrameLinked(int index,
float x,
float y,
float width,
float height,
java.lang.String fname)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. 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)
Deprecated. Creates a new video frame and inserts it to a collection at the specified index. |
com.aspose.ms.System.Collections.IEnumerator<ShapeEx> |
iterator()
Deprecated. Returns an enumerator for the entire collection. |
void |
remove(ShapeEx shape)
Deprecated. Removes the first occurrence of a specific shape from the collection. |
void |
removeAt(int index)
Deprecated. Removes the element at the specified index of the collection. |
void |
reorder(int index,
ShapeEx... shapes)
Deprecated. Moves shapes from the collection to the specified position. |
void |
reorder(int index,
ShapeEx shape)
Deprecated. Moves a shape from the collection to the specified position. |
ShapeEx[] |
toArray()
Deprecated. Creates and returns an array with all shapse in it. |
ShapeEx[] |
toArray(int startIndex,
int count)
Deprecated. 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 int getCount()
Gets the number of elements actually contained in the collection.
Read-only int
.
public ShapeEx get_Item(int index)
Gets the element at the specified index.
Read-only ShapeEx
.
public 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.
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)
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)
x
- y
- width
- height
- layoutType
-
public 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.
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)
Adds a new OLE object to the end of a collection.
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)
Adds a new OLE object to the end of a collection.
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)
Creates a new OLE object and inserts it to a collection at the specified index.
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)
Creates a new OLE object and inserts it to a collection at the specified index.
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)
Adds a new video frame to the end of a collection.
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)
Creates a new video frame and inserts it to a collection at the specified index.
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)
Adds an AudioFrameEx with CD to the end of collection.
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)
Insert an AudioFrameEx with CD.
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)
Adds a new audio frame with linked audio file to the end of a collection.
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)
Creates a new audio frame with linked audio file and inserts it to a collection at the specified index.
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)
public void insertAudioFrameEmbedded(int index, float x, float y, float width, float height, java.io.InputStream audio_stream)
public int indexOf(ShapeEx shape)
Returns the zero-based index of the first occurrence of a shape in the collection.
shape
- The shape to locate in the collection.
public ShapeEx[] toArray()
Creates and returns an array with all shapse in it.
ShapeEx
public ShapeEx[] toArray(int startIndex, int count)
Creates and returns an array with all shapes from the specified range in it.
startIndex
- An index of a first shape to return.count
- A number of shapes to return.
ShapeEx
public void reorder(int index, ShapeEx shape)
Moves a shape from the collection to the specified position.
index
- Target index.shape
- Shape to move.public void reorder(int index, ShapeEx... shapes)
Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list.
index
- Target index.shapes
- Shapes to move.public 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.
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)
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.
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)
Creates a new ConnectorEx and adds it to the end of the collection.
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)
Creates a new ConnectorEx and inserts it to the collection at the specified index.
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)
Creates a new PictureFrameEx and adds it to the end of the collection.
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)
Creates a new PictureFrameEx and inserts it to the collection at the specified index.
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)
Creates a new TableEx and adds it to the end of the collection.
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)
Creates a new TableEx and inserts it to the collection at the specified index.
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)
Removes the element at the specified index of the collection.
index
- The zero-based index of the element to remove.public void remove(ShapeEx shape)
Removes the first occurrence of a specific shape from the collection.
shape
- The shape to remove from the collection.public com.aspose.ms.System.Collections.IEnumerator<ShapeEx> iterator()
Returns an enumerator for the entire collection.
IEnumerator
for the entire collection.public java.lang.Object getParent()
Returns parent object for a Shapes collection.
Read-only object
. See also IPresentationComponent
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |