Arrows at end of a line

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Phil Moseley & Assocs
Newbie
Newbie
Posts: 16
Joined: Fri Jul 27, 2007 12:00 am

Arrows at end of a line

Post by Phil Moseley & Assocs » Mon Jun 09, 2008 8:12 pm

Is there any way I can place an arrow at the end of a line using your EndCaps features in Drawline? Can I display a symbol and rotate it like I want, in particular an arrow?

Ed Reyes

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jun 10, 2008 8:25 am

Hi Ed,

It's possible to use an arrow as EndCap like this:

Code: Select all

			Steema.TeeChart.Tools.DrawLine drawLine1 = new Steema.TeeChart.Tools.DrawLine(tChart1.Chart);
			drawLine1.Pen.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor;
However, Steema.TeeChart.Drawing.ChartPen doesn't support either CustomStartCap or CustomEndCap. I've added those properties to the wish-list to be considered for inclusion in future releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Aaron Peronto
Newbie
Newbie
Posts: 29
Joined: Wed Jun 20, 2007 12:00 am

Re: Arrows at end of a line

Post by Aaron Peronto » Wed Nov 04, 2009 8:11 pm

I know this is a bit of an old topic but I have a question about the arrow endcaps that can be placed on the lines drawn with the DrawLine tool.
When I use the code you demonstrated, the arrow does appear on the end of the line but it's really small.
Is there any way to control the size of the endcap arrow to make it appear larger on the end of the line?

Thanks

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Arrows at end of a line

Post by Sandra » Thu Nov 05, 2009 12:13 pm

Hello Aaron Peronto,

I'm sorry but actually is not possible change size and other properties EndCap of Tool DrawLine.We have added in whis-list with number [TF02013119] to be considered for inclusion in future releases.

On the other hand, If you want you could change size line, but this effects all the line, see next line of code:

Code: Select all

        drawLine1.Pen.Width = 2;

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply