IText Class

Summary: Interface for Text Editing for Text Layers

Module: aspose.psd.fileformats.psd.layers.text

Full Name: aspose.psd.fileformats.psd.layers.text.IText

Aspose.PSD Version: 24.4.0

Properties

NameTypeAccessDescription
itemsITextPortion[]rGets the items.
textstringrGets the text.
text_orientationTextOrientationr/wGets or sets the text orientation.

Methods

NameDescription
add_portion(portion)Adds the portion of text to the end
insert_portion(portion, index)Inserts the ITextPortion to specified position
produce_portion()Produces the new portion with default parameters
produce_portions(portions_of_text, style_prototype, paragraph_prototype)Produces the new portions with input or default parameters.
remove_portion(index)Removes the portion in specified index
update_layer_data()Updates the layer data.

Method: add_portion(portion)

 add_portion(portion) 

Adds the portion of text to the end

Parameters:

ParameterTypeDescription
portionITextPortionThe portion.

Method: insert_portion(portion, index)

 insert_portion(portion, index) 

Inserts the ITextPortion to specified position

Parameters:

ParameterTypeDescription
portionITextPortionThe portion.
indexintThe index.

Method: produce_portion()

 produce_portion() 

Produces the new portion with default parameters

Returns

TypeDescription
ITextPortionReference to newly created ITextPortion.

Method: produce_portions(portions_of_text, style_prototype, paragraph_prototype)

 produce_portions(portions_of_text, style_prototype, paragraph_prototype) 

Produces the new portions with input or default parameters.

Parameters:

ParameterTypeDescription
portions_of_textstringThe portions of text to create new ITextPortion.
style_prototypeITextStyleA style that, if not null, will be applied in the new ITextPortion, otherwise will be default.
paragraph_prototypeITextParagraphA paragraph that, if not null, will be applied in the new ITextPortion, otherwise will be default.

Returns

TypeDescription
ITextPortion[]Returns the new portions ITextPortion based on input parameters.

Method: remove_portion(index)

 remove_portion(index) 

Removes the portion in specified index

Parameters:

ParameterTypeDescription
indexintThe index.