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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.