Format Negative Numbers In Parenthesis

Oct 17, 2016 at 6:08 AM
Hello, I am trying to get negative numbers in parenthesis.

for e.g.
10.30 ===> 10.30
-10.30 ===> (10.30)

I tried with below syntax but still not get right format.
ws.Cells[].Style.Numberformat.Format = "(#,##0.00)";

Kindly help me. Thanks.