How to define border type

hai

how to define border type in defining borders to excel sheeet though vb.

thanks in advance

This message was posted using Page2Forum from Adding Borders to Cells - Aspose.Cells for .NET and Java.

@somu,

Thank you for considering Aspose.

You can use the pre-defined BorderType enumeration as per your requirement. Please see the following documentation link in this regard,

Cells Formatting

Please do let us know if you need any further details, we will be happy to help you out.

Thank You & Best Regards,

hai aslam

thank u for reply.

but i already see that url. In that posting i dont understand how to declare the border type enum and cellbordertype enum.

so please let me know how to declare those enum.

Thanks&Regards

Hi,

Thank you for considering Aspose.

Well, I am not sure about your requirement here. Following is the VB.NET code for setting the border line for a cell.

'Setting the line style of the top border

cell.Style.Borders(BorderType.TopBorder).LineStyle = CellBorderType.Thick

BorderType enum and CellBorderType enum are pre-defined enums and you don't need to declare them in your code. You can directly use them when using Aspose.Cells dll.

Please provide us complete details about your requirement / issue and we will look into it soon.

Thank You & Best Regards,