PdfViewer.ClearSearchHighlights

Clear all the highlights in the document.

public void ClearSearchHighlights()
Sub ClearSearchHighlights()

Licensing Info

This method is a DynamicPDF Viewer feature. One of the following is required for non-evaluation usage:

Examples

The following example will show how to clear all the highlights from the document.

Imports System
Imports System.Windows.Forms
Imports ceTe.DynamicPDF.Viewer

Public Class Form1
    Inherits System.Windows.Forms.Form

    Private MyPdfViewer As PdfViewer

    Sub New()
        InitializeComponent()
    End Sub

    Private Sub InitializeComponent()
        Me.MyPdfViewer = New PdfViewer()
        Me.Controls.Add(MyPdfViewer)
    End Sub

    Shared Sub Main()
        Application.Run(New Form1())
    End Sub			
    
     Private Sub ClearHighlights()
        ' Open document in viewer.
        MyPdfViewer.Open("C:\MyDocument.pdf")

        ' Clear all the highlights.
        MyPdfViewer.ClearSearchHighlights()       
    End Sub

End Class
using System;
using System.Windows.Forms;
using ceTe.DynamicPDF.Viewer;

namespace DynamicPDFViewerDemo
{
    public class Form1 : Form
    {
        private ceTe.DynamicPDF.Viewer.PdfViewer dpdfViewer;

        public Form1()
        {
            InitializeComponent();
        }

        [STAThread]
        static void Main()
        {
            Application.Run(new Form1());
        }						                				
							
        private void InitializeComponent()
        {
            this.dpdfViewer = new PdfViewer();
            this.Controls.Add(dpdfViewer);
        }

        private void ClearHighlights()
        {
            // Open document in viewer.
            Open(@"C:\MyDocument.pdf");

            // Clear all the highlights.
            ClearSearchHighlights();
        }
    }
}

See Also

PdfViewer
ceTe.DynamicPDF.Viewer

In this topic