<κλάση header="doc-nav" aria-label="Πλοήγηση τεκμηρίωσης"> Τεκμηρίωση HotXLS <κλάση nav="doc-links"> Περιεχόμενα Αρχική Επισκόπηση TGridToXLS IXLSWorkbook <κλάση div="nav topic-quick-nav" aria-label="Topic shortcuts"> Αρχική Περιεχόμενα Επισκόπηση

διεπαφή IXLSBorder

<κλάση div="indent">
Μονάδα: lxHandle
<κλάση div="txt"> Αντιπροσωπεύει the border of an object

Περιγραφή

<κλάση div="indent"> <κλάση div="txt"> IXLSRange object have four discrete borders - left, right, top, and bottom - which can be returned individually or as a group. Use the Borders property to return the Borders collection, which contains all four borders and treats the borders as a unit. Use Borders[Index], where index identifies the border, to return a single border

Ιδιότητες

<κλάση div="indent"> <κλάση div="txt"> Colorιδιότητα <κλάση div="txt"> ColorIndexιδιότητα <κλάση div="txt"> LineStyleιδιότητα <κλάση div="txt"> Weightιδιότητα

Μέθοδοι

<κλάση div="indent"> <κλάση div="txt"> SetThemeColorμέθοδος — assign the per-edge border color to one of the 12 Office theme color slots with an optional tint. Honors every edge selector including the compound xlAround / xlInsideVertical / xlInsideHorizontal / xlInsideAll forms (since v2.61.0; compound selectors completed in v2.63.0)

Παράδειγμα

<κλάση div="indent"> <κλάση div="txt"> The following example adds a double border to cell A1 on Worksheet one <κλάση pre="code"> Workbook.Worksheets[1].Range['A1', 'A1'].Borders.LineStyle := xlDouble; <κλάση div="txt"> The following example sets the color of the bottom border of cells A1:G1 <κλάση pre="code"> Workbook.Worksheets[1].Range['A1', 'G1'].Borders[xlEdgeBottom].Color := RGB(255, 0, 0); <κλάση footer="reference-footer">Copyright © 2010-2026 losLab Software