|
iText 8.0.2 API
|
A specialized class that holds a value and the unit it is measured in. More...
Public Member Functions |
|
| UnitValue (int unitType, float value) | |
| Creates a UnitValue object with a specified type and value. More... |
|
| UnitValue (iText.Layout.Properties.UnitValue unitValue) | |
| Creates a copy of UnitValue object. More... |
|
| virtual int | GetUnitType () |
| Returns the unit this value is stored in, either points (pt) or percent(%) More... |
|
| virtual void | SetUnitType (int unitType) |
| Sets the unit this value is stored in, either points (pt) or percent(%) More... |
|
| virtual float | GetValue () |
| Gets the measured value stored in this object More... |
|
| virtual void | SetValue (float value) |
| Sets the measured value stored in this object More... |
|
| virtual bool | IsPointValue () |
| Returns whether or not the value is stored in points (pt) More... |
|
| virtual bool | IsPercentValue () |
| Returns whether or not the value is stored in percent (%) More... |
|
| override bool | Equals (Object obj) |
| override int | GetHashCode () |
| override String | ToString () |
Static Public Member Functions |
|
| static iText.Layout.Properties.UnitValue | CreatePointValue (float value) |
| Creates a UnitValue POINT object with a specified value. More... |
|
| static iText.Layout.Properties.UnitValue | CreatePercentValue (float value) |
| Creates a UnitValue PERCENT object with a specified value. More... |
|
| static iText.Layout.Properties.UnitValue[] | CreatePercentArray (float[] values) |
| Creates an array of UnitValue PERCENT objects with specified values. More... |
|
| static iText.Layout.Properties.UnitValue[] | CreatePercentArray (int size) |
| Creates an array of UnitValue PERCENT objects with equal values. More... |
|
| static iText.Layout.Properties.UnitValue[] | CreatePointArray (float[] values) |
| Creates an array of UnitValue POINT objects with specified values. More... |
|
Static Public Attributes |
|
| const int | POINT = 1 |
| const int | PERCENT = 2 |
A specialized class that holds a value and the unit it is measured in.
|
inline |
Creates a UnitValue object with a specified type and value.
| unitType | either POINT or a PERCENT |
| value | the value to be stored. |
|
inline |
Creates a copy of UnitValue object.
| unitValue | the value to be stored |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
Returns the unit this value is stored in, either points (pt) or percent(%)
|
inlinevirtual |
Gets the measured value stored in this object
float
|
inlinevirtual |
Returns whether or not the value is stored in percent (%)
true if stored in percent
|
inlinevirtual |
Returns whether or not the value is stored in points (pt)
true if stored in points
|
inlinevirtual |
Sets the unit this value is stored in, either points (pt) or percent(%)
| unitType | either POINT or PERCENT |
|
inlinevirtual |
Sets the measured value stored in this object
| value | a float |