'We assume that the GdViewer1 control has been properly integrated.
'Please refer to the implementation of the OnCustomAnnotationPaint() event for below used custom annotation models.
Sub buttonAddCustomAnnot_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim triangleModel As Integer = 1
Dim crossModel As Integer = 2
'Add a triangle annotation.
GdViewer1.AddCustomAnnotInteractive(triangleModel)
'Add a cross annotation.
'GdViewer1.AddCustomAnnotInteractive(crossModel)
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Please refer to the implementation of the OnCustomAnnotationPaint() event for below used custom annotation models.
void buttonAddCustomAnnot_Click(object sender, EventArgs e)
{
int triangleModel = 1, crossModel = 2;
//Add a triangle annotation.
GdViewer1.AddCustomAnnotInteractive(triangleModel);
//Add a cross annotation.
//GdViewer1.AddCustomAnnotInteractive(crossModel);
}