jjzjj

XlLineStyle

全部标签

c# - Excel Range.BorderAround(), 边框总是黑色

这是我使用的代码:rngData.BorderAround(Excel.XlLineStyle.xlContinuous,Microsoft.Office.Interop.Excel.XlBorderWeight.xlThin,Microsoft.Office.Interop.Excel.XlColorIndex.xlColorIndexNone,System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.FromArgb(178,178,178)));无论我提供什么RGB值,边框颜色始终为黑色。 最佳

c# - Excel Range.BorderAround(), 边框总是黑色

这是我使用的代码:rngData.BorderAround(Excel.XlLineStyle.xlContinuous,Microsoft.Office.Interop.Excel.XlBorderWeight.xlThin,Microsoft.Office.Interop.Excel.XlColorIndex.xlColorIndexNone,System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.FromArgb(178,178,178)));无论我提供什么RGB值,边框颜色始终为黑色。 最佳