Add label on circle, polyline

Product:.net SDK, c# Winform

Product Version:11.3

Please give a brief summary of your issue:
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
how to create label for circle, polyline annots?
on polyline SetContent() is there but the value is not showing even after setting setshowcaption true;

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


When working with annotations like circles and polylines in the Apryse .NET SDK, adding labels involves setting the caption correctly. It seems you’re encountering issues with the SetContent() and SetShowCaption() methods not displaying as expected.

Some things you can try:

  • Ensure that you are setting the content for the annotation using SetContent() method properly. This method is responsible for defining the text that should appear as a caption.

  • Make sure you are calling SetShowCaption(true) on the annotation object to ensure that the caption is visible.

  • Verify that the annotation is being added to the correct page and that it is being refreshed or updated after setting the caption.

  • Check if the font and color properties are set correctly for the caption to be visible against the background.

  • After setting these properties, ensure that you save or refresh the document to apply the changes.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Hello,

Polyline and Circle annotations do not have text or labels by default. Instead, you can add this information to the annotation by modifying the appearance. There are some previous to help you get started with the code that you need to write to add the custom appearance. Please see them below:

Please let me know if you have any further questions.