Documentazione HotXLS

IXLSBorder Interface

Unità: lxHandle
Rappresenta the border of an object

Descrizione

IXLSRange object have four discrete borders - left, right, top, e bottom - which can be returned individually o as a group. Usa the Borders proprietà to return the Borders collection, which contains all four borders e treats the borders as a unit. Usa Borders[Index], where index identifies the border, to return a single border

Proprietà

Metodi

SetThemeColormetodo — assegna il colore del bordo per singolo lato a uno dei 12 slot di colore del tema Office con una tinta facoltativa. Onora ogni selettore di lato, incluse le forme composte xlAround / xlInsideVertical / xlInsideHorizontal / xlInsideAll (dalla v2.61.0; selettori composti completati nella v2.63.0)

Esempio

L'esempio seguente adds a double border to cell A1 on Worksheet one
Workbook.Worksheets[1].Range['A1', 'A1'].Borders.LineStyle := xlDouble;
L'esempio seguente sets the color of the bottom border of cells A1:G1
Workbook.Worksheets[1].Range['A1', 'G1'].Borders[xlEdgeBottom].Color := RGB(255, 0, 0);