We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Checking cell border


Is there a simple property or API to check if a cell has a border or not?

Thank you.


You may get the Style of the cell and evaluate it using Style.Borders[BorderType.___] attributes to check if a cell has borders or not. Currently, we do not have a simple API for this purpose. However, we can add one property like Style.HasBorders to denote whether there are borders for a style object, so a user may get the cell’s style and check/evaluate it in one go. Please confirm if this API would suit your needs/requirement? After your confirmation, we will log appropriate ticket and work on it.

Yes, that would be perfect. Thank you for the quick reply.


Thanks for your confirmation.

We have logged a ticket with an id “CELLSNET-50747” for your issue/requirements. The ticket is logged as following:
CELLSNET-50747 - Add Style.HasBorders to check whether there are borders for it

We will look into it soon.

Once we have an update on it, we will let you know.


This is to inform you that the issue “CELLSNET-50747” has been resolved now. We added new property for your requirement: Style.HasBorders. The supported version will be included in the next release (Aspose.Cells for .NET v22.4) which is scheduled in the next week of April 2022. You will also be notified when the next version is released.

Very cool. I’ll check it out. Thank you so much.


You are welcome.

The issues you have found earlier (filed as CELLSNET-50747) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi