Class PdfLoadedTextBoxItemCollection
Represents collection of text box group items.
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfLoadedTextBoxItemCollection : PdfCollection, IEnumerable
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()
Declaration
public PdfLoadedTextBoxItemCollection()
Properties
Item[Int32]
Gets the PdfLoadedTexBoxItem at the specified index.[Read-Only]
Declaration
public PdfLoadedTexBoxItem this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
PdfLoadedTexBoxItem |
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
Implements
System.Collections.IEnumerable