[]
        
(Showing Draft Content)

Selection

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 method.

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

Apply Selection Styles

To apply styles to the selected cell range, use the SelectionBackground and SelectionStyle enumerations for configuration.