Class PdfXfaVisibility
Represents the visibility of the XFA field
Inheritance
System.Object
PdfXfaVisibility
Namespace: Syncfusion.Pdf.Xfa
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class PdfXfaVisibility : Enum
Examples
//Create a new XFA document
PdfXfaDocument document = new PdfXfaDocument();
//Create a new XFA form
PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595);
//Create a new XFA Field
PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30));
//Set text.
field.Text = "Text Box Field.";
//Set fields visibility.
field.Visibility = PdfXfaVisibility.Visible;
//Add the field to the form
form.Fields.Add(field);
document.XfaForm = form;
//Save the document
document.Save("output.pdf", PdfXfaType.Dynamic);
//Close the document
document.Close();
'Create a new XFA document
Dim document As New PdfXfaDocument()
'Create a new XFA form
Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595)
'Create a new XFA Field
Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30))
'Set text.
field.Text = "Text Box Field."
'Set fields visibility.
field.Visibility = PdfXfaVisibility.Visible
'Add the field to the form
form.Fields.Add(field)
document.XfaForm = form
'Save the document
document.Save("output.pdf", PdfXfaType.Dynamic)
'Close the document
document.Close()
Fields
Hidden
Participate in interaction but not layout or rendering
Declaration
public const PdfXfaVisibility Hidden
Field Value
Type |
---|
PdfXfaVisibility |
Inactive
Do not participate in interaction, layout, or rendering
Declaration
public const PdfXfaVisibility Inactive
Field Value
Type |
---|
PdfXfaVisibility |
Invisible
Participate in interaction and layout but not rendering.
Declaration
public const PdfXfaVisibility Invisible
Field Value
Type |
---|
PdfXfaVisibility |
Visible
Participate in interaction, layout, and rendering.
Declaration
public const PdfXfaVisibility Visible
Field Value
Type |
---|
PdfXfaVisibility |