Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / SelectionPolicy Enumeration
Example Example


In This Topic
    SelectionPolicy Enumeration
    In This Topic
    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