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.
Unfortunately, activation email could not send to your email. Please try again.

excel property

Thread ID:

Created:

Updated:

Platform:

Replies:

51778 Nov 14,2006 03:45 AM Nov 14,2006 06:02 AM Windows Forms 1
loading
Tags: XlsIO
Anna Srinivasan
Asked On November 14, 2006 03:45 AM

Hi,
In excel sheet I would like to set row level and column level property. How do I achieve those properties?

Example: 1) Delete whole column from the sheet
2) Set same font size to whole row.

Regards,
Anna

Melba Winshia [Syncfusion]
Replied On November 14, 2006 06:02 AM

Hi Anna,

1) Use the following code snippets to delete whole column from the sheet.

[C#]

//Delete the entire row.
sheet.Range["A1"].EntireColumn.Clear();

2) Use the following code snippets to set same font size to whole row.

[c#]

//Set same font size to whole row.
sheet.Range["B1"].EntireRow.CellStyle.Font.Size=20;
sheet.Range["B1"].EntireRow.CellStyle.Font.FontName = "Times New Roman";

Here is the sample for your reference:

EntireRow.zip


Please take a look at the sample above and let me know if you have any other questions.

Thanks,
Melba



CONFIRMATION

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.

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.

;