To simplify always having to type the namespace Microsoft.Interop.Excel, an alias (Excel) was created . See this article for more detail. Application level constants are available via Intellisense just under the Excel alias
C#
objWorksheet.Range["A1","B3"].AutoFormat(Excel.XlRangeAutoFormat .xlRangeAutoFormatClassic2);
No comments:
Post a Comment