Class PdfLoadedFieldItem
Represents base class for field's group items.
Inheritance
System.Object
PdfLoadedFieldItem
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public class PdfLoadedFieldItem : Object
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing button field
PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField;
// Load an existing button item
PdfLoadedButtonItem buttonItem = buttonField.Items[0];
buttonItem.Bounds = new RectangleF(0, 0, 20, 30);
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document.
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing button field
Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField)
' Load an existing button item
Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0)
buttonItem.Bounds = New RectangleF(0, 0, 20, 30)
doc.Save("Form.pdf")
doc.Close(True)
Properties
Bounds
Gets or sets the bounds.
Declaration
public RectangleF Bounds { get; set; }
Property Value
Type |
---|
RectangleF |
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing button field
PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField;
// Load an existing button item
PdfLoadedButtonItem buttonItem = buttonField.Items[0];
buttonItem.Bounds = new RectangleF(0, 0, 20, 30);
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document.
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing button field
Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField)
' Load an existing button item
Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0)
buttonItem.Bounds = New RectangleF(0, 0, 20, 30)
doc.Save("Form.pdf")
doc.Close(True)
Field
Get the current Loaded style Field.
Declaration
protected PdfLoadedStyledField Field { get; }
Property Value
Type |
---|
PdfLoadedStyledField |
Location
Gets or sets the location of the field.
Declaration
public PointF Location { get; set; }
Property Value
Type |
---|
PointF |
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing button field
PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField;
// Load an existing button item
PdfLoadedButtonItem buttonItem = buttonField.Items[0];
buttonItem.Location = new PointF(100, 100);
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document.
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing button field
Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField)
' Load an existing button item
Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0)
buttonItem.Location = New PointF(100, 100)
doc.Save("Form.pdf")
doc.Close(True)
Page
Gets the page of the field.[Read-Only]
Declaration
public PdfPageBase Page { get; }
Property Value
Type |
---|
PdfPageBase |
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing button field
PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField;
// Load an existing button item
PdfLoadedButtonItem buttonItem = buttonField.Items[0];
//Get the fields page.
PdfPageBase page = buttonItem.Page;
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document.
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing button field
Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField)
' Load an existing button item
Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0)
'Get the fields page.
Dim page As PdfPageBase = buttonItem.Page
doc.Save("Form.pdf")
doc.Close(True)
Size
Gets or sets the size of the field.
Declaration
public SizeF Size { get; set; }
Property Value
Type |
---|
SizeF |
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Load an existing button field
PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField;
// Load an existing button item
PdfLoadedButtonItem buttonItem = buttonField.Items[0];
buttonItem.Size = new SizeF(100, 30);
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document.
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Load an existing button field
Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField)
' Load an existing button item
Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0)
buttonItem.Size = New SizeF(100, 30)
doc.Save("Form.pdf")
doc.Close(True)