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


Glossary Item Box

Sets the custom text in the form to default values.

Syntax

Visual Basic (Declaration) 
Public Overrides Sub SetCustomTextToDefaults() 
Visual Basic (Usage)Copy Code
Dim instance As AdvancedSearchDialog
 
instance.SetCustomTextToDefaults()
C# 
public override void SetCustomTextToDefaults()

Remarks

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

Example

This example customizes the advanced search dialog.
C#Copy Code
FarPoint.Win.Spread.AdvancedSearchDialog sd; 
fpSpread1.SearchWithDialogAdvanced("Test"); 
sd = fpSpread1.SearchDialog; 
sd.SetCustomTextToDefaults(); 
sd.StartSheetIndex = 0; 
sd.EndSheetIndex = 0; 
sd.SearchCellText = true; 
sd.SearchNotes = true; 
sd.SearchTags = true;
Visual BasicCopy Code
Dim sd As FarPoint.Win.Spread.AdvancedSearchDialog
FpSpread1.SearchWithDialogAdvanced("Test")
sd = FpSpread1.SearchDialog
sd.SetCustomTextToDefaults()
sd.StartSheetIndex = 0
sd.EndSheetIndex = 0
sd.SearchCellText = True
sd.SearchNotes = True
sd.SearchTags = True

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.