PowerTools SPREAD for Windows Forms 8.0J
AllowEditorReservedLocations プロパティ (FpSpread)


セルエディタによるマウス位置の予約を許可するかどうかを取得または設定します。
構文
'Declaration
 
Public Property AllowEditorReservedLocations As Boolean
'使用法
 
Dim instance As FpSpread
Dim value As Boolean
 
instance.AllowEditorReservedLocations = value
 
value = instance.AllowEditorReservedLocations
public bool AllowEditorReservedLocations {get; set;}
解説
AllowEditorReservedLocationsプロパティをFalseに設定すると、セルエディタのセルの部分にカスタムカーソルを表示できなくなります。また、これらのセルの部分をシングルクリックして編集モードに入ることも禁じられます。ボタンセルとコンボセル、およびドロップダウンボタンを含むセルはすぐには編集モードになりません。これらのセルは、マウスで選択する際、ボタンのない選択可能なセルと同じように扱われます。
次のサンプルコードは、ボタンセルの上にテキストチップを表示します。
private void Form1_Load(object sender, EventArgs e)
        {
           fpSpread1.AllowEditorReservedLocations = false;
fpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Fixed;
FarPoint.Win.Spread.CellType.ButtonCellType btest = new FarPoint.Win.Spread.CellType.ButtonCellType();
btest.Text = "This is a TEST";
fpSpread1.Sheets[0].Cells[1, 0].CellType = btest;
        
        }

private void fpSpread1_TextTipFetch(object sender, FarPoint.Win.Spread.TextTipFetchEventArgs e)
        {
            e.ShowTip = true;
            e.TipText = "test";
        }
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FpSpread1.AllowEditorReservedLocations = False
FpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Fixed
Dim btest As New FarPoint.Win.Spread.CellType.ButtonCellType
btest.Text = "This is a TEST"
FpSpread1.Sheets(0).Cells(1, 0).CellType = btest
End Sub
  
Private Sub FpSpread1_TextTipFetch(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.TextTipFetchEventArgs) Handles FpSpread1.TextTipFetch
        e.ShowTip = True
        e.TipText = "test"
    End Sub
End Class
参照

FpSpread クラス
FpSpread メンバ

 

 


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