Table of Contents

Enum PdfCheckBoxStyle

Namespace
Syncfusion.Pdf.Interactive
Assembly
Syncfusion.Pdf.Portable.dll

Specifies the style for a check box field.

public enum PdfCheckBoxStyle

Fields

Check = 0

A check mark is used for the checked state.

Circle = 1

A circle is used for the checked state.

Cross = 2

A cross is used for the checked state.

Diamond = 3

A diamond symbol is used for the checked state.

Square = 4

A square is used for the checked state.

Star = 5

A star is used for the checked state.

Examples

//Create a new PDf document
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();         
//Create a check box
PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET");            
checkBox.Bounds = new RectangleF(100, 290, 20, 20);            
// Add the check box field in form`s field collection
document.Form.Fields.Add(checkBox);
checkBox.HighlightMode = PdfHighlightMode.Push;
checkBox.BorderStyle = PdfBorderStyle.Beveled;
// Set the check style
checkBox.Style = PdfCheckBoxStyle.Star;            
checkBox.Checked = true;
document.Save("Form.pdf");
document.Close(true);
'Create a new PDf document
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Create a check box
Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET")
checkBox.Bounds = New RectangleF(100, 290, 20, 20)
' Add the check box field in form`s field collection
document.Form.Fields.Add(checkBox)
checkBox.HighlightMode = PdfHighlightMode.Push
checkBox.BorderStyle = PdfBorderStyle.Beveled
' Set the check style
checkBox.Style = PdfCheckBoxStyle.Star
checkBox.Checked = True
document.Save("Form.pdf")
document.Close(True)

Remarks

The default value is Check.

See Also