We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ITextBoxShape - set line to none

Thread ID:





99521 May 25,2011 09:28 AM UTC May 26,2011 09:06 AM UTC ASP.NET Web Forms (Classic) 3
Tags: XlsIO
Marcus Olsson
Asked On May 25, 2011 09:28 AM UTC

How do I hide the border on ITextBoxShape?

I've tried the following, but nothing happens:

ITextBoxShape tbShape = wb.Worksheets[0].TextBoxes.AddTextBox(3, 2, 480, 576);
tbShape.Line.BackColorIndex = ExcelKnownColors.None;
tbShape.Line.ForeColorIndex = ExcelKnownColors.None;

John Bowlin Bosco K [Syncfusion]
Replied On May 25, 2011 01:10 PM UTC

Hi Marcus,

Thank you very much for your interest in Syncfusion Products.

Essential XlsIO can hide the text box border by using the IShapeLineFormat interface, which is used to modify the border. So, to hide the border of the text box, you can use the below code snippet. Please try this at your end and let us know if this helps you.

ITextBoxShape textBox = workbook.Worksheets[0].TextBoxes.AddTextBox(2, 2, 25, 100);
textBox.Line.Visible = false;

To know more about the text box, please navigate to the below link and refer the documentation.

Please let us know if you need any further assistance.

Pauline Bosco.

Marcus Olsson
Replied On May 26, 2011 07:08 AM UTC

Actually, setting Visible to false didn't solve my problem.
The border is still there.

John Bowlin Bosco K [Syncfusion]
Replied On May 26, 2011 09:06 AM UTC

Hi Marcus,

Thank you very much for your update.

By setting the visible property, the border of the text box is hidden in the XlsIO generated xls file and it is not hidden in the XlsIO generated xlsx file. We suspect this issue could be a defect and have forwarded to our development team for further analysis. We deeply regret for the inconvenience caused.

Could you please raise the ticket in the Direct Trac Developer Support System with a simplified issue reproducing sample? So that, we can provide you with the patch for this issue, as well as you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time. We hope you will take advantage of this system as well.

Direct Trac Link:

Please let us know if you need any further assistance.

Pauline Bosco


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon