VintaSoft Annotation .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions
Dim ann As New StampAnnotation()
ann.Text = "Rubber stamp"
ann.ZOrder = _zOrder
ann.Size = New SizeF(450, 800)
_zOrder += 1
Try
annotationViewer1.BuildAnnotation(ann)
Catch ex As InvalidOperationException
MessageBox.Show(ex.Message, "Building annotation")
End Try
The stamp has only a size of (1,1) on release the mousebutton.Dim ann As New StampAnnotation() ann.Text = "Rubber stamp" ann.ZOrder = _zOrder ann.Size = New SizeF(450, 800) _zOrder += 1 Try annotationViewer1.Annotations(0).Add(ann) Catch ex As InvalidOperationException MessageBox.Show(ex.Message, "Building annotation") End TryWhat is your goal? Do you need to specify minimal size of annotation before building? Could you explain me, step by step, how do you imagine this?
annotationViewer1.Annotations(0).Add(ann)only on the first page of my document can take the annotation.
Dim pageIndex As Integer = 0 annotationViewer1.Annotations(pageIndex).Add(ann)and here is a code snippet for C#:
int pageIndex = 0; annotationViewer1.Annotations[pageIndex].Add(ann);Best regards, Alexander