'We assume that the GdViewer1 control has been properly integrated.
Sub buttonAddRuler_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.AddRulerAnnotInteractive(Color.Red, 0.03F, 0.75F, GdPicture14.Annotations.Annotation.UnitMode.Pixel)
If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddRulerAnnotInteractive")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddRuler_Click(object sender, EventArgs e)
{
GdViewer1.AddRulerAnnotInteractive(Color.Red, 0.03f, 0.75f, GdPicture14.Annotations.Annotation.UnitMode.Pixel);
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "AddRulerAnnotInteractive");
}