Spread WPF Documentation
SelectionUnit Property
Example 


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
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.