[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorksheet.Selection

Selection Property

Selection

Gets the current selection range on the worksheet.

Returns an IRange that represents the currently selected cells. If the selection contains multiple areas, the returned range represents all selected areas. Returns null if the worksheet has no selection.

Declaration
IRange Selection { get; }
ReadOnly Property Selection As IRange
Examples
worksheet.Range["A1:B2"].Select();
IRange selection = worksheet.Selection;
selection.Value = "Selected";