Add_TextFile example
Example for Add_TextFile 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 sTextFile As String
Dim x As Single
Dim y As Single
Dim z As Single
Dim sScale As Single
Dim TStyle As Short
Dim sAngle 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
' Name of text file
sTextFile = My.Application.Info.DirectoryPath & "\..\AvaxLineStyle.txt"
' Start points of the text
x = 4 : y = 10 : z = 0
'Scale
sScale = 5
'Text Rotation
sAngle = 45
AvaxHandle = cAvax1.Add_TextFile(sTextFile, x, y, z, sScale, TStyle, sAngle, vItemProperties, iClr, iWidth, iStyle, iLayer)
CAvax1.Command = Avax.AvaxCommand.AutoLimits_c
End Sub