FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > ISheetSelectionModel インタフェース : SelectionUnit プロパティ |
'Declaration Property SelectionUnit As SelectionUnit
'使用法 Dim instance As ISheetSelectionModel Dim value As SelectionUnit instance.SelectionUnit = value value = instance.SelectionUnit
SelectionUnit SelectionUnit {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)