# Selection

## Content

By default, users can freely select any cell range.

## Get the Selection Range

You can retrieve the address of the currently selected cell range using the [Address](/spreadnet/api/latest/online-wpf/GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IRange.Address.html) method.

```csharp
MessageBox.Show(spreadSheet1.Workbook.Worksheets[0].Selection.Address()); 
```

```vbnet
MessageBox.Show(spreadSheet1.Workbook.Worksheets[0].Selection.Address())
```

## Apply Selection Styles

To apply styles to the selected cell range, use the[ SelectionBackground](/spreadnet/api/latest/online-wpf/GrapeCity.Wpf.SpreadSheet/GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.SelectionBackground.html) and [SelectionStyle](/spreadnet/api/latest/online-wpf/GrapeCity.Wpf.SpreadSheet/GrapeCity.Wpf.SpreadSheet.SelectionStyle.html) enumerations for configuration.