SpreadJS 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.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var returnValue; // Type: Object
returnValue = instance.selectionPolicy(value);
function selectionPolicy( 
   value : SelectionPolicy
) : Object;

Parameters

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

Return Value

The selection policy setting.
Example
This example uses the selectionPolicy method.
activeSheet.selectionUnit(GcSpread.Sheets.SelectionUnit.Row);
activeSheet.selectionPolicy(GcSpread.Sheets.SelectionPolicy.Range);
Remarks
The default value is SelectionPolicy.MultiRange.
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.