Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView.DocumentModels Class / Selection Property

In This Topic
    Selection Property
    In This Topic
    Gets or sets the selection model.
    Public Property Selection As ISheetSelectionModel
    Dim instance As SheetView.DocumentModels
    Dim value As ISheetSelectionModel
    instance.Selection = value
    value = instance.Selection
    public ISheetSelectionModel Selection {get; set;}

    Property Value

    ISheetSelectionModel object containing the selection model
    Model is not specified (or specified value is null)
    This example adds a selection to the active sheet.
    FarPoint.Win.Spread.SheetView.DocumentModels dm = new FarPoint.Win.Spread.SheetView.DocumentModels();
    dm = fpSpread1.ActiveSheet.Models;
    dm.Selection.AddSelection(0, 0, 2, 2);
    Dim dm As New FarPoint.Win.Spread.SheetView.DocumentModels()
    dm = FpSpread1.ActiveSheet.Models
    dm.Selection.AddSelection(0, 0, 2, 2)
    See Also