Class TextBoxCollection
Represents worksheet's textbox collection.
Inheritance
System.Object
TextBoxCollection
Implements
System.Collections.Generic.IList<ITextBoxShape>
System.Collections.Generic.ICollection<ITextBoxShape>
System.Collections.Generic.IEnumerable<ITextBoxShape>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class TextBoxCollection : CollectionBaseEx<ITextBoxShape>, IList<ITextBoxShape>, ICollection<ITextBoxShape>, IEnumerable<ITextBoxShape>, IEnumerable, IParentApplication, ICloneParent, ITextBoxes
Constructors
TextBoxCollection(IApplication, Object)
Initializes new instance of the collection.
Declaration
public TextBoxCollection(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the new instance. |
System.Object | parent | Parent object for the new instance. |
Properties
Item[Int32]
Returns single item from the collection.
Declaration
public ITextBoxShape this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the item to get. |
Property Value
Type | Description |
---|---|
ITextBoxShape | Single item from the collection. |
Item[String]
Gets single item from the collection.
Declaration
public ITextBoxShape this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the item to get. |
Property Value
Type | Description |
---|---|
ITextBoxShape | Single item from the collection. |
Methods
AddTextBox(ITextBoxShape)
Adds new item to the collection.
Declaration
public void AddTextBox(ITextBoxShape textbox)
Parameters
Type | Name | Description |
---|---|---|
ITextBoxShape | textbox | Textbox to add. |
AddTextBox(Int32, Int32, Int32, Int32)
Adds new textbox to the collection.
Declaration
public ITextBoxShape AddTextBox(int row, int column, int height, int width)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | row | Top row for the new shape. |
System.Int32 | column | Left column for the new shape. |
System.Int32 | height | Height in pixels of the new shape. |
System.Int32 | width | Width in pixels of the new shape. |
Returns
Type | Description |
---|---|
ITextBoxShape | Newly created TextBox object. |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable