Class WTextBoxCollection
Represents a collection of WTextBox objects.
Inheritance
System.Object
WTextBoxCollection
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.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class WTextBoxCollection : EntityCollection, IXDLSSerializableCollection, 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. |
CreateItem(IXDLSContentReader)
Creates a new item.
Declaration
protected override OwnerHolder CreateItem(IXDLSContentReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentReader | reader | The IXDLSContentReader object. |
Returns
Type | Description |
---|---|
OwnerHolder | The OwnerHolder object. |
Overrides
GetTagItemName()
Gets the name of xml tag.
Declaration
protected override string GetTagItemName()
Returns
Type | Description |
---|---|
System.String | The string that specifies the tag name. |
Overrides
Implements
System.Collections.IEnumerable