menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfXfaCorner - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfXfaCorner

    Represents the XFA corner

    Inheritance
    System.Object
    PdfXfaCorner
    Namespace: Syncfusion.Pdf.Xfa
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class PdfXfaCorner : Object
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Constructors

    PdfXfaCorner()

    Initialize a new instance of the PdfXfaCorner class.

    Declaration
    public PdfXfaCorner()
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Properties

    BorderColor

    Gets or sets the border color

    Declaration
    public PdfColor BorderColor { get; set; }
    Property Value
    Type
    PdfColor
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    BorderStyle

    Gets or sets the border style

    Declaration
    public PdfXfaBorderStyle BorderStyle { get; set; }
    Property Value
    Type
    PdfXfaBorderStyle
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    IsInverted

    Specifies whether the corner appears convex or is inverted and appears concave.

    Declaration
    public bool IsInverted { get; set; }
    Property Value
    Type
    System.Boolean
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Radius

    Gets or sets the radius of the corner

    Declaration
    public float Radius { get; set; }
    Property Value
    Type
    System.Single
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Shape

    Gets or sets the shape of the corner

    Declaration
    public PdfXfaCornerShape Shape { get; set; }
    Property Value
    Type
    PdfXfaCornerShape
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Thickness

    Gets or sets the thickness

    Declaration
    public float Thickness { get; set; }
    Property Value
    Type
    System.Single
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Visibility

    Gets or sets the visibility

    Declaration
    public PdfXfaVisibility Visibility { get; set; }
    Property Value
    Type
    PdfXfaVisibility
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    parentForm.Margins.All = 10;
    //Create new XFA rectangle instance.
    PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100));
    //Create a new corner instance.
    PdfXfaCorner corner = new PdfXfaCorner();
    //Set inverted.
    corner.IsInverted = true;
    //Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round;
    //Set corner thickness
    corner.Thickness = 5;
    //Set corner border color.
    corner.BorderColor = Color.Green;
    //Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid;
    //Set the radius of the corner.
    corner.Radius = 5f;
    //Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible;
    //Set the corner of the rectangle
    rect.Corner = corner;
    //Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid;
    //Set rectangle border width.
    rect.Border.Width = 5;
    //Set the linear brush
    rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow);
    //Add the field to form.
    parentForm.Fields.Add(rect);            
    document.XfaForm = parentForm;
    //Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Create a form.
    Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    parentForm.Margins.All = 10
    'Create new XFA rectangle instance.
    Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100))
    'Create a new corner instance.
    Dim corner As New PdfXfaCorner()
    'Set inverted.
    corner.IsInverted = True
    'Set corner shape.
    corner.Shape = PdfXfaCornerShape.Round
    'Set corner thickness
    corner.Thickness = 5
    'Set corner border color.
    corner.BorderColor = Color.Green
    'Set the corner border style.
    corner.BorderStyle = PdfXfaBorderStyle.Solid
    'Set the radius of the corner.
    corner.Radius = 5F
    'Set the visibility of the corner.
    corner.Visibility = PdfXfaVisibility.Visible
    'Set the corner of the rectangle
    rect.Corner = corner
    'Set the border style.
    rect.Border.Style = PdfXfaBorderStyle.Solid
    'Set rectangle border width.
    rect.Border.Width = 5
    'Set the linear brush
    rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow)
    'Add the field to form.
    parentForm.Fields.Add(rect)
    document.XfaForm = parentForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved