Table of Contents

Class PdfLoadedCheckBoxItem

Namespace
Syncfusion.Pdf.Parsing
Assembly
Syncfusion.Pdf.Portable.dll

Represents loaded check box item.

public class PdfLoadedCheckBoxItem : PdfLoadedStateItem
Inheritance
PdfLoadedCheckBoxItem
Inherited Members

Examples

//Load an existing document.
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing Check field
PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField;
// Loads the check box items collection.
PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items;
// Read the first item of the collection
PdfLoadedCheckBoxItem checkItem = checkCollection[0];
checkItem.Checked = false;            
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document.
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing Check field
Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField)
' Loads the check box items collection.
Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items
' Read the first item of the collection
Dim checkItem As PdfLoadedCheckBoxItem = checkCollection(0)
checkItem.Checked = False
doc.Save("Form.pdf")
doc.Close(True)

Properties

ExportValue

Gets the export value of the checkbox field.

public string ExportValue { get; }

Property Value

string

Examples

//Load the PDF document.
FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
//Get the loaded form.
PdfLoadedForm loadedForm = loadedDocument.Form;
//Read the check box from field collection.
PdfLoadedCheckBoxField checkBoxField = loadedDocument.Form.Fields[0] as PdfLoadedCheckBoxField;
//Get the first item of the check box field.
PdfLoadedCheckBoxFieldItem checkBoxItem = checkBoxField.Items[0];
//Get the export value of the check box item.
string  export = checkBoxItem.ExportValue;
//Close the document
loadedDocument.Close(true);
See Also

Style

Gets or sets the style.

public PdfCheckBoxStyle Style { get; set; }

Property Value

PdfCheckBoxStyle

The PdfCheckBoxStyle object specifies the style of the check box field.

See Also

See Also