VintaSoft PDF .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft PDF .NET Plug-in Discussions
public class MyPdfAnnotationComment : Vintasoft.Imaging.Annotation.Comments.Pdf.PdfAnnotationComment
{
public MyPdfAnnotationComment(
Vintasoft.Imaging.Annotation.Comments.Pdf.PdfAnnotationCommentCollection owner,
Vintasoft.Imaging.Pdf.Tree.Annotations.PdfMarkupAnnotation source)
: base(owner, source)
{
}
public override bool IsOpen
{
get
{
if (Annotation.IsHidden)
return false;
return base.IsOpen;
}
set
{
base.IsOpen = value;
}
}
}
public class MyPdfAnnotationCommentCollection : Vintasoft.Imaging.Annotation.Comments.Pdf.PdfAnnotationCommentCollection
{
public MyPdfAnnotationCommentCollection(Vintasoft.Imaging.VintasoftImage image)
: base(image)
{
}
protected override Vintasoft.Imaging.Annotation.Comments.Pdf.PdfAnnotationComment CreateComment(
Vintasoft.Imaging.Annotation.Comments.Pdf.PdfAnnotationCommentCollection owner,
Vintasoft.Imaging.Pdf.Tree.Annotations.PdfMarkupAnnotation source)
{
return new MyPdfAnnotationComment(owner, source);
}
}
public class MyImageCollectionPdfAnnotationCommentController : Vintasoft.Imaging.Annotation.Comments.Pdf.ImageCollectionPdfAnnotationCommentController
{
protected override Vintasoft.Imaging.Annotation.Comments.CommentCollection CreateCommentCollection(Vintasoft.Imaging.VintasoftImage image)
{
return new MyPdfAnnotationCommentCollection(image);
}
}
... ImageViewerCommentController commentController = new ImageViewerCommentController(new ImageCollectionPdfAnnotationCommentController()); _commentVisualTool = new CommentVisualTool(commentController, new CommentControlFactory()); ...to the following code:
... ImageViewerCommentController commentController = new ImageViewerCommentController(new MyImageCollectionPdfAnnotationCommentController()); _commentVisualTool = new CommentVisualTool(commentController, new CommentControlFactory()); ...