'We assume that the GdViewer1 control has been properly integrated.
Sub buttonAddTextNote_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.AddTextAnnotationInteractive("GdPicture Annotation Text", Color.FromArgb(255, 138, 43, 226), "Arial", FontStyle.Regular, 14, True,
Color.FromArgb(255, 255, 255, 255), Color.FromArgb(255, 245, 245, 220), 0.75F, 0)
If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddTextAnnotationInteractive")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddTextNote_Click(object sender, EventArgs e)
{
GdViewer1.AddTextAnnotationInteractive("GdPicture Annotation Text", Color.FromArgb(255, 138, 43, 226), "Arial", FontStyle.Regular, 14,
true, Color.FromArgb(255, 255, 255, 255), Color.FromArgb(255, 245, 245, 220), 0.75f, 0);
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddTextAnnotationInteractive");
}