com.aspose.words

Class LineStyle

  • java.lang.Object
    • com.aspose.words.LineStyle
public class LineStyle 
extends java.lang.Object

Utility class containing constants. Specifies line style of a Border.

Example:

Inserts a String surrounded by a border into a document.
DocumentBuilder builder = new DocumentBuilder();

builder.getFont().getBorder().setColor(Color.GREEN);
builder.getFont().getBorder().setLineWidth(2.5);
builder.getFont().getBorder().setLineStyle(LineStyle.DASH_DOT_STROKER);

builder.write("run of text in a green border");

Field Summary
static final intNONE = 0
static final intSINGLE = 1
static final intTHICK = 2
static final intDOUBLE = 3
static final intHAIRLINE = 5
static final intDOT = 6
static final intDASH_LARGE_GAP = 7
static final intDOT_DASH = 8
static final intDOT_DOT_DASH = 9
static final intTRIPLE = 10
static final intTHIN_THICK_SMALL_GAP = 11
static final intTHICK_THIN_SMALL_GAP = 12
static final intTHIN_THICK_THIN_SMALL_GAP = 13
static final intTHIN_THICK_MEDIUM_GAP = 14
static final intTHICK_THIN_MEDIUM_GAP = 15
static final intTHIN_THICK_THIN_MEDIUM_GAP = 16
static final intTHIN_THICK_LARGE_GAP = 17
static final intTHICK_THIN_LARGE_GAP = 18
static final intTHIN_THICK_THIN_LARGE_GAP = 19
static final intWAVE = 20
static final intDOUBLE_WAVE = 21
static final intDASH_SMALL_GAP = 22
static final intDASH_DOT_STROKER = 23
static final intEMBOSS_3_D = 24
static final intENGRAVE_3_D = 25
static final intOUTSET = 26
static final intINSET = 27
 

    • Field Detail

      • NONE = 0

        public static final int NONE
      • SINGLE = 1

        public static final int SINGLE
      • THICK = 2

        public static final int THICK
      • DOUBLE = 3

        public static final int DOUBLE
      • HAIRLINE = 5

        public static final int HAIRLINE
      • DOT = 6

        public static final int DOT
      • DASH_LARGE_GAP = 7

        public static final int DASH_LARGE_GAP
      • DOT_DASH = 8

        public static final int DOT_DASH
      • DOT_DOT_DASH = 9

        public static final int DOT_DOT_DASH
      • TRIPLE = 10

        public static final int TRIPLE
      • THIN_THICK_SMALL_GAP = 11

        public static final int THIN_THICK_SMALL_GAP
      • THICK_THIN_SMALL_GAP = 12

        public static final int THICK_THIN_SMALL_GAP
      • THIN_THICK_THIN_SMALL_GAP = 13

        public static final int THIN_THICK_THIN_SMALL_GAP
      • THIN_THICK_MEDIUM_GAP = 14

        public static final int THIN_THICK_MEDIUM_GAP
      • THICK_THIN_MEDIUM_GAP = 15

        public static final int THICK_THIN_MEDIUM_GAP
      • THIN_THICK_THIN_MEDIUM_GAP = 16

        public static final int THIN_THICK_THIN_MEDIUM_GAP
      • THIN_THICK_LARGE_GAP = 17

        public static final int THIN_THICK_LARGE_GAP
      • THICK_THIN_LARGE_GAP = 18

        public static final int THICK_THIN_LARGE_GAP
      • THIN_THICK_THIN_LARGE_GAP = 19

        public static final int THIN_THICK_THIN_LARGE_GAP
      • WAVE = 20

        public static final int WAVE
      • DOUBLE_WAVE = 21

        public static final int DOUBLE_WAVE
      • DASH_SMALL_GAP = 22

        public static final int DASH_SMALL_GAP
      • DASH_DOT_STROKER = 23

        public static final int DASH_DOT_STROKER
      • EMBOSS_3_D = 24

        public static final int EMBOSS_3_D
      • ENGRAVE_3_D = 25

        public static final int ENGRAVE_3_D
      • OUTSET = 26

        public static final int OUTSET
      • INSET = 27

        public static final int INSET