# Customize Worksheets

Customize a worksheet using DsExcel to modify the default settings by setting color for the tabs, default height and width for rows and columns, and more.

## Content

DsExcel allows you to customize worksheets using the properties of [IWorksheet Interface](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.html). You can perform useful operations like customizing gridlines to modify row and column headers, setting color for the tabs, or setting default height and width for rows and columns, and so much more.
Customizing a worksheet to modify the default settings involves the following tasks:

* [Configure display](/document-solutions/dot-net-excel-api/docs/online/Features/ManageWorksheet/CustomizeWorksheets#configure-display)
* [Set the tab color](/document-solutions/dot-net-excel-api/docs/online/Features/ManageWorksheet/CustomizeWorksheets#set-the-tab-color)
* [Set visibility](/document-solutions/dot-net-excel-api/docs/online/Features/ManageWorksheet/CustomizeWorksheets#set-visibility)
* [Set background image](/document-solutions/dot-net-excel-api/docs/online/Features/ManageWorksheet/CustomizeWorksheets#set-background-image)
* [Define standard height and width](/document-solutions/dot-net-excel-api/docs/online/Features/ManageWorksheet/CustomizeWorksheets#define-standard-width-and-height)

## Configure display

You can modify the display settings of your worksheet from left to right or right to left.
Refer to the following example code to configure the display of your worksheet in DsExcel.

```csharp
// Fetch the default WorkSheet
IWorksheet worksheet = workbook.Worksheets[0];

// Assign the values to the cells
worksheet.Range["B1"].Value = "ABCD";
worksheet.Range["B2"].Value = 3;
worksheet.Range["C1"].Value = "Documents";
worksheet.Range["C2"].Value = 4;
worksheet.Range["D1"].Value = "Excel";
worksheet.Range["D2"].Value = "ABCD";

// Set the specified sheet to be displayed from left to right.
worksheet.SheetView.DisplayRightToLeft = true;
```

## Set the tab color

You can change the default tab color of your worksheet using the [TabColor property](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.TabColor.html) of the [IWorksheet interface](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.html).
Refer to the following example code to set the tab color for your worksheet.

```csharp
// Set the tab color of the specified sheet as green.
worksheet.TabColor = Color.Green;
```

## Set visibility

You can show or hide your worksheet using the [Visible property](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.Visible.html) of the IWorksheet interface.
Refer to the following example code to set visibility of your worksheet.

```csharp
// Adding new sheet and set the visibility of the sheet as Hidden.
IWorksheet worksheet1 = workbook.Worksheets.Add();
worksheet1.Visible = Visibility.Hidden;
```

## Set background image

You can set a custom background image to your worksheet using the [BackgroundPicture](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.BackgroundPicture.html) property of the [IWorksheet](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.html) interface. With this feature, users can insert any background image to the worksheet including their organization logo, custom watermark or a wallpaper of their choice without any hassles.
Refer to the following example code in order to set the custom background image in your worksheet.

```csharp
// Fetch default worksheet
IWorksheet worksheet = workbook.Worksheets[0];

// Set Background Image
worksheet.BackgroundPicture = File.ReadAllBytes(@"Logo.png");
```

## Define standard width and height

You can define the standard height and width of your worksheet using the [StandardHeight](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.StandardHeight.html) and [StandardWidth](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IWorksheet.StandardWidth.html) properties of the IWorksheet interface, respectively.
Refer to the following example code to define the standard width and height as per your requirements.

```csharp
// Setting the height and width of the wokrsheet
worksheet.StandardHeight = 20;
worksheet.StandardWidth = 40;
```

## See Also

[Work with Worksheets](/document-solutions/dot-net-excel-api/docs/online/Features/ManageWorksheet/WorkWithSheets)