MarginType

Contents
[ ]

Inheritance: java.lang.Object

public final class MarginType

Specifies how margin values should be interpreted.

Fields

Field Description
Absolute Margin value measured in content units.
RelativeToParentDimensions Margin value should be interpreted as a portion of appropriate parent dimension.
RelativeToParentMinDimension Margin value should be interpreted as a portion of parent minimum dimension.

Methods

Method Description
toString(int value) Returns a string representation of the [MarginType](../../com.groupdocs.watermark.watermarks/margintype) value.
parse(String value) Parses a string to a [MarginType](../../com.groupdocs.watermark.watermarks/margintype) enumeration value.

Absolute

public static final int Absolute

Margin value measured in content units.

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.

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.

toString(int value)

public static final String toString(int value)

Returns a string representation of the [MarginType](../../com.groupdocs.watermark.watermarks/margintype) value.

Parameters:

Parameter Type Description
value int The value to convert.

Returns: java.lang.String - The string representation of the [MarginType](../../com.groupdocs.watermark.watermarks/margintype) value.

parse(String value)

public static final int parse(String value)

Parses a string to a [MarginType](../../com.groupdocs.watermark.watermarks/margintype) enumeration value.

Parameters:

Parameter Type Description
value java.lang.String The string to parse.

Returns: int - The [MarginType](../../com.groupdocs.watermark.watermarks/margintype) enumeration value.