Seeting Background colour of Area Annotation Tool

Hii ,


First of all thanx for helping me out issues. I need a help again .I want to set background color of area annotation tool i.e if someone draw an area in a pdf then that selected area must be colored .Please help me .

Hello,


Thank you for the question. Yes, you can set background color for this tool by using " .AreaToolOptions()" parameter of the widget.

For example:
<% DrawingOptions opt = new DrawingOptions();
opt.BrushColor = 24;
%>
<%= new WidgetFactory()
.Annotation()
.ShowFileExplorer(true)
.AccessRights(Groupdocs.Common.AnnotationReviewerRights.None)
.ElementId(“annotation-widget”)
.EnableTextSelection(true)
.Tools(AnnotationTools.All)
.AreaToolOptions(opt)
.FilePath(“Quick_Start_Guide_To_Using_GroupDocs.pdf”)
.Width(600)
.Height(800)
.ToHtmlString() %>

Then you should reload the web page and create a new “area tool” annotation.

Thank you

Thnx for quick response.

Hii ,
Can you please provide me BrushColor Value for Yellow means i want to set background color of area annotation in yellow.

Hi,


To set background color to yellow please use 16776960 as a value for the BrushColor property.

For example:
DrawingOptions opt = new DrawingOptions();
opt.BrushColor = 16776960;

Thank you.

Thnx for reply.