v25.5.1
What's Changed
- Support for creating word shapes with fill options and separate word elements to element wise classes by @sabir-aspose in #23
Full Changelog: v25.5.0...v25.5.1
Creating a shape with fill options
var doc = new Openize.Words.Document();
var body = new Openize.Words.Body(doc);
var shapeColors = new Openize.Words.IElements.ShapeFillColors();
shapeColors.Color1 = Openize.Words.IElements.Colors.Red;
shapeColors.Color2 = Openize.Words.IElements.Colors.Purple;
var shape = new Openize.Words.IElements.Shape(100, 100, 400, 400,
Openize.Words.IElements.ShapeType.Hexagone,
Openize.Words.IElements.ShapeFillType.Pattern,
shapeColors);
body.AppendChild(shape);
doc.Save("HexagoneShape.docx");
Creating a group shape having two connecting shapes with fill options
var doc = new Openize.Words.Document();
var body = new Openize.Words.Body(doc);
var diamond = new Openize.Words.IElements.Shape(0, 0, 200, 200,
Openize.Words.IElements.ShapeType.Diamond,
Openize.Words.IElements.ShapeFillType.Gradient,
new Openize.Words.IElements.ShapeFillColors());
var oval = new Openize.Words.IElements.Shape(300, 0, 200, 200,
Openize.Words.IElements.ShapeType.Ellipse,
Openize.Words.IElements.ShapeFillType.Pattern,
new Openize.Words.IElements.ShapeFillColors());
var groupShape = new Openize.Words.IElements.GroupShape(diamond, oval);
body.AppendChild(groupShape);
doc.Save("GroupShape.docx");