MESCIUS SPREAD for Windows Forms 15.0J
CanFocus フィールド
使用例 

シートスタイルのCanFocus設定を表します。
構文
'宣言
 
Public Shared ReadOnly CanFocus As SheetStyleProperty
public static readonly SheetStyleProperty CanFocus
使用例
次のサンプル コードは、シートのセルにフォーカスを設定できるかどうかを設定します。
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.CanFocus = false; 
si.NoteStyle = NoteStyle.StickyNote; 
si.TabStop = false; 
si.VisualStyles = FarPoint.Win.VisualStyles.On; 
fpSpread1.ActiveSheet.DefaultStyle = si; 
bool b = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.CanFocus); 
if (b == true) { 
     MessageBox.Show("No focus allowed"); 
}
Dim si As New FarPoint.Win.Spread.StyleInfo
si.CanFocus = False
si.NoteStyle = NoteStyle.StickyNote
si.TabStop = False
si.VisualStyles = FarPoint.Win.VisualStyles.On
FpSpread1.ActiveSheet.DefaultStyle = si
Dim b As Boolean = si.IsPropertySet(FarPoint.Win.Spread.SheetStyleProperty.CanFocus)
If b = True Then
    MessageBox.Show("No focus allowed")
End If
参照

SheetStyleProperty クラス
SheetStyleProperty メンバ

 

 


© MESCIUS inc. All rights reserved.