menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfXfaCircleAppearance - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum PdfXfaCircleAppearance

    Represents the Appearance of the circle field

    Namespace: Syncfusion.Pdf.Xfa
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfXfaCircleAppearance
    Examples
    //Create a new PDF XFA document.
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a form.
    PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595);
    //Set margin of the form.            
    xfaForm.Margins.All = 10;
    //Create a new XFA circle field.
    PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100));
    //Set border.
    circle.Border = new PdfXfaBorder();
    //Set border color.
    circle.Border.Color = new PdfColor(Color.Green);
    //Set start angle.
    circle.StartAngle = 90;
    //Set sweep angle.
    circle.SweepAngle = 270;
    //Set the circle appearance.
    circle.Appearance = PdfXfaCircleAppearance.Arc;
    //Add the field to form.
    xfaForm.Fields.Add(circle);
    document.XfaForm = xfaForm;
    //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 xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595)
    'Set margin of the form.            
    xfaForm.Margins.All = 10
    'Create a new XFA circle field.
    Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100))
    'Set border.
    circle.Border = New PdfXfaBorder()
    'Set border color.
    circle.Border.Color = New PdfColor(Color.Green)
    'Set start angle.
    circle.StartAngle = 90
    'Set sweep angle.
    circle.SweepAngle = 270
    'Set the circle appearance.
    circle.Appearance = PdfXfaCircleAppearance.Arc
    'Add the field to form.
    xfaForm.Fields.Add(circle)
    document.XfaForm = xfaForm
    'Save the document.
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Fields

    Name Description
    Arc

    Represents the arc shape

    Circle

    Represents the circle shape

    Ellipse

    Represents the ellipse shape

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