Spread Silverlight Documentation
SelectionUnit Property
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : SelectionUnit Property
Gets or sets whether users can select cells, rows, or columns.
Syntax
'Declaration
 
Public Property SelectionUnit As SelectionUnit
'Usage
 
Dim instance As Worksheet
Dim value As SelectionUnit
 
instance.SelectionUnit = value
 
value = instance.SelectionUnit
public SelectionUnit SelectionUnit {get; set;}

Property Value

The SelectionUnit enumeration that specifies the selection type.
Example
This example sets the SelectionUnit property.
gcSpreadSheet1.Sheets[0].SelectionPolicy = GrapeCity.Windows.SpreadSheet.Data.SelectionPolicy.Single;
gcSpreadSheet1.Sheets[0].SelectionUnit = GrapeCity.Windows.SpreadSheet.Data.SelectionUnit.Cell;
GcSpreadSheet1.Sheets(0).SelectionPolicy = GrapeCity.Windows.SpreadSheet.Data.SelectionPolicy.Single
GcSpreadSheet1.Sheets(0).SelectionUnit = GrapeCity.Windows.SpreadSheet.Data.SelectionUnit.Cell
See Also

Reference

Worksheet Class
Worksheet Members