FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SearchDialog クラス : OnStringNotFound メソッド |
'Declaration Public Overridable Function OnStringNotFound( _ ByVal e As CancelEventArgs _ ) As Boolean
'使用法 Dim instance As SearchDialog Dim e As CancelEventArgs Dim value As Boolean value = instance.OnStringNotFound(e)
public virtual bool OnStringNotFound( CancelEventArgs e )
FarPoint.Win.Spread.SearchDialog sd; fpSpread1.SearchWithDialog("Test"); sd = fpSpread1.SearchDialog; sd.StringNotFound += new CancelEventHandler(sdStringNotFound); void sdStringNotFound(object sender, CancelEventArgs e) { MessageBox.Show("The string was not found."); }
Dim WithEvents sd As FarPoint.Win.Spread.SearchDialog FpSpread1.SearchWithDialog("Test") sd = FpSpread1.SearchDialog sd.SetCustomTextToDefaults() Private Sub sdStringNotFound(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles sd.StringNotFound MessageBox.Show("The string was not found.") End Sub