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