Sticky Note CreatedBy- CreatedDate Display

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

Moderator: Alex

Post Reply
nickstarlight
Posts: 2
Joined: Thu Sep 27, 2018 3:56 pm

Sticky Note CreatedBy- CreatedDate Display

Post by nickstarlight » Thu Sep 27, 2018 4:00 pm

I have looked through the Sticky Note Annotations, and see the CreatedBy and Created Date properties.

I have been attempting to display those properties preferably above, or even below the note itself.

Is there currently a way of accomplishing this, and how?

Yuri
Posts: 59
Joined: Wed Jul 23, 2008 2:47 pm

Re: Sticky Note CreatedBy- CreatedDate Display

Post by Yuri » Thu Sep 27, 2018 5:40 pm

Hi,

Set the text of StickyNote when you create it:

Code: Select all

 StickyNoteAnnotationData stickyNote = new StickyNoteAnnotationData();
 stickyNote.FillBrush = new AnnotationSolidBrush(Color.Yellow);
 stickyNote.CreatedBy = Environment.UserName;
 stickyNote.CollapsedTextData.Text = string.Format("CreatedBy '{0}', {1}", stickyNote.CreatedBy, stickyNote.CreationTime);
then add it into the image annotation collection or begin to build it.

Regards,
Yuri

nickstarlight
Posts: 2
Joined: Thu Sep 27, 2018 3:56 pm

Re: Sticky Note CreatedBy- CreatedDate Display

Post by nickstarlight » Thu Sep 27, 2018 5:53 pm

Thank you, Yuri. Though my concern with setting the CollapsedTextData.Text with the created by and time information would be that the user would be able to edit that information.

Logically in the code, when enter the ExpandedTextData from the StickyNote it allows you to edit the text from the CollapsedTextData.

Yuri
Posts: 59
Joined: Wed Jul 23, 2008 2:47 pm

Re: Sticky Note CreatedBy- CreatedDate Display

Post by Yuri » Fri Sep 28, 2018 10:33 am

Hi again,


Please describe in precise details the behavior and logic you want to get from StickyNoteAnnotation. And so we will be able to provide you a quick solution.


Regards,
Yuri

Post Reply