FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > ISheetSelectionModel Interface : SelectionPolicy Property |
'Declaration Property SelectionPolicy As SelectionPolicy
'Usage Dim instance As ISheetSelectionModel Dim value As SelectionPolicy instance.SelectionPolicy = value value = instance.SelectionPolicy
SelectionPolicy SelectionPolicy {get; set;}
FarPoint.Win.Spread.Model.ISheetSelectionModel sel; sel = (FarPoint.Win.Spread.Model.ISheetSelectionModel)fpSpread1.ActiveSheet.Models.Selection; sel.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.Single; sel.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Column; MessageBox.Show("You are only able to select columns. Try to select a row or the whole sheet", "SelectionPolicy/Unit", MessageBoxButtons.OK);
Dim sel As FarPoint.Win.Spread.Model.ISheetSelectionModel sel = FpSpread1.ActiveSheet.Models.Selection sel.SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.Single sel.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Column MessageBox.Show("You are only able to select columns. Try to select a row or the whole sheet", "SelectionPolicy/Unit", MessageBoxButtons.OK)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8