Enum PdfCheckBoxStyle
Specifies the style for a check box field.
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum PdfCheckBoxStyle
Remarks
The default value is Check.
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)
Fields
Name | Description |
---|---|
Check | A check mark is used for the checked state. |
Circle | A circle is used for the checked state. |
Cross | A cross is used for the checked state. |
Diamond | A diamond symbol is used for the checked state. |
Square | A square is used for the checked state. |
Star | A star is used for the checked state. |