Class PdfLoadedTextBoxItemCollection
- Namespace
- Syncfusion.Pdf.Parsing
- Assembly
- Syncfusion.Pdf.Portable.dll
Represents collection of text box group items.
public class PdfLoadedTextBoxItemCollection : PdfCollection, IEnumerable
- Inheritance
-
PdfLoadedTextBoxItemCollection
- Implements
- Inherited Members
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Read the text box field item
PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField;
// TextBox Item collection
PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items;
textboxFieldCollection[0].Location = new PointF(10, 20);
doc.Save("LoadedForm.pdf");
doc.Close(true);
'Load an existing document
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Read the text box field item
Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField)
' TextBox Item collection
Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items
textboxFieldCollection(0).Location = New PointF(10, 20)
doc.Save("LoadedForm.pdf")
doc.Close(True)
Constructors
PdfLoadedTextBoxItemCollection()
public PdfLoadedTextBoxItemCollection()
- See Also
Properties
this[int]
Gets the PdfLoadedTexBoxItem at the specified index.[Read-Only]
public PdfLoadedTexBoxItem this[int index] { get; }
Parameters
index
int
Property Value
Examples
//Load an existing document
PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf");
// Read the text box field item
PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField;
// Read the text box item collection
PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items;
PdfLoadedTexBoxItem textboxItem = textboxFieldCollection[0];
textboxItem.Location = new PointF(10, 20);
doc.Save("Form.pdf");
doc.Close(true);
'Load an existing document
Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf")
' Read the text box field item
Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField)
' Read the text box item collection
Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items
Dim textboxItem As PdfLoadedTexBoxItem = textboxFieldCollection(0)
textboxItem.Location = New PointF(10, 20)
doc.Save("Form.pdf")
doc.Close(True)
- See Also