Class PdfLoadedStateItem
Represents the loaded state item.
Inheritance
System.Object
PdfLoadedStateItem
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfLoadedStateItem : PdfLoadedFieldItem
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;
// State Item collection
PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items;
PdfLoadedStateItem stateItem =stateItemCollection[0];
// Radio button field item
PdfLoadedRadioButtonItem radiobuttonItem = stateItem as PdfLoadedRadioButtonItem;
// Selected the item
radiobuttonItem.Checked = true;
doc.Save("LoadedForm.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)
' State Item collection
Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items
Dim stateItem As PdfLoadedStateItem = stateItemCollection(0)
' Radio button field item
Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItem, PdfLoadedRadioButtonItem)
' Selected the item
radiobuttonItem.Checked = True
doc.Save("LoadedForm.pdf")
doc.Close(True)
Properties
BackColor
Gets or sets the back color of the field.
Declaration
public PdfColor BackColor { get; set; }
Property Value
Type | Description |
---|---|
PdfColor |
Checked
Gets or sets a value indicating whether this PdfLoadedStateItem is checked.
Declaration
public bool Checked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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;
// State Item collection
PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items;
PdfLoadedStateItem stateItem =stateItemCollection[0];
// Radio button field item
PdfLoadedRadioButtonItem radiobuttonItem = stateItem as PdfLoadedRadioButtonItem;
// Selected the item
radiobuttonItem.Checked = true;
doc.Save("LoadedForm.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)
' State Item collection
Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items
Dim stateItem As PdfLoadedStateItem = stateItemCollection(0)
' Radio button field item
Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItem, PdfLoadedRadioButtonItem)
' Selected the item
radiobuttonItem.Checked = True
doc.Save("LoadedForm.pdf")
doc.Close(True)
ForeColor
Gets or sets the fore color of the field.
Declaration
public PdfColor ForeColor { get; set; }
Property Value
Type | Description |
---|---|
PdfColor |