Spread.Sheets Documentation
selectionPolicy Method
Whether users can select single items, ranges, or a combination of both.
Gets or sets whether users can select ranges of items on a sheet.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var returnValue; // Type: any
returnValue = instance.selectionPolicy(value);
function selectionPolicy( 
   value : SelectionPolicy
) : any;

Parameters

value
Whether users can select single items, ranges, or a combination of both.

Return Value

If no value is set, returns the selection policy setting; otherwise, returns the sheet.
Example
This example uses the selectionPolicy method.
activeSheet.selectionUnit(GC.Spread.Sheets.SelectionUnit.row);
activeSheet.selectionPolicy(GC.Spread.Sheets.SelectionPolicy.range);
Remarks
The default value is SelectionPolicy.multiRange.
See Also

Reference

Worksheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.