[]
        
(Showing Draft Content)

LineDashStyle

Enum Class LineDashStyle

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

public enum LineDashStyle extends Enum<LineDashStyle>
Specifies the dash style for a line.

Use this enumeration with ILineFormat.setDashStyle(LineDashStyle) to control how a shape or connector line is rendered, such as solid, dotted, or dashed patterns.


 IShape connector = worksheet.getShapes().addConnector(ConnectorType.Straight, 10, 10, 200, 100);
 ILineFormat line = connector.getLine();
 line.setDashStyle(LineDashStyle.DashDot);
 
  • Enum Constant Details

    • Solid

      public static final LineDashStyle Solid
      Specifies a solid, unbroken line.
    • SquareDot

      public static final LineDashStyle SquareDot
      Specifies the line is made up of square dots.
    • RoundDot

      public static final LineDashStyle RoundDot
      Specifies the line is made up of round dots.
    • Dash

      public static final LineDashStyle Dash
      Specifies the line consists of only dashes.
    • DashDot

      public static final LineDashStyle DashDot
      Specifies the line is a dash-dot pattern.
    • DashDotDot

      public static final LineDashStyle DashDotDot
      Specifies the line is a dash-dot-dot pattern.
    • LongDash

      public static final LineDashStyle LongDash
      Specifies the line consists of long dashes.
    • LongDashDot

      public static final LineDashStyle LongDashDot
      Specifies the line is a long dash-dot pattern.
    • LongDashDotDot

      public static final LineDashStyle LongDashDotDot
      Specifies that the line uses a long dash-dot-dot pattern.
    • SysDash

      public static final LineDashStyle SysDash
      Specifies the line is a long system-dash pattern.
    • SysDot

      public static final LineDashStyle SysDot
      Specifies the line is a long system-dot pattern.
    • SysDashDot

      public static final LineDashStyle SysDashDot
      Specifies that the line uses a long system dash-dot pattern.
    • Mixed

      public static final LineDashStyle Mixed
      For special shapes use only.
  • Method Details

    • values

      public static LineDashStyle[] 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 LineDashStyle 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