PowerTools SPREAD for Windows Forms 8.0J
SetCustomTextToDefaults メソッド (SearchDialog)


デフォルト値のカスタムテキストをフォームに設定します。
構文
'Declaration
 
Public Overridable Sub SetCustomTextToDefaults() 
'使用法
 
Dim instance As SearchDialog
 
instance.SetCustomTextToDefaults()
public virtual void SetCustomTextToDefaults()
解説
このメソッドは、詳細検索フォームのカスタムテキストをデフォルト値にリセットします。
次のサンプルコードは、カスタムテキストを設定し、ボタンがクリックされたときにそのテキストをデフォルト値にリセットします。次のサンプル コードは、ダイアログのカスタム テキストをデフォルトに設定します。
fpSpread1.SearchWithDialog("155");

fpSpread1.SearchDialog.SetCustomText("Searching For", "Case Does not Matter", "Does not Need To Be Exact", "Use Other Search
Method", "Wildcards Or Not", "Next", "New Search", "Bye-Bye", "Didn't Find It");



private void button2_Click(object sender, System.EventArgs e)

{

fpSpread1.SearchDialog.SetCustomTextToDefaults();

}
FpSpread1.SearchWithDialog("155")

FpSpread1.SearchDialog.SetCustomText("Searching For", "Case Does not Matter", "Does not Need To Be Exact", "Use Other Search
Method", "Wildcards Or Not", "Next", "New Search", "Bye-Bye", "Didn't Find It")



Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
FpSpread1.SearchDialog.SetCustomTextToDefaults()

End Sub

FarPoint.Win.Spread.SearchDialog sd;
fpSpread1.SearchWithDialog("Test");
sd = fpSpread1.SearchDialog;
sd.StringNotFound += new CancelEventHandler(sdStringNotFound);
sd.SetCustomTextToDefaults();
Dim WithEvents sd As FarPoint.Win.Spread.SearchDialog
FpSpread1.SearchWithDialog("Test")
sd = FpSpread1.SearchDialog
sd.SetCustomTextToDefaults()
参照

SearchDialog クラス
SearchDialog メンバ
SetCustomText メソッド

 

 


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