Free Support Forum - aspose.com

Aspose.PDF textboxfield border style question

In C# I need to find a way to control the top, left, right, and bottom border style of a textboxfield.


This code I am using the create the border, but don’t see any option to control the sides and top/bottom independently:


TextBoxField currentTextbox = formField as TextBoxField;

currentTextbox.Border = new Border(currentTextbox);
currentTextbox.Border.Width = 1;
currentTextbox.Border.Style = BorderStyle.Solid;
currentTextbox.Characteristics.Border = System.Drawing.Color.Aqua;

This will create a 1 width aqua border. Any idea how to make the border only show up on the top and bottom?

Hi,


Thanks for contacting support.

I am afraid currently Aspose.Pdf for .NET does not support the feature to individually set the border style for form fields. However for the sake of correction, I have logged this requirement as PDFNEWNET-39317. We will further look into the details of this requirement and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan