'We assume that the GdViewer1 control has been properly integrated.
Sub buttonAddLine_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.AddLineAnnotInteractive(Color.FromArgb(255, 138, 43, 226), 0.15F, System.Windows.Media.PenLineCap.Flat, System.Windows.Media.PenLineCap.Triangle, 0.75F)
If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddLineAnnotInteractive")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddLine_Click(object sender, EventArgs e)
{
GdViewer1.AddLineAnnotInteractive(Color.FromArgb(255, 138, 43, 226), 0.15f, System.Windows.Media.PenLineCap.Flat, System.Windows.Media.PenLineCap.Triangle, 0.75f);
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddLineAnnotInteractive");
}