
**Inheritance:**
java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList
```
public class OutlineMaskCollection extends AbstractList<OutlineMask>
```

Represents a collection of `OutlineMask` objects.
## Methods

| Method | Description |
| --- | --- |
| [add(OutlineMask item)](#add-com.aspose.tasks.OutlineMask-) | Adds the specified item to this collection. |
| [get(int index)](#get-int-) | Returns the element at the specified position in this collection. |
| [iterator()](#iterator--) | Returns an iterator over elements from this collection. |
| [remove(int index)](#remove-int-) | Removes the element at the specified position in this collection and returns the element that was removed from the collection. |
| [size()](#size--) | Gets the number of elements contained in this collection. |
### add(OutlineMask item) {#add-com.aspose.tasks.OutlineMask-}
```
public boolean add(OutlineMask item)
```


Adds the specified item to this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [OutlineMask](../../com.aspose.tasks/outlinemask) | the specified item to add to the collection. |

**Returns:**
boolean - true if the specified item was added successfully; otherwise, false.
### get(int index) {#get-int-}
```
public OutlineMask get(int index)
```


Returns the element at the specified position in this collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | specified position to getInternal element at. |

**Returns:**
[OutlineMask](../../com.aspose.tasks/outlinemask) - the element at the specified position in this collection.
### iterator() {#iterator--}
```
public Iterator<OutlineMask> iterator()
```


Returns an iterator over elements from this collection.

**Returns:**
java.util.Iterator&lt;com.aspose.tasks.OutlineMask&gt; - an iterator over elements from this collection.
### remove(int index) {#remove-int-}
```
public OutlineMask remove(int index)
```


Removes the element at the specified position in this collection and returns the element that was removed from the collection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | int | the specified position to remove the element at. |

**Returns:**
[OutlineMask](../../com.aspose.tasks/outlinemask) - the element that was removed from the collection.
### size() {#size--}
```
public final int size()
```


Gets the number of elements contained in this collection.

**Returns:**
int - the number of elements contained in this collection.
