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?
Sticky Note CreatedBy- CreatedDate Display
Moderator: Alex
-
- Posts: 2
- Joined: Thu Sep 27, 2018 3:56 pm
-
- Posts: 64
- Joined: Wed Jul 23, 2008 2:47 pm
Re: Sticky Note CreatedBy- CreatedDate Display
Hi,
Set the text of StickyNote when you create it:
then add it into the image annotation collection or begin to build it.
Regards,
Yuri
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);
Regards,
Yuri
-
- Posts: 2
- Joined: Thu Sep 27, 2018 3:56 pm
Re: Sticky Note CreatedBy- CreatedDate Display
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.
Logically in the code, when enter the ExpandedTextData from the StickyNote it allows you to edit the text from the CollapsedTextData.
-
- Posts: 64
- Joined: Wed Jul 23, 2008 2:47 pm
Re: Sticky Note CreatedBy- CreatedDate Display
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
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