GrapeCity.ActiveReports.Document.v11 アセンブリ > GrapeCity.ActiveReports.Document 名前空間 > SectionDocument クラス : Find メソッド |
private void btnFind_Click(object sender, System.EventArgs e) { int i = 0; if (viewer1.Document.Find("Coyote", ref i) == true) { MessageBox.Show ("This document contains the word Coyote."); viewer1.Document.ClearFindTextSelection(); } }
Private Sub btnFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click If Viewer1.Document.Find("Coyote", 0) Then MsgBox("This document contains the word Coyote.") Viewer1.Document.ClearFindTextSelection() End If End Sub