Class Leading
- Namespace
- iText.Layout.Properties
- Assembly
- itext.layout.dll
A specialized class that specifies the leading, "the vertical distance between the baselines of adjacent lines of text" (ISO-32000-1, section 9.3.5).
public class Leading
- Inheritance
-
Leading
- Inherited Members
Remarks
A specialized class that specifies the leading, "the vertical distance between the baselines of adjacent lines of text" (ISO-32000-1, section 9.3.5). Allows to use either an absolute (constant) leading value, or one determined by font size. Pronounce as 'ledding' (cfr. Led Zeppelin). This class is meant to be used as the value for the LEADING key in an IPropertyContainer.
Constructors
Leading(int, float)
Creates a Leading object.
public Leading(int type, float value)
Parameters
type
inta constant type that defines the calculation of actual leading distance. Either FIXED or MULTIPLIED
value
floatto be used as a basis for the leading calculation.
Fields
FIXED
A leading type independent of font size.
public const int FIXED = 1
Field Value
MULTIPLIED
A leading type related to the font size and the resulting bounding box.
public const int MULTIPLIED = 2
Field Value
type
protected int type
Field Value
value
protected float value
Field Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetLeadingType()
Gets the calculation type of the Leading object.
public virtual int GetLeadingType()
Returns
- int
the calculation type. Either FIXED or MULTIPLIED
GetValue()
Gets the value to be used as the basis for the leading calculation.
public virtual float GetValue()
Returns
- float
a calculation value