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

A property corresponding to the css vertical-align property and used to set vertical alignment on inline blocks, it specifies the type of alignment and where needed a numerical value to complete it. More...

Public Member Functions

  InlineVerticalAlignment ()
  Creates a default InlineVerticalAlignment, it gets the type InlineVerticalAlignmentType?.BASELINE. More...
 
  InlineVerticalAlignment (InlineVerticalAlignmentType? type)
  Creates an InlineVerticalAlignment with a specified type. More...
 
  InlineVerticalAlignment (InlineVerticalAlignmentType? type, float value)
  Creates an InlineVerticalAlignment with a specified type and a value. More...
 
virtual ? InlineVerticalAlignmentType  GetType ()
  Gets the type of InlineVerticalAlignment. More...
 
virtual void  SetType (InlineVerticalAlignmentType? type)
  Sets the type InlineVerticalAlignmentType?. More...
 
virtual float  GetValue ()
  Gets the value. More...
 
virtual void  SetValue (float value)
  Sets the value. More...
 

Detailed Description

A property corresponding to the css vertical-align property and used to set vertical alignment on inline blocks, it specifies the type of alignment and where needed a numerical value to complete it.

Constructor & Destructor Documentation

◆ InlineVerticalAlignment() [1/3]

iText.Layout.Properties.InlineVerticalAlignment.InlineVerticalAlignment ( )
inline

Creates a default InlineVerticalAlignment, it gets the type InlineVerticalAlignmentType?.BASELINE.

◆ InlineVerticalAlignment() [2/3]

iText.Layout.Properties.InlineVerticalAlignment.InlineVerticalAlignment ( InlineVerticalAlignmentType type )
inline

Creates an InlineVerticalAlignment with a specified type.

Parameters
type

InlineVerticalAlignmentType?

◆ InlineVerticalAlignment() [3/3]

iText.Layout.Properties.InlineVerticalAlignment.InlineVerticalAlignment ( InlineVerticalAlignmentType type,
float  value 
)
inline

Creates an InlineVerticalAlignment with a specified type and a value.

Creates an InlineVerticalAlignment with a specified type and a value. This will throw a iText.Kernel.Exceptions.PdfException when used with a type that does not require a value.

Parameters
type

InlineVerticalAlignmentType?

Parameters
value In the case of InlineVerticalAlignmentType?.FIXED a lenth in pts, in case of InlineVerticalAlignmentType?.FRACTION a multiplier value.

Member Function Documentation

◆ GetType()

virtual ? InlineVerticalAlignmentType iText.Layout.Properties.InlineVerticalAlignment.GetType ( )
inlinevirtual

Gets the type of InlineVerticalAlignment.

Returns
the type InlineVerticalAlignmentType?

◆ GetValue()

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

Gets the value.

Returns
value In the case of InlineVerticalAlignmentType?.FIXED a lenth in pts, in case of InlineVerticalAlignmentType?.FRACTION a multiplier value.

◆ SetType()

virtual void iText.Layout.Properties.InlineVerticalAlignment.SetType ( InlineVerticalAlignmentType type )
inlinevirtual

Sets the type InlineVerticalAlignmentType?.

Parameters
type

InlineVerticalAlignmentType?

◆ SetValue()

virtual void iText.Layout.Properties.InlineVerticalAlignment.SetValue ( float  value )
inlinevirtual

Sets the value.

Parameters
value In the case of InlineVerticalAlignmentType?.FIXED a lenth in pts, in case of InlineVerticalAlignmentType?.FRACTION a multiplier value.