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


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

プロパティ値

選択の単位を決定するSelectionUnit設定
次のサンプルコードは、ユーザーがセル、行、または列を選択できるかどうかを指定します。
FarPoint.Win.Spread.Model.BaseSheetSelectionModel selModel;
selModel = (FarPoint.Win.Spread.Model.BaseSheetSelectionModel)fpSpread1.ActiveSheet.Models.Selection;
selModel.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Cell | FarPoint.Win.Spread.Model.SelectionUnit.Row;
Dim selModel As FarPoint.Win.Spread.Model.BaseSheetSelectionModel
selModel = FpSpread1.ActiveSheet.Models.Selection
selModel.SelectionUnit = FarPoint.Win.Spread.Model.SelectionUnit.Column Or FarPoint.Win.Spread.Model.SelectionUnit.Row
参照

BaseSheetSelectionModel クラス
BaseSheetSelectionModel メンバ

 

 


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