Page 1 of 1

Arrows at end of a line

Posted: Mon Jun 09, 2008 8:12 pm
by 14046227
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

Posted: Tue Jun 10, 2008 8:25 am
by narcis
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.

Re: Arrows at end of a line

Posted: Wed Nov 04, 2009 8:11 pm
by 14045609
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

Re: Arrows at end of a line

Posted: Thu Nov 05, 2009 12:13 pm
by 10050769
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,