Save FreeTextAnnotationData

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
GHWels
Posts: 32
Joined: Thu Apr 09, 2015 7:57 am

Save FreeTextAnnotationData

Post by GHWels » Sat Jul 15, 2017 4:22 pm

Hello!

I want to save FreeTextAnnotationData in a file (xml,txt)
and rebuild them later on an another file.

The problem is the size of the outlinetextfield (width, height),I can not control it, and the text comes mirrored.

Code: Select all

Dim data As FreeTextAnnotationData = New FreeTextAnnotationData()
data.Name = Now.ToString("yyyyMMddHHmmssfff")

data.LeaderPoints.Add(New PointF(-643, 241))
data.Location = New PointF(823, 748)
data.Size = New SizeF(271, -258)

data.CanMirror = False
data.CanMove = True
data.CanResize = True
data.CanRotate = False
data.LeaderOutline.Color = System.Drawing.Color.Black
data.LeaderOutline.Width = 2
data.Symmetry = False
data.Outline.Color = System.Drawing.Color.Black
data.Outline.Width = 2
data.FillBrush = New AnnotationSolidBrush(Nothing)
data.CreatedBy = "GH"
data.CreationTime = Now
data.Text = "1234Text"
data.TextAlign = ContentAlignment.MiddleCenter
data.TextPadding = New Vintasoft.Imaging.PaddingF(2, 2, 2, 2)

Viewer.AnnotationDataCollection.Add(data)
is the a sample?

Thank you for your help.
Gunther
Best regards, GHWels

Alex
Site Admin
Posts: 1431
Joined: Thu Jul 10, 2008 2:21 pm

Re: Save FreeTextAnnotationData

Post by Alex » Mon Jul 17, 2017 3:09 pm

Hello Gunther,

Could you send us (to support@vintasoft.com) a small working project, which demonstrates your problem?

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest