Documentación de HotXLS

Propiedad LineStyle

Devuelve o establece el estilo de línea del borde. Lectura/escritura LongWord

Sintaxis

property LineStyle: LongWord;

Descripción

LineStyle puede ser una de estas constantes XlLineStyle
xlContinuous
xlDash
xlDashDot
xlDashDotDot
xlDot
xlDouble
xlSlantDashDot
xlLineStyleNone

Ejemplo

Este ejemplo añade un borde alrededor del rango A1:C5

Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeTop].LineStyle := xlDot;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeRight].LineStyle := xlDot;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeBottom].LineStyle := xlDot;
Workbook.Sheets[1].Range['A1', 'C5'].Borders[xlEdgeLeft].LineStyle := xlDot;
Este ejemplo es igual al anterior

Workbook.Sheets[1].Range['A1', 'C5'].Borders.LineStyle := xlDot;