Table of Contents

Class LineHeight

Namespace
iText.Layout.Properties
Assembly
itext.layout.dll

A property corresponding to the css line-height property and used to set the height of a line box in the HTML mode.

public class LineHeight
Inheritance
LineHeight
Inherited Members

Remarks

A property corresponding to the css line-height property and used to set the height of a line box in the HTML mode. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.

Methods

CreateFixedValue(float)

Creates a LineHeight with a fixed value.

public static LineHeight CreateFixedValue(float value)

Parameters

value float

value to set

Returns

LineHeight

created LineHeight object

CreateMultipliedValue(float)

Creates a LineHeight with multiplied value.

public static LineHeight CreateMultipliedValue(float value)

Parameters

value float

value to set

Returns

LineHeight

created LineHeight object

Remarks

Creates a LineHeight with multiplied value. This value must be multiplied by the element's font size.

CreateNormalValue()

Creates a normal LineHeight.

public static LineHeight CreateNormalValue()

Returns

LineHeight

created LineHeight object

GetValue()

Returns the line height value.

public virtual float GetValue()

Returns

float

the LineHeight value.

Remarks

Returns the line height value. The meaning of the returned value depends on the type of line height.

IsFixedValue()

Check if the LineHeight contains fixed value.

public virtual bool IsFixedValue()

Returns

bool

true if LineHeight contains fixed value.

IsMultipliedValue()

Check if the LineHeight contains multiplied value.

public virtual bool IsMultipliedValue()

Returns

bool

true if LineHeight contains multiplied value.

IsNormalValue()

Check if the LineHeight contains normal value.

public virtual bool IsNormalValue()

Returns

bool

true if LineHeight is normal.