com.groupdocs.watermark.watermarks

Class MarginType



  • public final class MarginType
    extends Object

    Specifies how margin values should be interpreted.

    • Field Detail

      • Absolute

        public static final int Absolute

        Margin value measured in content units.

        See Also:
        Constant Field Values
      • RelativeToParentDimensions

        public static final int RelativeToParentDimensions

        Margin value should be interpreted as a portion of appropriate parent dimension.

        Left and right margins are relative to parent width, top and bottom margins are relative to parent height. If this type is chosen, margin value must be between 0.0 and 1.0.

        See Also:
        Constant Field Values
      • RelativeToParentMinDimension

        public static final int RelativeToParentMinDimension

        Margin value should be interpreted as a portion of parent minimum dimension.

        If this type is chosen, margin value must be between 0.0 and 1.0.

        See Also:
        Constant Field Values
    • Method Detail

      • toString

        public static final String toString(int value)

        Returns a string representation of the MarginType value.

        Parameters:
        value - The value to convert.
        Returns:
        The string representation of the MarginType value.
      • parse

        public static final int parse(String value)

        Parses a string to a MarginType enumeration value.

        Parameters:
        value - The string to parse.
        Returns:
        The MarginType enumeration value.