GrapeCity.Xaml.SpreadSheet.Data
SelectionPolicy Enumeration
Example Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace : SelectionPolicy Enumeration
Specifies how users can select items in the control.
Syntax
'Declaration
 
Public Enum SelectionPolicy 
   Inherits System.Enum
'Usage
 
Dim instance As SelectionPolicy
public enum SelectionPolicy : System.Enum 
Members
MemberDescription
MultiRange [2] Allows users to select single items and ranges of items, including multiple ranges.
Range [1] Allows users to select single items and ranges of items, but not multiple ranges.
Single [0] Allows users to only select single items.
Example
This example uses the SelectionPolicy enumeration.
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
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Xaml.SpreadSheet.Data.SelectionPolicy

See Also

Reference

GrapeCity.Xaml.SpreadSheet.Data Namespace