## ViewCollection.GetByName method

Searches for a View with the name, and returns the first occurrence within the collection.

```csharp
public View GetByName(string viewName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| viewName | String | Name of the View to search. |

### Return Value

The first View in collection with the specified name, if found; otherwise, null.

### See Also

* class [View](../../view/)
* class [ViewCollection](../)
* namespace [Aspose.Tasks](../../viewcollection/)
* assembly [Aspose.Tasks](../../../)


