iText 8.0.5 API
iText.Layout.Properties.Grid.FitContentValue Class Reference

Represents fit content function template value. More...

Inheritance diagram for iText.Layout.Properties.Grid.FitContentValue:
iText.Layout.Properties.Grid.FunctionValue iText.Layout.Properties.Grid.GridValue iText.Layout.Properties.Grid.TemplateValue

Public Member Functions

  FitContentValue (LengthValue length)
  Create fit content function value based on provided LengthValue instance. More...
 
  FitContentValue (UnitValue length)
  Create fit content function value based on provided iText.Layout.Properties.UnitValue instance. More...
 
virtual LengthValue  GetLength ()
  Get underlying LengthValue which represents max size on a grid for this value. More...
 
virtual float  GetMaxSizeForSpace (float space)
  Gets the maximum size which the value can take on passed space. More...
 
- Public Member Functions inherited from iText.Layout.Properties.Grid.TemplateValue
virtual TemplateValue.ValueType  GetType ()
  Gets template value type. More...
 

Additional Inherited Members

- Public Types inherited from iText.Layout.Properties.Grid.TemplateValue
enum   ValueType {
  ValueType.POINT, ValueType.PERCENT, ValueType.AUTO, ValueType.MIN_CONTENT,
  ValueType.MAX_CONTENT, ValueType.FIT_CONTENT, ValueType.MINMAX, ValueType.FLEX,
  ValueType.FIXED_REPEAT, ValueType.AUTO_REPEAT
}
  Enum of sizing value types. More...
 
- Package Functions inherited from iText.Layout.Properties.Grid.FunctionValue
  FunctionValue (TemplateValue.ValueType type)
  Init a function value with a given type. More...
 
- Package Functions inherited from iText.Layout.Properties.Grid.GridValue
  GridValue (TemplateValue.ValueType type)
  Create grid value with a given type. More...
 
- Package Functions inherited from iText.Layout.Properties.Grid.TemplateValue
  TemplateValue (TemplateValue.ValueType type)
  Creates template value with a given type. More...
 
- Package Attributes inherited from iText.Layout.Properties.Grid.TemplateValue
readonly TemplateValue.ValueType  type
  Template value type. More...
 

Detailed Description

Represents fit content function template value.

Constructor & Destructor Documentation

◆ FitContentValue() [1/2]

iText.Layout.Properties.Grid.FitContentValue.FitContentValue ( LengthValue  length )
inline

Create fit content function value based on provided LengthValue instance.

Parameters
length max size value

◆ FitContentValue() [2/2]

iText.Layout.Properties.Grid.FitContentValue.FitContentValue ( UnitValue  length )
inline

Create fit content function value based on provided iText.Layout.Properties.UnitValue instance.

Parameters
length max size value

Member Function Documentation

◆ GetLength()

virtual LengthValue iText.Layout.Properties.Grid.FitContentValue.GetLength ( )
inlinevirtual

Get underlying LengthValue which represents max size on a grid for this value.

Returns
underlying LengthValue value

◆ GetMaxSizeForSpace()

virtual float iText.Layout.Properties.Grid.FitContentValue.GetMaxSizeForSpace ( float  space )
inlinevirtual

Gets the maximum size which the value can take on passed space.

Parameters
space the space for which fit-content size will be calculated
Returns
the maximum size of the value on passed space