menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedStateField - API Reference

    Show / Hide Table of Contents

    Class PdfLoadedStateField

    Represents the base class for loaded state field.

    Inheritance
    System.Object
    PdfField
    PdfLoadedField
    PdfLoadedStyledField
    PdfLoadedStateField
    PdfLoadedCheckBoxField
    PdfLoadedRadioButtonListField
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    PdfLoadedStyledField.GetGraphicsProperties(PdfLoadedStyledField.GraphicsProperties, PdfLoadedFieldItem)
    PdfLoadedStyledField.DefineDefaultAppearance()
    PdfLoadedStyledField.StyleToString(PdfCheckBoxStyle)
    PdfLoadedStyledField.MouseEnter
    PdfLoadedStyledField.MouseUp
    PdfLoadedStyledField.MouseDown
    PdfLoadedStyledField.MouseLeave
    PdfLoadedStyledField.GotFocus
    PdfLoadedStyledField.LostFocus
    PdfLoadedStyledField.Bounds
    PdfLoadedStyledField.Location
    PdfLoadedStyledField.Size
    PdfLoadedStyledField.BorderStyle
    PdfLoadedStyledField.BorderColor
    PdfLoadedStyledField.BorderWidth
    PdfLoadedStyledField.Font
    PdfLoadedStyledField.DefaultIndex
    PdfLoadedStyledField.Visible
    PdfLoadedStyledField.Visibility
    PdfLoadedStyledField.RotationAngle
    PdfLoadedField.ObjectID
    PdfLoadedField.SetName(String)
    PdfLoadedField.Name
    PdfLoadedField.MappingName
    PdfLoadedField.ToolTip
    PdfLoadedField.Page
    PdfLoadedField.ReadOnly
    PdfLoadedField.Required
    PdfLoadedField.Export
    PdfLoadedField.Form
    PdfField.GetValue(String)
    PdfField.SetValue(String, String)
    PdfField.Initialize()
    PdfField.Flatten
    PdfField.DisableAutoFormat
    PdfField.PdfTag
    PdfField.TabIndex
    PdfField.Layer
    PdfField.PropertyChanged
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public abstract class PdfLoadedStateField : PdfLoadedStyledField, IPdfWrapper, INotifyPropertyChanged
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Read the 'Gender' radio button field         
    PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField;
    // Flatten the radio button field
    radiobuttonField.Flatten = true;
    doc.Save("LoadedForm.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Read the 'Gender' radio button field         
    Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField)
    ' Flatten the radio button field
    radiobuttonField.Flatten = True
    doc.Save("LoadedForm.pdf")
    doc.Close(True)

    Properties

    Items

    Gets the items collection.[Read-Only]

    Declaration
    public PdfLoadedStateItemCollection Items { get; }
    Property Value
    Type Description
    PdfLoadedStateItemCollection
    Examples
    //Load an existing document
    PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
    // Getting the 'Gender' radio button field   
    PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField;
    // Radio button field collection
    PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items;
    // Radio button field item
    PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0];
    // Set the first item as selected item
    radiobuttonItem.Selected = true;
    doc.Save("Form.pdf");
    doc.Close(true);
    'Load an existing document
    Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
    ' Getting the 'Gender' radio button field   
    Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField)
    ' Radio button field collection
    Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items
    ' Radio button field item
    Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0)
    ' Set the first item as selected item
    radiobuttonItem.Selected = True
    doc.Save("Form.pdf")
    doc.Close(True)
    See Also
    PdfLoadedStateItemCollection

    Methods

    Remove(PdfLoadedStateItem)

    Declaration
    public void Remove(PdfLoadedStateItem item)
    Parameters
    Type Name Description
    PdfLoadedStateItem item

    RemoveAt(Int32)

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    SetCheckedStatus(Boolean)

    Sets checked status of the field.

    Declaration
    protected void SetCheckedStatus(bool value)
    Parameters
    Type Name Description
    System.Boolean value

    Checked status.

    Implements

    System.ComponentModel.INotifyPropertyChanged

    See Also

    PdfLoadedStyledField
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved