Shapes

Is there a way in Aspose.Word to make use of the shape called:

Rectangle - Single Corner Snipped.

I’ve checked Aspose on the following code: Drawing.ShapeType but its not giving me this shape option.

I need to use this shape in my documents.

I’ve attached an example of this shape in the zip file.

Thanks

Shape.zip (81.8 KB)

@RickyTailor,

Thanks for your inquiry. Please use ShapeType.FoldedCorner as shown below to get the desired output. Hope this helps you.

Document doc = new Document();
Shape shape = new Shape(doc, ShapeType.FoldedCorner);
shape.Width = 100;
shape.Height = 100;
shape.Rotation = 270;

doc.FirstSection.Body.FirstParagraph.AppendChild(shape);

doc.Save(MyDir + "output.docx");

Thanks Tahir.
Cheers