PortionFactory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IPortionFactory

public class PortionFactory implements IPortionFactory

Allows to create test portions


For COM comparibility

Constructors

ConstructorDescription
PortionFactory()

Methods

MethodDescription
createPortion()Creates an empty text portion.
createPortion(String str)Creates a text portion from specified string.
createPortion(IPortion portion)Creates a portion with the using of a specified portion data.

PortionFactory()

public PortionFactory()

createPortion()

public final IPortion createPortion()

Creates an empty text portion.

Returns: IPortion - Portion.

createPortion(String str)

public final IPortion createPortion(String str)

Creates a text portion from specified string.

Parameters:

ParameterTypeDescription
strjava.lang.StringString.

Returns: IPortion - Portion.

createPortion(IPortion portion)

public final IPortion createPortion(IPortion portion)

Creates a portion with the using of a specified portion data.

Parameters:

ParameterTypeDescription
portionIPortionA portion to use.

Returns: IPortion - Portion.