PowerTools SPREAD for Windows Forms 8.0J
Reset メソッド (StyleInfo)


StyleInfoオブジェクトのすべてのスタイル設定を デフォルト設定にリセットします。
構文
'Declaration
 
Public Overridable Sub Reset() 
'使用法
 
Dim instance As StyleInfo
 
instance.Reset()
public virtual void Reset()
解説
このメソッドは、スタイルに関連したすべてのプロパティをデフォルト値にリセットします。
例
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
DialogResult dlg;
si.BackColor = Color.Yellow;
fpSpread1.ActiveSheet.DefaultStyle = si;
dlg = MessageBox.Show("Reset the properties?");
if (dlg == DialogResult.OK)
{
si.Reset();
fpSpread1.ActiveSheet.DefaultStyle = si;
}
Dim si As New FarPoint.Win.Spread.StyleInfo
Dim dlg As DialogResult
si.BackColor = Color.Yellow
FpSpread1.ActiveSheet.DefaultStyle = si
dlg = MessageBox.Show("Reset the properties?")
If dlg = DialogResult.OK Then
si.Reset()
FpSpread1.ActiveSheet.DefaultStyle = si
End If
参照

StyleInfo クラス
StyleInfo メンバ

 

 


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