Add_Line example
Example for Add_Line method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
cAvax1.StartAvax()
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim x1 As Single
Dim y1 As Single
Dim z1 As Single
Dim x2 As Single
Dim y2 As Single
Dim z2 As Single
Dim vItemProperties As Object
Dim iClr As Short
Dim iWidth As Short
Dim iStyle As Short
Dim iLayer As Short
Dim AvaxHandle As Integer
' Define the endpoints of the Line
x1 = 2 : y1 = 2 : z1 = 0
x2 = 15 : y2 = 10 : z2 = 0
' Define the drawing color
iClr = 1
' Define the drawing the line type
iStyle = 3
AvaxHandle = cAvax1.Add_Line(x1, y1, z1, x2, y2, z2, vItemProperties, iClr, iWidth, iStyle, iLayer)
End Sub