PowerTools SPREAD for Windows Forms 10.0J
SelectionUnit プロパティ (DefaultSheetSelectionModel)


ユーザーがセル、行、または列を選択できるかどうかを表す値を取得または設定します。
構文
'Declaration
 
Public Overrides Property SelectionUnit As SelectionUnit
'使用法
 
Dim instance As DefaultSheetSelectionModel
Dim value As SelectionUnit
 
instance.SelectionUnit = value
 
value = instance.SelectionUnit
public override SelectionUnit SelectionUnit {get; set;}

プロパティ値

選択の単位を決定するSelectionUnit設定
次のサンプルコードは、ユーザーがセル、行、列、またはそのすべてを選択できるかどうかを指定します。
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 | FarPoint.Win.Spread.Model.SelectionUnit.Row;
Dim defselModel As New FarPoint.Win.Spread.Model.DefaultSheetSelectionModel()
FpSpread1.ActiveSheet.Models.Selection = defselModel
defselModel.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Column Or FarPoint.Win.Spread.Model.SelectionUnit.Row
参照

DefaultSheetSelectionModel クラス
DefaultSheetSelectionModel メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.