# Optional Elements

## Content



GanttView enables you to control the visibility of certain elements. You can determine whether or not to show the nonworking time, toolbar, today line, and much more.

The following sections discuss how to set visibility of these elements.

### Hide Nonworking-Time

By default, the Nonworking-Time line is visible. However, you can choose to hide the nonworking-time line by setting [ShowNonworkingTime](/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.WPF.GanttView.C1GanttView.ShowNonworkingTime.html) property of the <span data-popup-content="This class is available in \u003ca href=\u0022/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.WPF.GanttView.C1GanttView.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.WPF.GanttView.C1GanttView.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="C1GanttView" data-popup-theme="ui-tooltip-green qtip-green">C1GanttView</span> class to **false** as demonstrated in the following code.

```csharp
gv.ShowNonworkingTime = false;
```

### Hide Today's Date

You can choose to hide today's date in the GanttView by setting [ShowToday](/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.WPF.GanttView.C1GanttView.ShowToday.html) property of the **C1GanttView** class to **false**.

The following code hides today's date in GanttView.

```csharp
gv.ShowToday = false;
```

### Hide Toolbar

By default, a toolbar is displayed at the top which provides easy access to various operations. However, there might be a case where you do not want to display toolbar to restrict end users to perform some functionality. To do so, you can set [ShowToolbar](/componentone/api/wpf/online-ganttview/dotnet-api/C1.WPF.GanttView/C1.WPF.GanttView.C1GanttView.ShowToolbar.html) property of the C1GanttView class to **false** as demonstrated in the following code.

```csharp
gv.ShowToolbar = false;
```