WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfXfaRotateAngle - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum PdfXfaRotateAngle

    The number of degrees by which the field should be rotated clockwise when displayed or printed.

    Namespace: Syncfusion.Pdf.Xfa
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfXfaRotateAngle
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Add a new XFA page.
    PdfXfaPage xfaPage = document.Pages.Add();
    //Create a new PDF XFA form
    PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width);
    //Create a rectangle field and add the properties.
    PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50));
    //Set the fill color
    rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red);
    //Set rotation.
    rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90;
    //Add the rectangle field to the XFA form.
    mainForm.Fields.Add(rectangle);
    //Add the XFA form to the document.
    document.XfaForm = mainForm;
    //Save the document.
    document.Save("XfaForm.pdf", PdfXfaType.Dynamic);
    //close the document
    document.Close();
    'Create a new PDF XFA document.
    Dim document As New PdfXfaDocument()
    'Add a new XFA page.
    Dim xfaPage As PdfXfaPage = document.Pages.Add()
    'Create a new PDF XFA form
    Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width)
    'Create a rectangle field and add the properties.
    Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50))
    'Set the fill color
    rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red)
    'Set rotation.
    rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90
    'Add the rectangle field to the XFA form.
    mainForm.Fields.Add(rectangle)
    'Add the XFA form to the document.
    document.XfaForm = mainForm
    'Save the document.
    document.Save("XfaForm.pdf",PdfXfaType.Dynamic)
    'close the document
    document.Close()

    Fields

    Name Description
    RotateAngle0

    Indicates 0 degree rotation angle.

    RotateAngle180

    Indicates 180 degree rotation angle.

    RotateAngle270

    Indicates 270 degree rotation angle.

    RotateAngle90

    Indicates 90 degree rotation angle.

    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved