For a better understand I will give an example with rectangle:
Document document = new Document(); MigraDoc.DocumentObjectModel.Section section = document.AddSection(); TextFrame textFrame = new TextFrame(); textFrame.Width = new Unit(200); textFrame.Height = new Unit(200); textFrame.RelativeHorizontal = RelativeHorizontal.Page; textFrame.RelativeVertical = RelativeVertical.Page; textFrame.WrapFormat.DistanceLeft = new Unit(10, UnitType.Millimeter); textFrame.WrapFormat.DistanceTop = new Unit(10, UnitType.Millimeter); textFrame.LineFormat.Width = new Unit(2); textFrame.LineFormat.Color = MigraDoc.DocumentObjectModel.Colors.Black; textFrame.FillFormat.Color = MigraDoc.DocumentObjectModel.Colors.Green; section.Add(textFrame);
It is possible to create ellipse in this manner ?
|