public class Shapes
extends com.aspose.ms.System.Collections.CollectionBase
Represents a collection of Shape
objects.
[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Graph graph1 = new Graph(sec1,100,400); sec1.getParagraphs().add(graph1); float[] posArr = new float[]{0,0,200,80,300,40,350,90}; Curve curve1 = new Curve(graph1,posArr); graph1.getShapes().add(curve1); pdf1.save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Curve Position="0 0 200 80 300 40 350 90" /> </Graph> </Section> </Pdf>
Constructor and Description |
---|
Shapes()
Initializes a new instance of the
Shapes class. |
Modifier and Type | Method and Description |
---|---|
Shape |
get_Item(int index)
Gets or sets a
Shape object from the collection according to Shape index. |
Shape |
get_Item(String shapeID)
Gets or sets a
Shape object from the collection according to Shape ID. |
void |
set_Item(int index,
Shape value) |
void |
set_Item(String shapeID,
Shape value) |
public Shape get_Item(int index)
Gets or sets a Shape
object from the collection according to Shape index.
get_Item
in interface com.aspose.ms.System.Collections.IList
get_Item
in class com.aspose.ms.System.Collections.CollectionBase
public void set_Item(int index, Shape value)
public Shape get_Item(String shapeID)
Gets or sets a Shape
object from the collection according to Shape ID.
Copyright © 2014 Aspose. All Rights Reserved.