## TextBoxCollection class

Инкапсулирует набор[`TextBox`](../textbox) объекты.

```csharp
public class TextBoxCollection : CollectionBase<TextBox>
```

## Характеристики

| Имя | Описание |
| --- | --- |
| [Capacity](../../aspose.cells/collectionbase`1/capacity) { get; set; } |  |
| [Count](../../aspose.cells/collectionbase`1/count) { get; } |  |
| [Item](../../aspose.cells.drawing/textboxcollection/item) { get; } | Получает[`TextBox`](../textbox) элемент по указанному индексу. (2 indexers) |
| [Item](../../aspose.cells/collectionbase`1/item) { get; set; } |  |

## Методы

| Имя | Описание |
| --- | --- |
| [Add](../../aspose.cells.drawing/textboxcollection/add)(int, int, int, int) | Добавляет текстовое поле в коллекцию. |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(TextBox) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(TextBox, IComparer&lt;TextBox&gt;) |  |
| [BinarySearch](../../aspose.cells/collectionbase`1/binarysearch)(int, int, TextBox, IComparer&lt;TextBox&gt;) |  |
| [Clear](../../aspose.cells.drawing/textboxcollection/clear#clear)() | Очистить все текстовые поля. (2 methods) |
| [Contains](../../aspose.cells/collectionbase`1/contains)(TextBox) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(TextBox[]) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(TextBox[], int) |  |
| [CopyTo](../../aspose.cells/collectionbase`1/copyto)(int, TextBox[], int, int) |  |
| [Exists](../../aspose.cells/collectionbase`1/exists)(Predicate&lt;TextBox&gt;) |  |
| [Find](../../aspose.cells/collectionbase`1/find)(Predicate&lt;TextBox&gt;) |  |
| [FindAll](../../aspose.cells/collectionbase`1/findall)(Predicate&lt;TextBox&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(Predicate&lt;TextBox&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, Predicate&lt;TextBox&gt;) |  |
| [FindIndex](../../aspose.cells/collectionbase`1/findindex)(int, int, Predicate&lt;TextBox&gt;) |  |
| [FindLast](../../aspose.cells/collectionbase`1/findlast)(Predicate&lt;TextBox&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(Predicate&lt;TextBox&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, Predicate&lt;TextBox&gt;) |  |
| [FindLastIndex](../../aspose.cells/collectionbase`1/findlastindex)(int, int, Predicate&lt;TextBox&gt;) |  |
| [GetEnumerator](../../aspose.cells/collectionbase`1/getenumerator)() |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(TextBox) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(TextBox, int) |  |
| [IndexOf](../../aspose.cells/collectionbase`1/indexof)(TextBox, int, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(TextBox) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(TextBox, int) |  |
| [LastIndexOf](../../aspose.cells/collectionbase`1/lastindexof)(TextBox, int, int) |  |
| [RemoveAt](../../aspose.cells.drawing/textboxcollection/removeat#removeat)(int) | Удалить текстовое поле из файла. (2 methods) |

### Примеры

```csharp

[C#]
//Создание экземпляра объекта Workbook
Workbook workbook = new Workbook();
//получаем объект коллекции
TextBoxCollection textBoxCollection = workbook.Worksheets[0].TextBoxes;
//добавляем текстовое поле
textBoxCollection.Add(1, 1, 50, 100);
foreach(TextBox tbox in textBoxCollection)
{
    //делай что хочешь
}

//делай свое дело

```

### Смотрите также

* class [CollectionBase&lt;T&gt;](../../aspose.cells/collectionbase-1)
* class [TextBox](../textbox)
* пространство имен [Aspose.Cells.Drawing](../../aspose.cells.drawing)
* сборка [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
