com.aspose.words

Class MergeFieldImageDimension

  • java.lang.Object
    • com.aspose.words.MergeFieldImageDimension
  • All Implemented Interfaces:
    java.lang.Cloneable
    public class MergeFieldImageDimension 
    extends java.lang.Object

Represents an image dimension (i.e. the width or the height) used across a mail merge process.
To indicate that the image should be inserted with its original dimension during a mail merge, you should assign a negative value to the Value property.
See Also:
MergeFieldImageDimensionUnit

Constructor Summary
MergeFieldImageDimension(doublevalue)
Creates an image dimension instance with the given value in points.
MergeFieldImageDimension(doublevalue, intunit)
Creates an image dimension instance with the given value and the given unit.
 
Property Getters/Setters Summary
intgetUnit()
void
setUnit(intvalue)
           The unit. The value of the property is MergeFieldImageDimensionUnit integer constant.
doublegetValue()
void
setValue(doublevalue)
           The value.
 

    • Constructor Detail

      • MergeFieldImageDimension

        public MergeFieldImageDimension(double value)
        Creates an image dimension instance with the given value in points. You should use a negative value to indicate that the original value of the corresponding image dimension should be applied.
        Parameters:
        value - The value.
      • MergeFieldImageDimension

        public MergeFieldImageDimension(double value, int unit)
        Creates an image dimension instance with the given value and the given unit. You should use a negative value to indicate that the original value of the corresponding image dimension should be applied.
        Parameters:
        value - The value.
        unit - A MergeFieldImageDimensionUnit value. The unit.
    • Property Getters/Setters Detail

      • getUnit/setUnit

        public int getUnit() / public void setUnit(int value)
        
        The unit. The value of the property is MergeFieldImageDimensionUnit integer constant.
      • getValue/setValue

        public double getValue() / public void setValue(double value)
        
        The value. You should use a negative value to indicate that the original value of the corresponding image dimension should be applied.