FarPoint.Win.Spread
SelectionUnit Enumeration
Example  See Also 
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace : SelectionUnit Enumeration


Specifies the smallest unit users or the application can select.

Syntax

Visual Basic (Declaration) 
Public Enum SelectionUnit 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As SelectionUnit
C# 
public enum SelectionUnit : Enum 

Members

MemberDescription
Cell [0] Indicates that the smallest unit that can be selected is a cell
Row [1] Indicates that the smallest unit that can be selected is a row
Column [2] Indicates that the smallest unit that can be selected is a column

Example

This example specifies that the smallest unit that can be selected is a cell.
C#Copy Code
FarPoint.Win.Spread.Model.DefaultSheetSelectionModel defselModel = new FarPoint.Win.Spread.Model.DefaultSheetSelectionModel();
fpSpread1.ActiveSheet.Models.Selection = defselModel;
defselModel.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Cell;
Visual BasicCopy Code
Dim defselModel As New FarPoint.Win.Spread.Model.DefaultSheetSelectionModel()
FpSpread1.ActiveSheet.Models.Selection = defselModel
defselModel.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Cell

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.Model.SelectionUnit

See Also