in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Vertical Line

Last post 01-17-2008 11:39 AM by pearsonj. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-16-2008 10:14 AM

    Vertical Line

    Hi,
    Is there an easy way to put a vertical line onto a plot?  I am looking for something similar to ChartFX's CustomGridLine.

    thanks, Jake

  • 01-16-2008 2:09 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: Vertical Line

    Yes, the easiest way to draw any arbitrary line is in the Paint event as such:

    Dim g As Graphics = e.Graphics
    g.DrawLine(Pens.Blue, 2, 45, 13, 112)

    Greg

    Filed under: ,
  • 01-17-2008 11:39 AM In reply to

    Re: Vertical Line

    Thanks for the quick reply.  I came up with an alternative solution.  I added an extra series to my chart.  Then I added 2 points to it to show a vertical line.  This way I don't have convert chart coordinates into control coordinates.

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.