Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / Worksheet Class / SelectionPolicy Property
Example


In This Topic
    SelectionPolicy Property
    In This Topic
    Gets or sets whether users can select ranges of items.
    Syntax
    'Declaration
     
    Public Property SelectionPolicy As SelectionPolicy
    'Usage
     
    Dim instance As Worksheet
    Dim value As SelectionPolicy
     
    instance.SelectionPolicy = value
     
    value = instance.SelectionPolicy
    public SelectionPolicy SelectionPolicy {get; set;}

    Property Value

    The SelectionPolicy enumeration that indicates how users can select ranges of items.
    Example
    This example uses the SelectionPolicy 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
    Requirements

    Target Platforms: Windows Server 2012, Windows RT

    See Also