Table of Contents

Enum PdfXfaCircleAppearance

Namespace
Syncfusion.Pdf.Xfa
Assembly
Syncfusion.Pdf.Portable.dll

Represents the Appearance of the circle field

public enum PdfXfaCircleAppearance

Fields

Arc = 2

Represents the arc shape

Circle = 0

Represents the circle shape

Ellipse = 1

Represents the ellipse shape

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()