HotXLS Docs

الخاصية LineStyle

تُرجع أو تعين نمط الخط (line) للحدود. قراءة/كتابة LongWord

بناء الجملة

property LineStyle: LongWord;

الوصف

يمكن أن تكون LineStyle واحدة من ثوابت XlLineStyle هذه
xlContinuous
xlDash
xlDashDot
xlDashDotDot
xlDot
xlDouble
xlSlantDashDot
xlLineStyleNone

مثال

يضع هذا المثال حدودًا حول النطاق 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;
هذا المثال يطابق المثال السابق

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