Spread Windows Forms 7.0 Product Documentation
AlternateSearch Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SearchDialog Class : AlternateSearch Property


Glossary Item Box

Gets or sets whether to search down rows first then across columns, which is the alternate way of searching.

Syntax

Visual Basic (Declaration) 
Public Overridable Property AlternateSearch As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SearchDialog
Dim value As Boolean
 
instance.AlternateSearch = value
 
value = instance.AlternateSearch
C# 
public virtual bool AlternateSearch {get; set;}

Property Value

Boolean: true to search down rows and across columns; false to search across columns and down rows

Example

C#Copy Code
fpSpread1.SearchWithDialog("");

fpSpread1.SearchDialog.AlternateSearch = true;

fpSpread1.SearchDialog.CaseSensitive = false;

fpSpread1.SearchDialog.ExactMatch = false;

fpSpread1.SearchDialog.SearchString = "155";

fpSpread1.SearchDialog.SheetIndex = 0;

fpSpread1.SearchDialog.StartColumnIndex = 0;

fpSpread1.SearchDialog.StartRowIndex = 0;

fpSpread1.SearchDialog.UseWildcards = false;
Visual BasicCopy Code
FpSpread1.SearchWithDialog("")

FpSpread1.SearchDialog.AlternateSearch = True

FpSpread1.SearchDialog.CaseSensitive = False

FpSpread1.SearchDialog.ExactMatch = False

FpSpread1.SearchDialog.SearchString = "155"

FpSpread1.SearchDialog.SheetIndex = 0

FpSpread1.SearchDialog.StartColumnIndex = 0

FpSpread1.SearchDialog.StartRowIndex = 0

FpSpread1.SearchDialog.UseWildcards = False

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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