Hi,
How can a user change the text of a TextAnnotation?
Kind Regards
Ibbe
Change Text @ TextAnnotation
Re: Change Text @ TextAnnotation
Hi,
You can change the text through the Text property of the text annotation.
Here an example which changes the text of the selected annotation, if it is a TextAnnotation:
Let me know if you need further information.
Kind regards,
Loïc
You can change the text through the Text property of the text annotation.
Here an example which changes the text of the selected annotation, if it is a TextAnnotation:
Code: Select all
Dim annot_idx As Integer = GdViewer1.GetSelectedAnnotationIdx()
If annot_idx <> -1 Then
Dim annot As GdPicture.Annotation = GdViewer1.GetAnnotationFromIdx(annot_idx)
If annot.GetAnnotationType = GdPicture.Annotation.GdPictureAnnotationType.AnnotationTypeText Then
Dim text_annot As AnnotationText = CType(annot, AnnotationText)
text_annot.Text = "Here the new text"
End If
End If
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 0 guests