IText

public interface IText

Interface for Text Editing for Text Layers

Methods

MethodDescription
addPortion(ITextPortion portion)Adds the portion of text to the end
getItems()Gets the items.
getText()Gets the text.
getTextOrientation()Gets or sets the text orientation.
insertPortion(ITextPortion portion, int index)Inserts the ITextPortion to specified position
producePortion()Produces the new portion with default parameters
producePortions(String[] portionsOfText, ITextStyle stylePrototype, ITextParagraph paragraphPrototype)Produces the new portions with input or default parameters.
removePortion(int index)Removes the portion in specified index
setTextOrientation(int value)Gets or sets the text orientation.
updateLayerData()Updates the layer data.

addPortion(ITextPortion portion)

public abstract void addPortion(ITextPortion portion)

Adds the portion of text to the end

Parameters:

ParameterTypeDescription
portionITextPortionThe portion.

getItems()

public abstract ITextPortion[] getItems()

Gets the items.

Value: The items.

Returns: com.aspose.psd.fileformats.psd.layers.text.ITextPortion[]

getText()

public abstract String getText()

Gets the text.

Value: The text.

Returns: java.lang.String

getTextOrientation()

public abstract int getTextOrientation()

Gets or sets the text orientation.

Value: The text orientation.

Returns: int

insertPortion(ITextPortion portion, int index)

public abstract void insertPortion(ITextPortion portion, int index)

Inserts the ITextPortion to specified position

Parameters:

ParameterTypeDescription
portionITextPortionThe portion.
indexintThe index.

producePortion()

public abstract ITextPortion producePortion()

Produces the new portion with default parameters

Returns: ITextPortion - Reference to newly created ITextPortion.

producePortions(String[] portionsOfText, ITextStyle stylePrototype, ITextParagraph paragraphPrototype)

public abstract ITextPortion[] producePortions(String[] portionsOfText, ITextStyle stylePrototype, ITextParagraph paragraphPrototype)

Produces the new portions with input or default parameters.

Parameters:

ParameterTypeDescription
portionsOfTextjava.lang.String[]The portions of text to create new ITextPortion .
stylePrototypeITextStyleA style that, if not null, will be applied in the new , otherwise will be default.
paragraphPrototypeITextParagraphA paragraph that, if not null, will be applied in the new , otherwise will be default.

Returns: com.aspose.psd.fileformats.psd.layers.text.ITextPortion[] - Returns the new portions ITextPortion based on input parameters.

removePortion(int index)

public abstract void removePortion(int index)

Removes the portion in specified index

Parameters:

ParameterTypeDescription
indexintThe index.

setTextOrientation(int value)

public abstract void setTextOrientation(int value)

Gets or sets the text orientation.

Value: The text orientation.

Parameters:

ParameterTypeDescription
valueint

updateLayerData()

public abstract void updateLayerData()

Updates the layer data.