FieldBorderStyle Property
- Namespace
TXTextControl.DocumentServer. Web
- Package
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesWeb. DocumentViewer. dll
Description
Gets or sets whether and if so how the field borders are rendered, when EditMode is set to Edit.
Syntax
public FieldBorderStyle FieldBorderStyle { get; set; }Public Property FieldBorderStyle As FieldBorderStyleMembers
| Value | Description |
|---|---|
| None | Fields are rendered without borders. |
| Dashed | Fields are rendered with dashed borders. |
| Dotted | Fields are rendered with dotted borders. |
| Solid | Fields are rendered with solid borders. This is the default. |
Examples
DocumentServer.Web.DocumentViewer.FieldBorderStyle belongs to the legacy Web Forms viewer. In the current ASP.NET Core viewer, configure the server-rendered component through DocumentViewerSettings.DocumentPath; interactive page state and styling are handled by the viewer client.
documentViewerSettings.DocumentPath = @"App_Data\document.docx";
if (!string.IsNullOrWhiteSpace(documentViewerSettings.DocumentPath))
{
Console.WriteLine($"Document Path: {documentViewerSettings.DocumentPath}");
}documentViewerSettings.DocumentPath = "App_Data\document.docx"
If Not String.IsNullOrWhiteSpace(documentViewerSettings.DocumentPath) Then
Console.WriteLine($"Document Path: {documentViewerSettings.DocumentPath}")
End If