menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class PdfXfaCircleAppearance

    Represents the Appearance of the circle field

    Inheritance
    System.Object
    PdfXfaCircleAppearance
    Namespace: Syncfusion.Pdf.Xfa
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class PdfXfaCircleAppearance : Enum
    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

    Arc

    Represents the arc shape

    Declaration
    public const PdfXfaCircleAppearance Arc
    Field Value
    Type
    PdfXfaCircleAppearance

    Circle

    Represents the circle shape

    Declaration
    public const PdfXfaCircleAppearance Circle
    Field Value
    Type
    PdfXfaCircleAppearance

    Ellipse

    Represents the ellipse shape

    Declaration
    public const PdfXfaCircleAppearance Ellipse
    Field Value
    Type
    PdfXfaCircleAppearance
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved