HotXLS-dokumentation

Color egenskap

Returnerar or sets the color of the border. Use the RGB function to create a color value. Read/write LongWord
Setting Color på BIFF8-vägen skriver exakt RGB via XFExt-sidoposten $087D för rik färg på motsvarande kantplats (Excel 2007+ öppnar arbetsboken igen med den bokstavliga RGB-färgen) och ett bäst matchande indexerat icv på XF-tråden (läsare i Excel 97-2003 ser 56-färgspalettsapproximationen). Vid återläsning används samma XFExt-sidotabell. Sammansatta väljare (xlAround, xlInsideVertical, xlInsideHorizontal, xlInsideAll) register one XFExt slot per physical edge in a single cell-loop pass
For theme-based addressing use the companion SetThemeColor -metod (även tillgänglig på varje kantväljare), som kodar Office-tema idx + tint i samma XFExt-plats så att Excel tonar om kantlinjen när arbetsbokens temapalett ändras. Se Classic XLS color model for the overall RGB / index / theme decision tree

Syntax

property Color: LongWord;

Exempel

This example sets the color of the top edge border of A1:D1 range
Workbook.Sheets[1].Range['A1', 'D1'].Borders[xlEdgeTop].Color := RGB(0, 255, 0);