我发现一些代码使用了
Microsoft.Office.Interop.Excel.Worksheet.Cells[x,y]
的Style属性,但在我的Visual Studio代码编辑器中将其视为对象:Workbook wb = new Application.Workbooks.Add(XlWBATemplate.xlWBATWorksheet);
Worksheet ws = wb.Sheets[1];
ws.Cells[x,y] is simply treated as an object so how can I use its Style property?
我正在使用Microsoft Excel 15.0对象库(与Microsoft Office 2013一起使用)。这会有影响吗?
请问您能否向我解释一下这个问题?谢谢。
dynamic
。 - CodesInChaos