Table of Contents

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 int

a constant type that defines the calculation of actual leading distance. Either FIXED or MULTIPLIED

value float

to 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

int

MULTIPLIED

A leading type related to the font size and the resulting bounding box.

public const int MULTIPLIED = 2

Field Value

int

type

protected int type

Field Value

int

value

protected float value

Field Value

float

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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