MESCIUS SPREAD for Windows Forms 15.0J
SelectionUnit プロパティ (ISheetSelectionModel)
使用例 

ユーザーがセル、行、または列を選択できるかどうかを表す値を取得または設定します。
構文
'宣言
 
Property SelectionUnit As SelectionUnit
SelectionUnit SelectionUnit {get; set;}

プロパティ値

選択の単位を決定するSelectionUnit設定
使用例
次のサンプルコードは、ユーザーが何を選択できるかを指定します。
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)
参照

ISheetSelectionModel インターフェース
ISheetSelectionModel メンバ

 

 


© MESCIUS inc. All rights reserved.