Default style of "Reply to Comment"

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

1shadow
User
Posts: 13
Joined: Tue May 21, 2013 7:19 am

Default style of "Reply to Comment"

Post by 1shadow »

Hi there,

I can't seem to find any way how to programmatically (or even by hand in the viewer) change the default appearance of the "Reply To Comment" Tool. Is it even possible? I have only found a way how to change the appearance after selecting the already created reply.

Thanks for any help
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Default style of "Reply to Comment"

Post by Vasyl - PDF-XChange »

Hi, 1shadow.

To change the color of replies for all annot-types:

Code: Select all

int rgbFillColor = RGB(255, 0, 255);
pdfViewer.SetProperty("Commenting.Reply.FColor", rgbFillColor, 0); // it changes the default fill color of reply
To change the current text format of reply text and for text in popup for annotation:

Code: Select all

// a) get active style ID for corresponding annot-type(for rectangle for example):
int curStyleID;
pdfViewer.GetProperty("Tools.Rect.Style", out curStyleID, 0);
// b) customize the default text format for active style:
string stylePath = "Comments.Rect.Styles[#" + styleID + "]"
pdfViewer.SetProperty(stylePath + ".FontSize", 22.0, 0); // 22 pt
pdfViewer.SetProperty(stylePath + ".FontName", "Times New Roman", 0);
pdfViewer.SetProperty(stylePath + ".Bold", "true", 0);
pdfViewer.SetProperty(stylePath + ".Italic", "true", 0);
int rgbBlue = RGB(0,0,255);
pdfViewer.SetProperty(stylePath + ".FColor", rgbBlue, 0); // color of text in popup for annot
HTH
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.