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

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Sticky Note CreatedBy- CreatedDate Display



Sticky Note CreatedBy- CreatedDate Display

Post by nickstarlight »

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?


Re: Sticky Note CreatedBy- CreatedDate Display

Post by Yuri »

Hi,

Set the text of StickyNote when you create it:
 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


Re: Sticky Note CreatedBy- CreatedDate Display

Post by nickstarlight »

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.


Re: Sticky Note CreatedBy- CreatedDate Display

Post by Yuri »

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


Page 1 from 1: 1