Represents a comment on page which was imported from PDF file.
The following example shows how to collect comments from opened project.
//find all comment objects in project
DMObjectsFinder oFinder = new DMObjectsFinder(m_oTestProject);
Comment[] arrComments = oFinder.GetStorableObjects(null).OfType<Comment>().ToArray();
//Work on all found comments
foreach (Comment oComment in arrComments)
{
Console.WriteLine("--- New comment found ---\n");
//Write to console needed information about comment
Console.WriteLine(
"Author: {0}\nContent: {1}\nAnswer: {2}\n Page name: {3}\n",
oComment.Author,
oComment.Contents.GetAsString(),
oComment.Answer,
oComment.Page.Name);
//change the state of comment
oComment.ReviewState = Comment.Enums.ReviewStateType.Accepted;
}