com.groupdocs.watermark.legacy

Interfaces

Classes

Exceptions

com.groupdocs.watermark.legacy

Class Margins


  • Deprecated.

    @Deprecated
    public class Margins
    extends Object

    Represents margin settings for each edge of an object.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Margins()
      Deprecated. 
      Initializes a new instance of the Margins class.
      Margins(int marginType, double left, double right, double top, double bottom)
      Deprecated. 
      Initializes a new instance of the Margins class.
    • Constructor Detail

      • Margins

        public Margins()
        Deprecated. 

        Initializes a new instance of the Margins class.

      • Margins

        public Margins(int marginType,
               double left,
               double right,
               double top,
               double bottom)
        Deprecated. 

        Initializes a new instance of the Margins class.

        Parameters:
        marginType - The margin type. Specifies how margin values should be interpreted.
        left - The left margin value.
        right - The right margin value.
        top - The top margin value.
        bottom - The bottom margin value.
    • Method Detail

      • getMarginType

        public final int getMarginType()
        Deprecated. 

        Gets margin type. Setting a new value to this property automatically returns all margins to their default values (zero).

        Returns:
        The value specifying how margins should be interpreted. The default value is F:MarginType.Absolute
      • setMarginType

        public final void setMarginType(int value)
        Deprecated. 

        Sets margin type. Setting a new value to this property automatically returns all margins to their default values (zero).

        Parameters:
        value - The value specifying how margins should be interpreted. The default value is F:MarginType.Absolute
      • getLeft

        public final double getLeft()
        Deprecated. 

        Gets the left margin.

        Returns:
        Horizontal offset from parent left border.
      • setLeft

        public final void setLeft(double value)
        Deprecated. 

        Sets the left margin.

        Parameters:
        value - Horizontal offset from parent left border.
      • getRight

        public final double getRight()
        Deprecated. 

        Gets the right margin.

        Returns:
        Horizontal offset from parent right border.
      • setRight

        public final void setRight(double value)
        Deprecated. 

        Sets the right margin.

        Parameters:
        value - Horizontal offset from parent right border.
      • getTop

        public final double getTop()
        Deprecated. 

        Gets the top margin.

        Returns:
        Horizontal offset from parent top border.
      • setTop

        public final void setTop(double value)
        Deprecated. 

        Sets the top margin.

        Parameters:
        value - Horizontal offset from parent top border.
      • getBottom

        public final double getBottom()
        Deprecated. 

        Gets the bottom margin.

        Returns:
        Horizontal offset from parent bottom border.
      • setBottom

        public final void setBottom(double value)
        Deprecated. 

        Sets the bottom margin.

        Parameters:
        value - Horizontal offset from parent bottom border.