Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Fri Mar 20, 2020 3:43 pm

I have to draw a line on slide with starting point and end point.
i m using "Spire.Presentation.IAutoShape shapeLine = presentation2.Slides[4].Shapes.AppendShape(Spire.Presentation.ShapeType.Line, new RectangleF(10, 20, 10, 20));" to draw a line.

example: float startPoint =(x1,y1) ;
float endpoint=(x2,y2);
how to dram line using theses points.is there any why to draw line like on power point.

AnuH365068
 
Posts: 13
Joined: Wed Mar 04, 2020 10:45 am

Mon Mar 23, 2020 5:45 am

Hello,

Thanks for your inquiry and sorry for the late reply as weekend.
Sorry at present our Spire.Presentation doesn't support drawing lines with two points. However, we are considering adding it as a new feature into our further upgrade list with the ticket SPIREPPT-1106. If it can be achieved in the future, we will inform you.
Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Mon Apr 13, 2020 10:29 am

Hello,

Hope you are doing well.
Glad to inform that we just released Spire.Presentation Pack Hotfix Version:5.4.2, which supports drawing line segments by the position of two points. Welcome to download from the following link.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Presentation/5.4.2

Example:
Code: Select all
ppt.Slides[0].Shapes.AppendShape(ShapeType.Line, new PointF(10, 10), new PointF(20, 30));


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Fri Apr 17, 2020 8:58 am

Hello,

Greetings from E-iceblue!
Have you tested the new feature? Does it meet your needs?
Thanks in advance for your feedback.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Presentation