|
java.lang.Object
com.aspose.words.ShapeType
public class ShapeType - extends java.lang.Object
Utility class containing constants.
Specifies the type of shape in a Microsoft Word document.
Example: Shows how to create and add an image to a document without using document builder.
Document doc = new Document();
Shape shape = new Shape(doc, ShapeType.IMAGE);
shape.getImageData().setImage(getMyDir() + "Hammer.wmf");
shape.setWidth(100);
shape.setHeight(100);
doc.getFirstSection().getBody().getFirstParagraph().appendChild(shape);
doc.save(getMyDir() + "Image.CreateImageDirectly Out.doc"); - See Also:
- ShapeBase.ShapeType
|