protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _isEditingSub.Dispose();
                _containsAnnotationsForCurrentPage.Dispose();
                AnnotationTools.Dispose();

                _isEditingSub = null;
                _containsAnnotationsForCurrentPage = null;
                AnnotationTools = null;
            }
            base.Dispose(disposing);
        }
 /// <summary>
 /// Sets annotation tools allowed for the application
 /// </summary>
 /// <param name="tools">A combination of annotation tools</param>
 /// <returns>An instance of the widget object</returns>
 public AnnotationWidget Tools(AnnotationTools tools)
 {
     _options.Tools = tools;
     return(this);
 }
 /// <summary>
 /// Sets annotation tools allowed for the application
 /// </summary>
 /// <param name="tools">A combination of annotation tools</param>
 /// <returns>An instance of the widget object</returns>
 public AnnotationWidget Tools(AnnotationTools tools)
 {
     _options.Tools = tools;
     return this;
 }