iText 8.0.5 API
iText.Layout.Properties.LineHeight Class Reference

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

Public Member Functions

virtual float  GetValue ()
  Returns the line height value. More...
 
virtual bool  IsFixedValue ()
  Check if the LineHeight contains fixed value. More...
 
virtual bool  IsMultipliedValue ()
  Check if the LineHeight contains multiplied value. More...
 
virtual bool  IsNormalValue ()
  Check if the LineHeight contains normal value. More...
 

Static Public Member Functions

static iText.Layout.Properties.LineHeight  CreateFixedValue (float value)
  Creates a LineHeight with a fixed value. More...
 
static iText.Layout.Properties.LineHeight  CreateMultipliedValue (float value)
  Creates a LineHeight with multiplied value. More...
 
static iText.Layout.Properties.LineHeight  CreateNormalValue ()
  Creates a normal LineHeight. More...
 

Detailed Description

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

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.

Member Function Documentation

◆ CreateFixedValue()

static iText.Layout.Properties.LineHeight iText.Layout.Properties.LineHeight.CreateFixedValue ( float  value )
inlinestatic

Creates a LineHeight with a fixed value.

Parameters
value value to set
Returns
created LineHeight object

◆ CreateMultipliedValue()

static iText.Layout.Properties.LineHeight iText.Layout.Properties.LineHeight.CreateMultipliedValue ( float  value )
inlinestatic

Creates a LineHeight with multiplied value.

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

Parameters
value value to set
Returns
created LineHeight object

◆ CreateNormalValue()

static iText.Layout.Properties.LineHeight iText.Layout.Properties.LineHeight.CreateNormalValue ( )
inlinestatic

Creates a normal LineHeight.

Returns
created LineHeight object

◆ GetValue()

virtual float iText.Layout.Properties.LineHeight.GetValue ( )
inlinevirtual

Returns the line height value.

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

Returns
the LineHeight value.

◆ IsFixedValue()

virtual bool iText.Layout.Properties.LineHeight.IsFixedValue ( )
inlinevirtual

Check if the LineHeight contains fixed value.

Returns
true if LineHeight contains fixed value.

◆ IsMultipliedValue()

virtual bool iText.Layout.Properties.LineHeight.IsMultipliedValue ( )
inlinevirtual

Check if the LineHeight contains multiplied value.

Returns
true if LineHeight contains multiplied value.

◆ IsNormalValue()

virtual bool iText.Layout.Properties.LineHeight.IsNormalValue ( )
inlinevirtual

Check if the LineHeight contains normal value.

Returns
true if LineHeight is normal.