ReportViewer.Find 方法
在報表中搜尋指定的文字字串。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
Public Function Find ( _
searchString As String, _
startPage As Integer _
) As Integer
'用途
Dim instance As ReportViewer
Dim searchString As String
Dim startPage As Integer
Dim returnValue As Integer
returnValue = instance.Find(searchString, _
startPage)
public int Find(
string searchString,
int startPage
)
public:
int Find(
String^ searchString,
int startPage
)
member Find :
searchString:string *
startPage:int -> int
public function Find(
searchString : String,
startPage : int
) : int
參數
- searchString
型別:System.String
搜尋字串。
- startPage
型別:System.Int32
開始搜尋的頁碼。
傳回值
型別:System.Int32
包含找到搜尋字串之頁碼的 integer 值,如果找不到搜尋字串,便傳回 0。