←Select platform

BorderStyle Enumeration

Summary

Defines a set of styles that can be applied to the borders of cells. The supported border styles range from very basic to more complex patterns, resulting in an extensive set of visual presentation options.

Syntax

C#
C++/CLI
Python
public enum BorderStyle 
public: 
   enum class BorderStyle sealed 
class BorderStyle(Enum): 
   None = 0 
   Thin = 1 
   Medium = 2 
   Dashed = 3 
   Dotted = 4 
   Thick = 5 
   DoubleLines = 6 
   Hair = 7 
   MediumDashed = 8 
   DashDot = 9 
   MediumDashDot = 10 
   DashDotDot = 11 
   MediumDashDotDot = 12 
   SlantedDashDot = 13 

Members
Value Member Description
0 None No border.
1 Thin A thin, single line border.
2 Medium Thicker than Thin, a medium line border.
3 Dashed A border consisting of dashes.
4 Dotted A border comprising of dots.
5 Thick A thick line border.
6 DoubleLines Two parallel lines.
7 Hair A very fine, hairline border.
8 MediumDashed A dashed line that's thicker than the Dashed style.
9 DashDot Alternating dashes and dots.
10 MediumDashDot A DashDot pattern with a medium thickness.
11 DashDotDot A pattern of a dash followed by two dots.
12 MediumDashDotDot A DashDotDot pattern with a medium thickness.
13 SlantedDashDot Dashes and dots placed in a slanted manner.

Remarks

The BorderStyle enumeration allows for detailed customization of cell borders. The styles range from simple (Thin, Medium, Thick) to more complex patterns (DashDot, MediumDashDot, etc.), providing flexibility for different aesthetic and functional requirements. For instance, the None style is useful for removing borders or ensuring that no border is applied.

Requirements

Target Platforms

See Also

Leadtools.Document.LEADOffice.Sheet Namespace

Help Version 23.0.2024.4.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.LEADOffice Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.