Working with Word for WinForms > Basic Level Working > Adding Curves |
You can add curves to your word document using Word component. DrawArc method allows you to add a curve to your document. The implementation of DrawArc method is given in the code below:
rc = New RectangleF(120, 100, 150, 80)
C1Word.DrawArc(Pens.Red, rc, 0, 90)
rc = new RectangleF(120, 100, 150, 80);
C1Word.DrawArc(Pens.Red, rc, 0, 90);
This above code adds a red colors curve to a word document.
The document will look similar to the image below: