PortionFactory

PortionFactory class

Allows to create test portions

For COM comparibility

PortionFactory

NameDescription
PortionFactory()

Returns: PortionFactory


createPortion

NameDescription
createPortion ()Creates an empty text portion.

Returns: MathPortion, Portion


createPortion

NameDescription
createPortion (String)Creates a text portion from specified string.

Parameters:

NameTypeDescription
strStringString.

Returns: MathPortion, Portion


createPortion

NameDescription
createPortion (MathPortion)Creates a portion with the using of a specified portion data.

Parameters:

NameTypeDescription
portionMathPortionA portion to use.

Returns: MathPortion, Portion


createPortion

NameDescription
createPortion (Portion)Creates a portion with the using of a specified portion data.

Parameters:

NameTypeDescription
portionPortionA portion to use.

Returns: MathPortion, Portion