Skip to content

DOCINFRA-2341_merged_using_automation #3247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions MAUI/PDF-Viewer/Free-Text.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,22 @@ void CustomizeDefaultFreeTextSettings()
{% endhighlight %}
{% endtabs %}

### How to create a border less free text annotation?

The PDF Viewer allows you to customize annotation properties using the [AnnotationSettings](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.AnnotationSettings.html) property. By default, free text annotations include a visible border. To create a border less free text annotation, set the [BorderWidth](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.FreeTextAnnotationSettings.html#Syncfusion_Maui_PdfViewer_FreeTextAnnotationSettings_BorderWidth) property to 0 using the [FreeTextAnnotationSettings](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.FreeTextAnnotationSettings.html#properties).

The following example demonstrates how to create a border less free text annotation:

{% tabs %}
{% highlight C# %}
// Access the default free text annotation settings
FreeTextAnnotationSettings freeTextSettings = pdfViewer.AnnotationSettings.FreeText;

// Set the border width to zero to remove the border
freeTextSettings.BorderWidth = 0;
{% endhighlight %}
{% endtabs %}

## Edit the selected free text annotation

### Edit the text with UI interaction
Expand Down