com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class LineFormat

    • Method Detail

      • isFormatNotDefined

        public final boolean isFormatNotDefined()

        Returns true if line format is not defined (as just created, default). Read-only boolean.

        Specified by:
        isFormatNotDefined in interface ILineFormat
      • getWidth

        public final double getWidth()

        Returns or sets the width of a line. Read/write double.

        Specified by:
        getWidth in interface ILineFormat
      • setWidth

        public final void setWidth(double value)

        Returns or sets the width of a line. Read/write double.

        Specified by:
        setWidth in interface ILineFormat
      • getCustomDashPattern

        public final float[] getCustomDashPattern()

        Returns or sets the custom dash pattern. Read/write float[].

        Specified by:
        getCustomDashPattern in interface ILineFormat
      • setCustomDashPattern

        public final void setCustomDashPattern(float[] value)

        Returns or sets the custom dash pattern. Read/write float[].

        Specified by:
        setCustomDashPattern in interface ILineFormat
      • setCapStyle

        public final void setCapStyle(byte value)

        Returns or sets the line cap style. Read/write LineCapStyle.

        Specified by:
        setCapStyle in interface ILineFormat
      • getStyle

        public final byte getStyle()

        Returns or sets the line style. Read/write LineStyle.

        Specified by:
        getStyle in interface ILineFormat
      • setStyle

        public final void setStyle(byte value)

        Returns or sets the line style. Read/write LineStyle.

        Specified by:
        setStyle in interface ILineFormat
      • getMiterLimit

        public final float getMiterLimit()

        Returns or sets the miter limit of a line. Read/write float.

        Specified by:
        getMiterLimit in interface ILineFormat
      • setMiterLimit

        public final void setMiterLimit(float value)

        Returns or sets the miter limit of a line. Read/write float.

        Specified by:
        setMiterLimit in interface ILineFormat
      • equals

        public final boolean equals(ILineFormat lineFormat)

        Determines whether the two LineFormat instances are equal.

        Specified by:
        equals in interface ILineFormat
        Parameters:
        lineFormat - The LineFormat to compare with the current LineFormat.
        Returns:
        <b>true</b> if the specified LineFormat is equal to the current LineFormat; otherwise, <b>false</b>.
      • getEffective

        public final ILineFormatEffectiveData getEffective()

        Gets effective line formatting data with the inheritance applied.


         This example demonstrates getting shape's effective line format properties.
         
         Presentation pres = new Presentation("MyPresentation.pptx");
         try
         {
                ILineFormatEffectiveData effectiveLineFormat = pres.getSlides().get_Item(0).getShapes().get_Item(0).getLineFormat().getEffective();
                System.out.println("Style: " + effectiveLineFormat.getStyle());
                System.out.println("Width: " + effectiveLineFormat.getWidth());
                System.out.println("Fill type: " + effectiveLineFormat.getFillFormat().getFillType());
         } finally {
          if (pres != null) pres.dispose();
         }
         
        Specified by:
        getEffective in interface ILineFormat
        Returns:
        A ILineFormatEffectiveData.