Excel Range.BorderAround(), граница всегда чернаяC#

Место общения программистов C#
Anonymous
Excel Range.BorderAround(), граница всегда черная

Сообщение Anonymous »

Вот код, который я использую:

Код: Выделить всё

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 я указываю.

Подробнее здесь: https://stackoverflow.com/questions/226 ... ways-black

Вернуться в «C#»