Add_ShapeEllipse example
Example for Add_ShapeEllipse 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 xc As Single
Dim yc As Single
Dim aR As Single
Dim bR As Single
Dim vItemProperties As Object
Dim Fill_iType As Byte
Dim Fill_lHatchIndex As Integer
Dim Fill_iInForeColor As Short
Dim Fill_iInBackColor As Short
Dim Fill_sPattern As String
Dim Fill_zOrder As Integer
Dim Fill_lFlags As Integer
Dim nVert As Integer
Dim iClr As Short
Dim iWidth As Short
Dim iStyle As Short
Dim iLayer As Short
Dim AvaxHandle As Integer
' Define the coordinates of the center
xc = 8 : yc = 5
' Define the radius of the ellipse
aR = 8 : bR = 6
iClr = 4 'Color CYAN is selected
iWidth = 2
nVert = 36
Fill_iInForeColor = 1 'Color RED is selected
AvaxHandle = cAvax1.Add_ShapeEllipse(xc, yc, aR, bR, vItemProperties, Fill_iType, Fill_lHatchIndex, Fill_iInForeColor, Fill_iInBackColor, Fill_sPattern, Fill_zOrder, Fill_lFlags, nVert, iClr, iWidth, iStyle, iLayer)
End Sub