menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedCheckBoxField - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedCheckBoxField

    Represents check box of an existing PDF document.

    Inheritance
    System.Object
    PdfField
    PdfLoadedField
    PdfLoadedStyledField
    PdfLoadedStateField
    PdfLoadedCheckBoxField
    Implements
    IPdfWrapper
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    PdfField.DisableAutoFormat
    PdfField.Flatten
    PdfField.GetValue(String)
    PdfField.Initialize()
    PdfField.IPdfWrapper.Element
    PdfField.Layer
    PdfField.PdfTag
    PdfField.PropertyChanged
    PdfField.SetValue(String, String)
    PdfField.TabIndex
    PdfLoadedField.Export
    PdfLoadedField.Form
    PdfLoadedField.MappingName
    PdfLoadedField.Name
    PdfLoadedField.ObjectID
    PdfLoadedField.Page
    PdfLoadedField.ReadOnly
    PdfLoadedField.Required
    PdfLoadedField.SetName(String)
    PdfLoadedField.ToolTip
    PdfLoadedStateField.Remove(PdfLoadedStateItem)
    PdfLoadedStateField.SetCheckedStatus(Boolean)
    PdfLoadedStyledField.BorderColor
    PdfLoadedStyledField.BorderStyle
    PdfLoadedStyledField.BorderWidth
    PdfLoadedStyledField.Bounds
    PdfLoadedStyledField.DefaultIndex
    PdfLoadedStyledField.DefineDefaultAppearance()
    PdfLoadedStyledField.Font
    PdfLoadedStyledField.GetGraphicsProperties(PdfLoadedStyledField.GraphicsProperties, PdfLoadedFieldItem)
    PdfLoadedStyledField.GotFocus
    PdfLoadedStyledField.Location
    PdfLoadedStyledField.LostFocus
    PdfLoadedStyledField.MouseDown
    PdfLoadedStyledField.MouseEnter
    PdfLoadedStyledField.MouseLeave
    PdfLoadedStyledField.MouseUp
    PdfLoadedStyledField.RotationAngle
    PdfLoadedStyledField.Size
    PdfLoadedStyledField.StyleToString(PdfCheckBoxStyle)
    PdfLoadedStyledField.Visibility
    PdfLoadedStyledField.Visible
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.UWP.dll
    Syntax
    public class PdfLoadedCheckBoxField : PdfLoadedStateField, IPdfWrapper, INotifyPropertyChanged
    Examples
    //Load an existing document.
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Load an existing Check field
    PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField;
    checkField.Checked = true;
    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)
    checkField.Checked = True
    doc.Save("Form.pdf")
    doc.Close(True)

    Properties

    BackColor

    Gets or sets the back color of the field

    Declaration
    public PdfColor BackColor { get; set; }
    Property Value
    Type
    PdfColor

    Checked

    Gets or sets a value indicating whether this PdfLoadedCheckBoxField is checked.

    Declaration
    public bool Checked { get; set; }
    Property Value
    Type Description
    System.Boolean

    True if the check box is checked, false otherwise.

    Examples
    //Load an existing document.
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Load an existing Check field
    PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField;
    checkField.Checked = true;
    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)
    checkField.Checked = True
    doc.Save("Form.pdf")
    doc.Close(True)
    See Also
    PdfLoadedCheckBoxField
    PdfLoadedDocument

    ForeColor

    Gets or sets the fore color of the field.

    Declaration
    public PdfColor ForeColor { get; set; }
    Property Value
    Type
    PdfColor

    Items

    Gets the collection of check box items.[Read-Only]

    Declaration
    public PdfLoadedCheckBoxItemCollection Items { get; }
    Property Value
    Type
    PdfLoadedCheckBoxItemCollection
    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;
    checkCollection[0].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
    checkCollection(0).Checked = False
    doc.Save("Form.pdf")
    doc.Close(True)
    See Also
    PdfLoadedStateField
    PdfLoadedCheckBoxField

    Style

    Gets or sets the checkbox style of the field.

    Declaration
    public PdfCheckBoxStyle Style { get; set; }
    Property Value
    Type
    PdfCheckBoxStyle

    Methods

    Remove(PdfLoadedCheckBoxItem)

    Remove the particular PdfLoadedCheckBoxItem from PdfLoadedCheckBoxField.

    Declaration
    public void Remove(PdfLoadedCheckBoxItem item)
    Parameters
    Type Name Description
    PdfLoadedCheckBoxItem item
    Examples
     //Load an existing document
     PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
     //Get the loaded form.
      PdfLoadedForm loadedForm = loadedDocument.Form;       
     //Get the checkBox Field
     PdfLoadedCheckBoxField checkBoxField = loadedForm.Fields[0] as PdfLoadedCheckBoxField;
     //Get the checkBoxField Item
     PdfLoadedCheckBoxItem checkBoxFieldItem = checkBoxField.Items[0] as PdfLoadedCheckBoxItem;
    //Remove the checkBoxField item
     loadedField.Remove(checkBoxFieldItem);    
    //Save the modified document.
     loadedDocument.Save("form.pdf");
    //Close the document
    loadedDocument.Close(true);

    RemoveAt(Int32)

    Remove the PdfLoadedCheckBoxField item at the specified index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Examples
     //Load an existing document
     PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");        
     //Get the loaded form.
      PdfLoadedForm loadedForm = loadedDocument.Form;
     //Get the checkBoxField 
     PdfLoadedCheckBoxField checkBoxField = loadedForm.Fields[0] as PdfLoadedCheckBoxField;       
    //Remove the checkBoxField item
     checkBoxField.RemoveAt(0);
    //Save the modified document.
     loadedDocument.Save("form.pdf");
    //Close the document
    loadedDocument.Close(true);

    TryGetFieldItem(String, out PdfLoadedCheckBoxItem)

    Get the PdfLoadedCheckBoxItem using export value from PdfLoadedCheckBoxField

    Declaration
    public bool TryGetFieldItem(string exportValue, out PdfLoadedCheckBoxItem field)
    Parameters
    Type Name Description
    System.String exportValue

    The export value.

    PdfLoadedCheckBoxItem field

    The field name.

    Returns
    Type
    System.Boolean
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    //Load an existing Check field
    PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField;
    PdfLoadedCheckBoxItem checkBoxItem = null;
    //Get checkbox item using an export value
    checkField.TryGetFieldItem("3", out checkBoxItem);
    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)
    'Get checkbox item using an export value  
    Dim checkBoxItem As PdfLoadedCheckBoxItem = Nothing
    checkField.TryGetFieldItem("3", checkBoxItem)
    doc.Save("Form.pdf")
    doc.Close(True)       

    Implements

    IPdfWrapper
    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    PdfLoadedStateField
    PdfLoadedDocument
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved