[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Viewer.Win.Viewer.Find

Find Event

Occurs when the Find dialog successfully locates the specified text within the document.

Namespace: GrapeCity.ActiveReports.Viewer.Win
Assembly: MESCIUS.ActiveReports.Viewer.Win.dll
Syntax
public event FindEventHandler Find
Returns
Type Description
FindEventHandler Occurs when the Find dialog successfully locates the specified text within the document.
Remarks

The FindEventArgs associated with this event provides details about the found text, including its location and the context in which it was found.

Examples
public partial class MyForm : Form
{
	private Viewer viewer;
	public MyForm()
	{
		InitializeComponent();
		viewer = new Viewer();

		// Subscribe to the Find event
		viewer.Find += Viewer_Find;

		this.Controls.Add(viewer);
		viewer.Dock = DockStyle.Fill;
	}
}
private void Viewer_Find(object sender, FindEventArgs e)
{
	if (e.Found)
		MessageBox.Show($"Text found on page {e.PageIndex + 1}.", "Search", MessageBoxButtons.OK, MessageBoxIcon.Information);
	else
		MessageBox.Show("Text not found.", "Search", MessageBoxButtons.OK, MessageBoxIcon.Information);
}