GrapeCity.Xaml.SpreadSheet.Data
SelectionUnit Property
Example 


GrapeCity.Xaml.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 uses the SelectionUnit 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