PowerTools SPREAD for Windows Forms 10.0J
ResetNoteStyle メソッド (NamedStyle)


セルのメモのスタイルをデフォルト設定(未設定状態)にリセットします。
構文
'Declaration
 
Public Overrides Sub ResetNoteStyle() 
'使用法
 
Dim instance As NamedStyle
 
instance.ResetNoteStyle()
public override void ResetNoteStyle()
次のサンプルコードは、DefaultStyleのメモスタイルをリセットします。
FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle("NoteStyle", "DataAreaDefault");

ns.NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote;
fpSpread1.NamedStyles.Add(ns);
fpSpread1.ActiveSheet.DefaultStyle = ns;
fpSpread1.ActiveSheet.SetNote(0, 0, "Head of Development");

private void button1Click(object sender, System.EventArgs e)
{
      fpSpread1.ResumeLayout(True);
      ns.ResetNoteStyle();
}
Dim ns As New FarPoint.Win.Spread.NamedStyle("NoteStyle", "DataAreaDefault")

ns.NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote
FpSpread1.NamedStyles.Add(ns)
FpSpread1.ActiveSheet.DefaultStyle = ns
FpSpread1.ActiveSheet.SetNote(0, 0, "Head of Development")

Private Sub Button1Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      FpSpread1.ResumeLayout(True)
      ns.ResetNoteStyle()
End Sub
参照

NamedStyle クラス
NamedStyle メンバ
NoteStyle プロパティ

 

 


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