Package com.ironsoftware.ironpdf.edit
Class Length
java.lang.Object
com.ironsoftware.ironpdf.edit.Length
A length value with 
MeasurementUnit
 Allows use and interchange of units such as inches, mm, pt, percentages, pixels and points when editing a PDF.
- 
Constructor SummaryConstructorsConstructorDescriptionLength()Gets default length : 0%Length(double value) Instantiates a new Length.Length(double value, MeasurementUnit unit) Instantiates a new Length.
- 
Method SummaryModifier and TypeMethodDescriptionfinal MeasurementUnitgetUnit()Gets unit.final doublegetValue()Gets value.final voidsetUnit(MeasurementUnit value) Sets unit.final voidsetValue(double value) Sets value.
- 
Constructor Details- 
Lengthpublic Length(double value) Instantiates a new Length. Default MeasurementUnit isMeasurementUnit.PERCENTAGE- Parameters:
- value- the value
 
- 
LengthInstantiates a new Length. A length value withMeasurementUnit.- Parameters:
- value- the value
- unit- the unit
 
- 
Lengthpublic Length()Gets default length : 0%
 
- 
- 
Method Details- 
getUnitGets unit.MeasurementUnit- Returns:
- the unit
 
- 
setUnitSets unit.MeasurementUnit- Parameters:
- value- the value
 
- 
getValuepublic final double getValue()Gets value.- Returns:
- the value
 
- 
setValuepublic final void setValue(double value) Sets value.- Parameters:
- value- the value
 
 
-