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?
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.