GrapeCity.Xaml.SpreadSheet.Data
SelectionPolicy Property
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class : SelectionPolicy Property
Gets or sets whether users can select ranges of items.
Syntax
'Declaration
 
Public Property SelectionPolicy As SelectionPolicy
'Usage
 
Dim instance As Worksheet
Dim value As SelectionPolicy
 
instance.SelectionPolicy = value
 
value = instance.SelectionPolicy
public SelectionPolicy SelectionPolicy {get; set;}

Property Value

The SelectionPolicy enumeration that indicates how users can select ranges of items.
Example
This example uses the SelectionPolicy property.
gcSpreadSheet1.Sheets[0].SelectionPolicy = GrapeCity.Xaml.SpreadSheet.Data.SelectionPolicy.Single;
gcSpreadSheet1.Sheets[0].SelectionUnit = GrapeCity.Xaml.SpreadSheet.Data.SelectionUnit.Cell;
GcSpreadSheet1.Sheets(0).SelectionPolicy = GrapeCity.Xaml.SpreadSheet.Data.SelectionPolicy.Single
GcSpreadSheet1.Sheets(0).SelectionUnit = GrapeCity.Xaml.SpreadSheet.Data.SelectionUnit.Cell
See Also

Reference

Worksheet Class
Worksheet Members