Excel工作表列标题类型 [英] Excel sheet column header type

查看:78
本文介绍了Excel工作表列标题类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Microsoft.Office.Interop.Excel库获取Excel工作表列标题单元格类型(例如:数字,日期,货币,时间等)?

How to get the excel sheet column header cell type(Ex:Numeric,date,currency,time...etc) by using Microsoft.Office.Interop.Excel library?

推荐答案

尝试使用Microsoft.Office.Interop.Excel.XlColumnDataType枚举或使用Range接口的NumberFormat属性。
Try using Microsoft.Office.Interop.Excel.XlColumnDataType enumeration or use NumberFormat property of the Range Interface.


这篇关于Excel工作表列标题类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆