XY Chart NET 3 Control Reference
DrawProfile Event
This event is generated before a profile is drawn on the plot.   Use this event to underlay a graphic beneath the profile.  The Index parameter indicates the profile's index.
Syntax
[Visual Basic]
Event DrawProfile(Index As Integer, gPlotCanvas As System.Drawing.Graphics)
[C#]
DrawProfile(int Index, System.Drawing.Graphics gPlotCanvas)
[C++]
DrawProfile(System::Int32 Index, System::Drawing::Graphics gPlotCanvas)
       
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Private Sub XYChartNETCtl1__DrawProfile(ByVal Index As Integer, ByVal gPlotCanvas As System.Drawing.Graphics) Handles XyChartNETCtl1.DrawProfile
   Dim myFont As New Font("Arial", 10, FontStyle.Bold)
  
   gPlotCanvas.DrawString("Profile " & CStr(Index), myFont, Brushes.Blue, XyChartNETCtl1.Width - 100, XyChartNETCtl1.Height - 100)
End Sub
                       
                       
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.