I am creating comment with following code.
cell.Comment = new WorksheetCellComment()
{
Text = new FormattedString("Some Text"),
};
where cell is WorksheetCell.
With this code i is creating some default Height and Width for the Comment in Excel. I want to change the Height and Width of Comment. How can i achieve that.?
Thanks.
You can do something like this to change the comment's size:
Rectangle commentBounds = cell.Comment.GetBoundsInTwips();commentBounds.Height = 3000;commentBounds.Width = 1500;cell.Comment.SetBoundsInTwips(cell.Worksheet, commentBounds);