作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何在 Excel 工作表的单元格内找到粗体文本?我正在使用 C#、OLEDB 和 ADO.NET 读取 xls 文件,但我没有解决如何解决我的任务。我需要使用 Iterop.Excel 吗?
最佳答案
是的,您将需要 Interop.Excel
using Microsoft.Office.Interop.Excel;
int FindFirstBold(Range cell)
{
for (int index = 1; index <= cell.Text.ToString().Length; index++)
{
Characters ch = cell.get_Characters(index, 1);
bool bold = (bool) ch.Font.Bold;
if(bold) return index;
}
return 0;
}
关于c# - 使用 C# 在 Excel 工作表中查找粗体文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3122741/
下面是我用来制作 1px 文本描边轮廓的代码。但是如何使轮廓变粗呢?如果我只是用“5px”替换所有“1px”,结果看起来很疯狂。 HTML Hello! CSS .element { color:
我是一名优秀的程序员,十分优秀!