FitPen

<< Click to Display Table of Contents >>

 

FitPen

FitPen(Pen, [FitStyle])

Fits a Pen into an E3Chart. The Pen parameter defines the Pen to fit into the E3Chart (Pen's index or name). The optional parameter FitStyle indicates how Pens fit at run time and, if omitted, assumes the value 0 (zero). Possible values for this parameter are 0: Fits both Axes at the same time, 1: Fits only the Vertical Axis, or 2: Fits only the Horizontal Axis. The next script contains an example of using this method.

Sub CommandButton1_Click()
  Set Chart = Screen.Item("E3Chart1")
  Chart.FitPen(1)
  Chart.FitPen("Pen1", 1)
  ' Fits Pen1 only vertically
End Sub

Was this page useful?