Spread Windows Forms 6.0 Product Documentation
SetCustomTextToDefaults Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SearchDialog Class : SetCustomTextToDefaults Method


Glossary Item Box

Sets the custom text in the form to default values.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub SetCustomTextToDefaults() 
Visual Basic (Usage)Copy Code
Dim instance As SearchDialog
 
instance.SetCustomTextToDefaults()
C# 
public virtual void SetCustomTextToDefaults()

Remarks

This method resets the custom text in the advanced search form to default values.

Example

This example sets the custom text then resets it to the default values when a button is clicked.This example sets the custom text of the dialog back to the defaults.
C#Copy Code
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();

}
Visual BasicCopy Code
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

C#Copy Code
FarPoint.Win.Spread.SearchDialog sd;
fpSpread1.SearchWithDialog("Test");
sd = fpSpread1.SearchDialog;
sd.StringNotFound += new CancelEventHandler(sdStringNotFound);
sd.SetCustomTextToDefaults();
Visual BasicCopy Code
Dim WithEvents sd As FarPoint.Win.Spread.SearchDialog
FpSpread1.SearchWithDialog("Test")
sd = FpSpread1.SearchDialog
sd.SetCustomTextToDefaults()

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.