Class WTextBoxCollection
Represents a collection of WTextBox objects.
Inherited Members
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Portable.dll
Syntax
public class WTextBoxCollection : EntityCollection, IEntityCollectionBase, ICollectionBase, IEnumerable, IWTextBoxCollection
Constructors
WTextBoxCollection(IWordDocument)
Initializes a new instance of the WTextBoxCollection class with the specified IWordDocument instance.
Declaration
public WTextBoxCollection(IWordDocument doc)
Parameters
Type | Name | Description |
---|---|---|
IWordDocument | doc | The IWordDocument instance. |
Properties
Item[Int32]
Gets the IWTextBox at the specified index. Read-only.
Declaration
public IWTextBox this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the text box to get from the collection. |
Property Value
Type | Description |
---|---|
IWTextBox | The text box at the specified index. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The index is not valid in the WTextBoxCollection. |
TypesOfElement
Gets the type of the elements present in the collection.
Declaration
protected override Type[] TypesOfElement { get; }
Property Value
Type | Description |
---|---|
System.Type[] | The System.Type collection that contains the types of the elements. |
Overrides
Methods
Add(IWTextBox)
Adds the specified textbox to the collection.
Declaration
public int Add(IWTextBox textBox)
Parameters
Type | Name | Description |
---|---|---|
IWTextBox | textBox | The text box to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the text box. |
Implements
System.Collections.IEnumerable