[]
        
(Showing Draft Content)

BorderLineStyle

Enum Class BorderLineStyle

java.lang.Object
java.lang.Enum<BorderLineStyle>
com.grapecity.documents.excel.BorderLineStyle
All Implemented Interfaces:
Serializable, Comparable<BorderLineStyle>, Constable

public enum BorderLineStyle extends Enum<BorderLineStyle>
Specifies the line style for the border.

Use this enum with border-related APIs such as IBorder.setLineStyle(BorderLineStyle) to control how a cell or range border is drawn.


 IRange range = worksheet.getRange("A1:B2");
 range.setValue("Test");
 range.getBorders().get(BordersIndex.EdgeBottom).setColor(Color.GetBlue());
 range.getBorders().get(BordersIndex.EdgeBottom).setLineStyle(BorderLineStyle.Thick);
 
  • Enum Constant Details

    • None

      public static final BorderLineStyle None
      Specifies that no border is applied.
    • Hair

      public static final BorderLineStyle Hair
      Specifies a hairline border.
    • DashDotDot

      public static final BorderLineStyle DashDotDot
      Specifies a dash-dot-dot border.
    • DashDot

      public static final BorderLineStyle DashDot
      Specifies a dash dot border.
    • Dotted

      public static final BorderLineStyle Dotted
      Specifies a dotted border.
    • Dashed

      public static final BorderLineStyle Dashed
      Specifies a dashed border.
    • Thin

      public static final BorderLineStyle Thin
      Specifies a thin border line style.
    • MediumDashDotDot

      public static final BorderLineStyle MediumDashDotDot
      Specifies a medium dash-dot-dot border.
    • SlantDashDot

      public static final BorderLineStyle SlantDashDot
      Specifies a slant dash dot border.
    • MediumDashDot

      public static final BorderLineStyle MediumDashDot
      Specifies a medium dash dot border.
    • MediumDashed

      public static final BorderLineStyle MediumDashed
      Specifies a medium dashed border line.
    • Medium

      public static final BorderLineStyle Medium
      Specifies a medium border.
    • Thick

      public static final BorderLineStyle Thick
      Specifies a thick line border.
    • Double

      public static final BorderLineStyle Double
      Specifies a double line border.
  • Method Details

    • values

      public static BorderLineStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BorderLineStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Retrieves the integer value representing the enum constant.
      Returns:
      The ordinal value of the enum constant.
    • forValue

      public static BorderLineStyle forValue(int value)
      Retrieves the enum constant corresponding to the specified integer value.

      Use this method to convert an integer value, such as one obtained from getValue(), back to the matching BorderLineStyle constant.

      Parameters:
      value - The integer value representing the enum constant.
      Returns:
      The BorderLineStyle enum constant that corresponds to the specified value.
      Throws:
      ArrayIndexOutOfBoundsException - if value is outside the range of defined enum values.